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