Browse Source

ref(profiling): Remove feature flag checks for new search (#82431)

Malachi Willey 2 months ago
parent
commit
2575b664fc

+ 6 - 19
static/app/views/profiling/content.tsx

@@ -4,7 +4,6 @@ import type {Location} from 'history';
 
 import {Alert} from 'sentry/components/alert';
 import {Button, LinkButton} from 'sentry/components/button';
-import SearchBar from 'sentry/components/events/searchBar';
 import FeedbackWidgetButton from 'sentry/components/feedback/widget/feedbackWidgetButton';
 import * as Layout from 'sentry/components/layouts/thirds';
 import {DatePageFilter} from 'sentry/components/organizations/datePageFilter';
@@ -25,7 +24,6 @@ import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
 import {SidebarPanelKey} from 'sentry/components/sidebar/types';
 import type {SmartSearchBarProps} from 'sentry/components/smartSearchBar';
 import {TabList, Tabs} from 'sentry/components/tabs';
-import {MAX_QUERY_LENGTH} from 'sentry/constants';
 import {ALL_ACCESS_PROJECTS} from 'sentry/constants/pageFilters';
 import {t} from 'sentry/locale';
 import SidebarPanelStore from 'sentry/stores/sidebarPanelStore';
@@ -228,23 +226,12 @@ function ProfilingTransactionsContent(props: ProfilingTabContentProps) {
           <EnvironmentPageFilter resetParamsOnChange={CURSOR_PARAMS} />
           <DatePageFilter resetParamsOnChange={CURSOR_PARAMS} />
         </PageFilterBar>
-        {organization.features.includes('search-query-builder-performance') ? (
-          <TransactionSearchQueryBuilder
-            projects={selection.projects}
-            initialQuery={query}
-            onSearch={handleSearch}
-            searchSource="profile_landing"
-          />
-        ) : (
-          <SearchBar
-            searchSource="profile_landing"
-            organization={organization}
-            projectIds={selection.projects}
-            query={query}
-            onSearch={handleSearch}
-            maxQueryLength={MAX_QUERY_LENGTH}
-          />
-        )}
+        <TransactionSearchQueryBuilder
+          projects={selection.projects}
+          initialQuery={query}
+          onSearch={handleSearch}
+          searchSource="profile_landing"
+        />
       </ActionBar>
       {props.shouldShowProfilingOnboardingPanel ? (
         <ProfilingOnboardingCTA />

+ 6 - 19
static/app/views/profiling/profileSummary/index.tsx

@@ -8,7 +8,6 @@ import type {SelectOption} from 'sentry/components/compactSelect/types';
 import Count from 'sentry/components/count';
 import {DateTime} from 'sentry/components/dateTime';
 import ErrorBoundary from 'sentry/components/errorBoundary';
-import SearchBar from 'sentry/components/events/searchBar';
 import FeedbackWidgetButton from 'sentry/components/feedback/widget/feedbackWidgetButton';
 import IdBadge from 'sentry/components/idBadge';
 import * as Layout from 'sentry/components/layouts/thirds';
@@ -29,7 +28,6 @@ import {SegmentedControl} from 'sentry/components/segmentedControl';
 import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
 import type {SmartSearchBarProps} from 'sentry/components/smartSearchBar';
 import {TabList, Tabs} from 'sentry/components/tabs';
-import {MAX_QUERY_LENGTH} from 'sentry/constants';
 import {IconPanel} from 'sentry/icons';
 import {t} from 'sentry/locale';
 import {space} from 'sentry/styles/space';
@@ -231,23 +229,12 @@ function ProfileFilters(props: ProfileFiltersProps) {
         <EnvironmentPageFilter />
         <DatePageFilter />
       </PageFilterBar>
-      {props.organization.features.includes('search-query-builder-performance') ? (
-        <TransactionSearchQueryBuilder
-          projects={projectIds}
-          initialQuery={props.query}
-          onSearch={handleSearch}
-          searchSource="transaction_profiles"
-        />
-      ) : (
-        <SearchBar
-          searchSource="profile_summary"
-          organization={props.organization}
-          projectIds={projectIds}
-          query={props.query}
-          onSearch={handleSearch}
-          maxQueryLength={MAX_QUERY_LENGTH}
-        />
-      )}
+      <TransactionSearchQueryBuilder
+        projects={projectIds}
+        initialQuery={props.query}
+        onSearch={handleSearch}
+        searchSource="transaction_profiles"
+      />
     </ActionBar>
   );
 }