diff --git a/ee/query-service/model/plans.go b/ee/query-service/model/plans.go index dbd8b56965..9b696c013f 100644 --- a/ee/query-service/model/plans.go +++ b/ee/query-service/model/plans.go @@ -13,7 +13,6 @@ const Onboarding = "ONBOARDING" const ChatSupport = "CHAT_SUPPORT" const Gateway = "GATEWAY" const PremiumSupport = "PREMIUM_SUPPORT" -const QueryBuilderSearchV2 = "QUERY_BUILDER_SEARCH_V2" var BasicPlan = basemodel.FeatureSet{ basemodel.Feature{ @@ -128,13 +127,6 @@ var BasicPlan = basemodel.FeatureSet{ UsageLimit: -1, Route: "", }, - basemodel.Feature{ - Name: QueryBuilderSearchV2, - Active: false, - Usage: 0, - UsageLimit: -1, - Route: "", - }, } var ProPlan = basemodel.FeatureSet{ @@ -243,13 +235,6 @@ var ProPlan = basemodel.FeatureSet{ UsageLimit: -1, Route: "", }, - basemodel.Feature{ - Name: QueryBuilderSearchV2, - Active: false, - Usage: 0, - UsageLimit: -1, - Route: "", - }, } var EnterprisePlan = basemodel.FeatureSet{ @@ -372,11 +357,4 @@ var EnterprisePlan = basemodel.FeatureSet{ UsageLimit: -1, Route: "", }, - basemodel.Feature{ - Name: QueryBuilderSearchV2, - Active: false, - Usage: 0, - UsageLimit: -1, - Route: "", - }, } diff --git a/frontend/src/container/LogExplorerQuerySection/index.tsx b/frontend/src/container/LogExplorerQuerySection/index.tsx index f807103f68..c49990861f 100644 --- a/frontend/src/container/LogExplorerQuerySection/index.tsx +++ b/frontend/src/container/LogExplorerQuerySection/index.tsx @@ -1,6 +1,5 @@ import './LogsExplorerQuerySection.styles.scss'; -import { FeatureKeys } from 'constants/features'; import { initialQueriesMap, OPERATORS, @@ -9,14 +8,12 @@ import { import ExplorerOrderBy from 'container/ExplorerOrderBy'; import { QueryBuilder } from 'container/QueryBuilder'; import { OrderByFilterProps } from 'container/QueryBuilder/filters/OrderByFilter/OrderByFilter.interfaces'; -import QueryBuilderSearch from 'container/QueryBuilder/filters/QueryBuilderSearch'; import QueryBuilderSearchV2 from 'container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchV2'; import { QueryBuilderProps } from 'container/QueryBuilder/QueryBuilder.interfaces'; import { useGetPanelTypesQueryParam } from 'hooks/queryBuilder/useGetPanelTypesQueryParam'; import { useQueryBuilder } from 'hooks/queryBuilder/useQueryBuilder'; import { useQueryOperations } from 'hooks/queryBuilder/useQueryBuilderOperations'; import { useShareBuilderUrl } from 'hooks/queryBuilder/useShareBuilderUrl'; -import useFeatureFlags from 'hooks/useFeatureFlag'; import { prepareQueryWithDefaultTimestamp, SELECTED_VIEWS, @@ -89,26 +86,15 @@ function LogExplorerQuerySection({ [handleChangeQueryData], ); - const isSearchV2Enabled = - useFeatureFlags(FeatureKeys.QUERY_BUILDER_SEARCH_V2)?.active || false; - return ( <> {selectedView === SELECTED_VIEWS.SEARCH && (