From ab3e23536046ee926cc6c4fe696f1a5003f21115 Mon Sep 17 00:00:00 2001 From: John Bodley Date: Thu, 15 Jun 2023 20:53:39 -0700 Subject: [PATCH] chore: Remove obsolete Druid NoSQL REGEX operator --- UPDATING.md | 1 + superset-frontend/src/explore/constants.ts | 2 -- superset/utils/core.py | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/UPDATING.md b/UPDATING.md index d9771a5ee927a..0013cb294f4e5 100644 --- a/UPDATING.md +++ b/UPDATING.md @@ -34,6 +34,7 @@ assists people when migrating to a new version. ### Breaking Changes +- [24415](https://github.com/apache/superset/pull/24415): Removed the obsolete Druid NoSQL REGEX operator. - [24400](https://github.com/apache/superset/pull/24400): Removed deprecated APIs `/superset/recent_activity/...`, `/superset/fave_dashboards_by_username/...`, `/superset/fave_dashboards/...`, `/superset/created_dashboards/...`, `/superset/user_slices/`, `/superset/created_slices/...`, `/superset/fave_slices/...`, `/superset/favstar/...`, - [24401](https://github.com/apache/superset/pull/24401): Removes the deprecated `metrics` column (which was blossomed in [20732](https://github.com/apache/superset/pull/20732)) from the `/api/v1/dataset/` API. - [24375](https://github.com/apache/superset/pull/24375): Removed deprecated API `/superset/get_or_create_table/...`, `/superset/sqllab_viz` diff --git a/superset-frontend/src/explore/constants.ts b/superset-frontend/src/explore/constants.ts index e539c16de754f..09362f423d7dd 100644 --- a/superset-frontend/src/explore/constants.ts +++ b/superset-frontend/src/explore/constants.ts @@ -39,7 +39,6 @@ export enum Operators { NOT_IN = 'NOT_IN', LIKE = 'LIKE', ILIKE = 'ILIKE', - REGEX = 'REGEX', IS_NOT_NULL = 'IS_NOT_NULL', IS_NULL = 'IS_NULL', LATEST_PARTITION = 'LATEST_PARTITION', @@ -75,7 +74,6 @@ export const OPERATOR_ENUM_TO_OPERATOR_TYPE: { display: t('Like (case insensitive)'), operation: 'ILIKE', }, - [Operators.REGEX]: { display: t('Regex'), operation: 'REGEX' }, [Operators.IS_NOT_NULL]: { display: t('Is not null'), operation: 'IS NOT NULL', diff --git a/superset/utils/core.py b/superset/utils/core.py index 3a97c73fdef69..125a406bf5d6a 100644 --- a/superset/utils/core.py +++ b/superset/utils/core.py @@ -236,7 +236,6 @@ class FilterOperator(str, Enum): IS_NOT_NULL = "IS NOT NULL" IN = "IN" NOT_IN = "NOT IN" - REGEX = "REGEX" IS_TRUE = "IS TRUE" IS_FALSE = "IS FALSE" TEMPORAL_RANGE = "TEMPORAL_RANGE" @@ -253,7 +252,6 @@ class FilterStringOperators(str, Enum): NOT_IN = ("NOT_IN",) ILIKE = ("ILIKE",) LIKE = ("LIKE",) - REGEX = ("REGEX",) IS_NOT_NULL = ("IS_NOT_NULL",) IS_NULL = ("IS_NULL",) LATEST_PARTITION = ("LATEST_PARTITION",)