(ctx context.Context, projectID string, partitionId string)
| 299 | } |
| 300 | |
| 301 | func (i *imlPublishModule) GetProjectRelease(ctx context.Context, projectID string, partitionId string) (*gateway.ProjectRelease, error) { |
| 302 | |
| 303 | releaseInfo, err := i.releaseService.GetRunning(ctx, projectID) |
| 304 | if err != nil { |
| 305 | if !errors.Is(err, gorm.ErrRecordNotFound) { |
| 306 | return nil, err |
| 307 | } |
| 308 | return nil, nil |
| 309 | } |
| 310 | |
| 311 | return i.getProjectRelease(ctx, projectID, releaseInfo.UUID) |
| 312 | } |
| 313 | |
| 314 | func (i *imlPublishModule) getReleaseInfo(ctx context.Context, projectID, releaseId, version string, clusterIds []string) (map[string]*gateway.ProjectRelease, error) { |
| 315 | projectRelease, err := i.getProjectRelease(ctx, projectID, releaseId) |
nothing calls this directly
no test coverage detected