diff --git a/dashboard/new-dashboard/src/components/common/compare/CompareModes.vue b/dashboard/new-dashboard/src/components/common/compare/CompareModes.vue
index 840443f7..3f71523d 100644
--- a/dashboard/new-dashboard/src/components/common/compare/CompareModes.vue
+++ b/dashboard/new-dashboard/src/components/common/compare/CompareModes.vue
@@ -2,13 +2,11 @@
-
-
-
+
(null)
const mode2 = ref(null)
-
const tableData = ref()
const fetchedData = ref()
combineLatest([testModeConfigurator1.createObservable(), testModeConfigurator2.createObservable(), serverConfigurator.createObservable(), machineConfigurator.createObservable()])
@@ -251,7 +262,7 @@ function getColorForBuild(build1: number, build2: number) {
}
function getAllMetricsFromMode(machineConfigurator: MachineConfigurator, mode: string | null, metricNames: string[]): Observable {
- if(mode == "default") {
+ if (mode == "default") {
mode = ""
}
const params = {
@@ -287,6 +298,7 @@ function handleNavigateToTest(project: string, metric: string) {
.p-button-icon-only.p-button-rounded {
@apply text-black;
}
+
.lower {
font-weight: 700;
color: #ff5252;
diff --git a/pkg/server/clickhouse.go b/pkg/server/clickhouse.go
index 69416984..7add7a85 100644
--- a/pkg/server/clickhouse.go
+++ b/pkg/server/clickhouse.go
@@ -124,7 +124,7 @@ func (t *StatsServer) getModeComparison(request *http.Request) (*bytebufferpool.
}
measureNamesString := strings.Join(quotedMeasureNames, ",")
- sql := fmt.Sprintf("SELECT project as Project, measure_name as MeasureName, arraySlice(groupArray(measure_value), 1, 50) AS MeasureValues FROM (SELECT project, measures.name as measure_name, measures.value as measure_value FROM %s ARRAY JOIN measures WHERE mode = '%s' AND branch = '%s' AND measure_name in (%s) AND machine like '%s' ORDER BY generated_time DESC)GROUP BY project, measure_name;", params.Table, params.Mode, params.Branch, measureNamesString, params.Machine)
+ sql := fmt.Sprintf("SELECT project as Project, measure_name as MeasureName, arraySlice(groupArray(measure_value), 1, 50) AS MeasureValues FROM (SELECT project, measures.name as measure_name, measures.value as measure_value FROM %s ARRAY JOIN measures WHERE mode = '%s' AND branch = '%s' AND measure_name in (%s) AND machine like '%s' AND generated_time >subtractMonths(now(),1) ORDER BY generated_time DESC)GROUP BY project, measure_name;", params.Table, params.Mode, params.Branch, measureNamesString, params.Machine)
db, err := t.openDatabaseConnection()
defer func(db driver.Conn) {
_ = db.Close()