(ctx context.Context, partitionId string, clientDriver gateway.IClientDriver)
| 117 | } |
| 118 | |
| 119 | func (i *imlPublishModule) initGateway(ctx context.Context, partitionId string, clientDriver gateway.IClientDriver) error { |
| 120 | return nil |
| 121 | //projects, err := i.serviceService.List(ctx) |
| 122 | //if err != nil { |
| 123 | // return err |
| 124 | //} |
| 125 | //projectIds := utils.SliceToSlice(projects, func(p *service.Service) string { |
| 126 | // return p.Id |
| 127 | //}) |
| 128 | //for _, projectId := range projectIds { |
| 129 | // releaseInfo, err := i.GetProjectRelease(ctx, projectId, partitionId) |
| 130 | // if err != nil { |
| 131 | // return err |
| 132 | // } |
| 133 | // if releaseInfo == nil { |
| 134 | // continue |
| 135 | // } |
| 136 | // |
| 137 | // err = clientDriver.Project().Online(ctx, releaseInfo) |
| 138 | // if err != nil { |
| 139 | // return err |
| 140 | // } |
| 141 | //} |
| 142 | //return nil |
| 143 | } |
| 144 | |
| 145 | func (i *imlPublishModule) getProjectRelease(ctx context.Context, projectID string, commitId string) (*gateway.ProjectRelease, error) { |
| 146 | commits, err := i.releaseService.GetCommits(ctx, commitId) |
nothing calls this directly
no outgoing calls
no test coverage detected