Skip to content

Commit 6e1463b

Browse files
committed
feat: reverted API response changes
1 parent 00fb828 commit 6e1463b

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

pkg/gitops/GitOpsConfigService.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,10 @@ const (
8181
)
8282

8383
type DetailedErrorGitOpsConfigResponse struct {
84-
SuccessfulStages []string `json:"successfulStages"`
85-
StageErrorMap map[string]string `json:"stageErrorMap"`
86-
ValidatedOn time.Time `json:"validatedOn"`
87-
DeleteRepoFailed bool `json:"deleteRepoFailed"`
88-
IsValidationSkipped bool `json:"isValidationSkipped"`
84+
SuccessfulStages []string `json:"successfulStages"`
85+
StageErrorMap map[string]string `json:"stageErrorMap"`
86+
ValidatedOn time.Time `json:"validatedOn"`
87+
DeleteRepoFailed bool `json:"deleteRepoFailed"`
8988
}
9089

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

690689
func (impl *GitOpsConfigServiceImpl) GitOpsValidateDryRun(config *bean2.GitOpsConfigDto) DetailedErrorGitOpsConfigResponse {
691690
if impl.globalEnvVariables.SkipGitOpsValidation {
692-
return DetailedErrorGitOpsConfigResponse{
693-
IsValidationSkipped: true,
694-
}
691+
return DetailedErrorGitOpsConfigResponse{}
695692
}
696693
if config.Token == "" {
697694
model, err := impl.gitOpsRepository.GetGitOpsConfigById(config.Id)

0 commit comments

Comments
 (0)