Skip to content

Commit

Permalink
feat: reverted API response changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-exp committed Sep 22, 2023
1 parent 00fb828 commit 6e1463b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pkg/gitops/GitOpsConfigService.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,10 @@ const (
)

type DetailedErrorGitOpsConfigResponse struct {
SuccessfulStages []string `json:"successfulStages"`
StageErrorMap map[string]string `json:"stageErrorMap"`
ValidatedOn time.Time `json:"validatedOn"`
DeleteRepoFailed bool `json:"deleteRepoFailed"`
IsValidationSkipped bool `json:"isValidationSkipped"`
SuccessfulStages []string `json:"successfulStages"`
StageErrorMap map[string]string `json:"stageErrorMap"`
ValidatedOn time.Time `json:"validatedOn"`
DeleteRepoFailed bool `json:"deleteRepoFailed"`
}

type GitOpsConfigServiceImpl struct {
Expand Down Expand Up @@ -689,9 +688,7 @@ func (impl *GitOpsConfigServiceImpl) GetGitOpsConfigActive() (*bean2.GitOpsConfi

func (impl *GitOpsConfigServiceImpl) GitOpsValidateDryRun(config *bean2.GitOpsConfigDto) DetailedErrorGitOpsConfigResponse {
if impl.globalEnvVariables.SkipGitOpsValidation {
return DetailedErrorGitOpsConfigResponse{
IsValidationSkipped: true,
}
return DetailedErrorGitOpsConfigResponse{}
}
if config.Token == "" {
model, err := impl.gitOpsRepository.GetGitOpsConfigById(config.Id)
Expand Down

0 comments on commit 6e1463b

Please sign in to comment.