From 0a81ce9c1e1db2f22cf79ffe2483a8836d03c511 Mon Sep 17 00:00:00 2001 From: Brian Holmes Date: Tue, 19 Dec 2023 11:04:23 -0500 Subject: [PATCH] revert if block change --- runtime/queries/metricsview.go | 4 +-- .../dashboards/filters/Filters.svelte | 32 +++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/runtime/queries/metricsview.go b/runtime/queries/metricsview.go index a8ddc324031..eed1960cc3b 100644 --- a/runtime/queries/metricsview.go +++ b/runtime/queries/metricsview.go @@ -594,7 +594,7 @@ func convertDimensionFilterToExpression(cond *runtimev1.MetricsViewFilter_Cond, } else { inExpr = expressionpb.In(expressionpb.Identifier(cond.Name), inExprs) } - + } var likeExpr *runtimev1.Expression if len(cond.Like) == 1 { @@ -631,7 +631,7 @@ func convertDimensionFilterToExpression(cond *runtimev1.MetricsViewFilter_Cond, } else if likeExpr != nil { return likeExpr } - } + return nil } diff --git a/web-common/src/features/dashboards/filters/Filters.svelte b/web-common/src/features/dashboards/filters/Filters.svelte index 505edb3e07a..fd4c741d459 100644 --- a/web-common/src/features/dashboards/filters/Filters.svelte +++ b/web-common/src/features/dashboards/filters/Filters.svelte @@ -1,6 +1,20 @@ + +