Skip to content

Commit

Permalink
Merge pull request #1418 from shekhar316/generateRecoFix
Browse files Browse the repository at this point in the history
Fixing "No Data Available" in GenerateRecommendations API
  • Loading branch information
dinogun authored Dec 13, 2024
2 parents 2c3b43b + f9cba87 commit fceb476
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2408,8 +2408,8 @@ public List<Metric> filterMetricsBasedOnExpTypeAndK8sObject(PerformanceProfile m

// Include metrics based on experiment_type, kubernetes_object and exclude maxDate metric
return !name.equals(maxDateQuery) && (
(experimentType.equals(AnalyzerConstants.ExperimentTypes.NAMESPACE_EXPERIMENT) && kubernetes_object.equals(namespace)) ||
(experimentType.equals(AnalyzerConstants.ExperimentTypes.CONTAINER_EXPERIMENT) && kubernetes_object.equals(container))
(experimentType.name().equalsIgnoreCase(AnalyzerConstants.ExperimentTypes.NAMESPACE_EXPERIMENT) && kubernetes_object.equals(namespace)) ||
(experimentType.name().equalsIgnoreCase(AnalyzerConstants.ExperimentTypes.CONTAINER_EXPERIMENT) && kubernetes_object.equals(container))
);
})
.toList();
Expand Down

0 comments on commit fceb476

Please sign in to comment.