Skip to content

Commit

Permalink
removing old validation
Browse files Browse the repository at this point in the history
Signed-off-by: Shekhar Saxena <[email protected]>
  • Loading branch information
shekhar316 committed Jan 21, 2025
1 parent 285b7d6 commit d1313b9
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,6 @@ public void validate(List<KruizeObject> kruizeExptList) {
}
}
}
if (kruizeObject.isNamespaceExperiment()) {
if (AnalyzerConstants.AUTO.equalsIgnoreCase(mode) || AnalyzerConstants.RECREATE.equalsIgnoreCase(mode)) {
errorMsg = AnalyzerErrorConstants.APIErrors.CreateExperimentAPI.INVALID_MODE_FOR_NAMESPACE_EXP;
validationOutputData.setErrorCode(HttpServletResponse.SC_BAD_REQUEST);
proceed = false;
}
}
} else {
errorMsg = errorMsg.concat(String.format(AnalyzerErrorConstants.AutotuneObjectErrors.DUPLICATE_EXPERIMENT)).concat(expName);
validationOutputData.setErrorCode(HttpServletResponse.SC_CONFLICT);
Expand Down

0 comments on commit d1313b9

Please sign in to comment.