From 5d550f449aa791b32ab8dffe764086d461531abe Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Fri, 3 Feb 2023 18:26:05 +0100 Subject: [PATCH] fix(explore): Mark time range dashboard filter with warning icon (#22984) --- .../explore/controlUtils/getFormDataFromDashboardContext.test.ts | 1 + .../src/explore/controlUtils/getFormDataWithDashboardContext.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/superset-frontend/src/explore/controlUtils/getFormDataFromDashboardContext.test.ts b/superset-frontend/src/explore/controlUtils/getFormDataFromDashboardContext.test.ts index def35009c..f3584e1c7 100644 --- a/superset-frontend/src/explore/controlUtils/getFormDataFromDashboardContext.test.ts +++ b/superset-frontend/src/explore/controlUtils/getFormDataFromDashboardContext.test.ts @@ -173,6 +173,7 @@ const getExpectedResultFormData = (overrides: JsonObject = {}) => ({ subject: 'ds', comparator: 'Last month', filterOptionName: expect.any(String), + isExtra: true, }, { clause: 'WHERE', diff --git a/superset-frontend/src/explore/controlUtils/getFormDataWithDashboardContext.ts b/superset-frontend/src/explore/controlUtils/getFormDataWithDashboardContext.ts index 0fc32594b..9565b48dd 100644 --- a/superset-frontend/src/explore/controlUtils/getFormDataWithDashboardContext.ts +++ b/superset-frontend/src/explore/controlUtils/getFormDataWithDashboardContext.ts @@ -184,6 +184,7 @@ const applyTimeRangeFilters = ( return { ...filter, comparator: extraFormData.time_range, + isExtra: true, }; } return filter;