TP-12345|disabling experiment validator
This commit is contained in:
@@ -41,10 +41,11 @@ public class ExperimentValidator {
|
|||||||
if (experimentQuery.findByName(request.getExperimentName()).isPresent()) {
|
if (experimentQuery.findByName(request.getExperimentName()).isPresent()) {
|
||||||
throw new BadRequestException("Experiment already present with name : " + request.getExperimentName());
|
throw new BadRequestException("Experiment already present with name : " + request.getExperimentName());
|
||||||
}
|
}
|
||||||
Optional<MetricEntity> primaryMetric = metricQuery.findByMetricName(request.getPrimaryMetric());
|
|
||||||
if (primaryMetric.isEmpty()) {
|
// Optional<MetricEntity> primaryMetric = metricQuery.findByMetricName(request.getPrimaryMetric());
|
||||||
throw new BadRequestException("Primary metric not found");
|
// if (primaryMetric.isEmpty()) {
|
||||||
}
|
// throw new BadRequestException("Primary metric not found");
|
||||||
|
// }
|
||||||
if (Objects.nonNull(request.getVariants()) && !request.getVariants().isEmpty()) {
|
if (Objects.nonNull(request.getVariants()) && !request.getVariants().isEmpty()) {
|
||||||
int sum = 0;
|
int sum = 0;
|
||||||
for (VariantDefinition variant : request.getVariants()) {
|
for (VariantDefinition variant : request.getVariants()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user