Browse Source

chore: Rename eventsV2 to discover (#43537)

As the person responsible for 'eventsv2' I feel responsible to correct
this naming as well. We no longer have eventsv1 or discoverv1, renaming
this module helps align the terms we use in the code with the customer
facing terms.
Mark Story 2 years ago
parent
commit
c8f6611383

+ 1 - 1
docs-ui/stories/components/columnEditor.stories.js

@@ -1,7 +1,7 @@
 import {openModal} from 'sentry/actionCreators/modal';
 import {Button} from 'sentry/components/button';
 import GlobalModal from 'sentry/components/globalModal';
-import ColumnEditModal, {modalCss} from 'sentry/views/eventsV2/table/columnEditModal';
+import ColumnEditModal, {modalCss} from 'sentry/views/discover/table/columnEditModal';
 
 const columns = [
   {

+ 1 - 1
static/app/components/charts/eventsRequest.tsx

@@ -154,7 +154,7 @@ type EventsRequestPartialProps = {
    */
   generatePathname?: (org: OrganizationSummary) => string;
   /**
-   * Hide error toast (used for pages which also query eventsV2). Stops error appearing as a toast.
+   * Hide error toast (used for pages which also query discover). Stops error appearing as a toast.
    */
   hideError?: boolean;
   /**

+ 1 - 1
static/app/components/charts/optionSelector.spec.tsx

@@ -6,7 +6,7 @@ import {render, screen, userEvent, within} from 'sentry-test/reactTestingLibrary
 import OptionSelector from 'sentry/components/charts/optionSelector';
 import {t} from 'sentry/locale';
 
-describe('EventsV2 > OptionSelector (Multiple)', function () {
+describe('Charts > OptionSelector (Multiple)', function () {
   const features = ['discover-basic'];
   const yAxisValue = ['count()', 'failure_count()'];
   const yAxisOptions = [

+ 2 - 2
static/app/components/charts/simpleTableChart.tsx

@@ -15,8 +15,8 @@ import EventView, {MetaType} from 'sentry/utils/discover/eventView';
 import {getFieldRenderer} from 'sentry/utils/discover/fieldRenderers';
 import {fieldAlignment} from 'sentry/utils/discover/fields';
 import withOrganization from 'sentry/utils/withOrganization';
-import TopResultsIndicator from 'sentry/views/eventsV2/table/topResultsIndicator';
-import {decodeColumnOrder} from 'sentry/views/eventsV2/utils';
+import TopResultsIndicator from 'sentry/views/discover/table/topResultsIndicator';
+import {decodeColumnOrder} from 'sentry/views/discover/utils';
 
 type Props = {
   eventView: EventView;

+ 1 - 1
static/app/components/createAlertButton.spec.jsx

@@ -6,7 +6,7 @@ import CreateAlertButton, {
 } from 'sentry/components/createAlertButton';
 import GuideStore from 'sentry/stores/guideStore';
 import EventView from 'sentry/utils/discover/eventView';
-import {DEFAULT_EVENT_VIEW} from 'sentry/views/eventsV2/data';
+import {DEFAULT_EVENT_VIEW} from 'sentry/views/discover/data';
 
 const onClickMock = jest.fn();
 const context = TestStubs.routerContext();

+ 3 - 3
static/app/components/discover/transactionsList.tsx

@@ -17,9 +17,9 @@ import {Sort} from 'sentry/utils/discover/fields';
 import {TrendsEventsDiscoverQuery} from 'sentry/utils/performance/trends/trendsDiscoverQuery';
 import {decodeScalar} from 'sentry/utils/queryString';
 import {MutableSearch} from 'sentry/utils/tokenizeSearch';
-import {Actions} from 'sentry/views/eventsV2/table/cellAction';
-import {TableColumn} from 'sentry/views/eventsV2/table/types';
-import {decodeColumnOrder} from 'sentry/views/eventsV2/utils';
+import {Actions} from 'sentry/views/discover/table/cellAction';
+import {TableColumn} from 'sentry/views/discover/table/types';
+import {decodeColumnOrder} from 'sentry/views/discover/utils';
 import {SpanOperationBreakdownFilter} from 'sentry/views/performance/transactionSummary/filter';
 import {mapShowTransactionToPercentile} from 'sentry/views/performance/transactionSummary/transactionEvents/utils';
 import {TransactionFilterOptions} from 'sentry/views/performance/transactionSummary/utils';

+ 2 - 2
static/app/components/discover/transactionsTable.tsx

@@ -22,8 +22,8 @@ import {
 } from 'sentry/utils/discover/fields';
 import ViewReplayLink from 'sentry/utils/discover/viewReplayLink';
 import {VisuallyCompleteWithData} from 'sentry/utils/performanceForSentry';
-import CellAction, {Actions} from 'sentry/views/eventsV2/table/cellAction';
-import {TableColumn} from 'sentry/views/eventsV2/table/types';
+import CellAction, {Actions} from 'sentry/views/discover/table/cellAction';
+import {TableColumn} from 'sentry/views/discover/table/types';
 import {GridCell, GridCellNumber} from 'sentry/views/performance/styles';
 import {TrendsDataEvents} from 'sentry/views/performance/trends/types';
 

+ 1 - 1
static/app/components/modals/widgetViewerModal.tsx

@@ -73,7 +73,7 @@ import IssueWidgetQueries from 'sentry/views/dashboardsV2/widgetCard/issueWidget
 import ReleaseWidgetQueries from 'sentry/views/dashboardsV2/widgetCard/releaseWidgetQueries';
 import {WidgetCardChartContainer} from 'sentry/views/dashboardsV2/widgetCard/widgetCardChartContainer';
 import WidgetQueries from 'sentry/views/dashboardsV2/widgetCard/widgetQueries';
-import {decodeColumnOrder} from 'sentry/views/eventsV2/utils';
+import {decodeColumnOrder} from 'sentry/views/discover/utils';
 import {OrganizationContext} from 'sentry/views/organizationContext';
 import {MetricsDataSwitcher} from 'sentry/views/performance/landing/metricsDataSwitcher';
 

+ 2 - 2
static/app/components/modals/widgetViewerModal/widgetViewerTableCell.tsx

@@ -33,8 +33,8 @@ import {
 import {DisplayType, Widget, WidgetType} from 'sentry/views/dashboardsV2/types';
 import {eventViewFromWidget} from 'sentry/views/dashboardsV2/utils';
 import {ISSUE_FIELDS} from 'sentry/views/dashboardsV2/widgetBuilder/issueWidget/fields';
-import TopResultsIndicator from 'sentry/views/eventsV2/table/topResultsIndicator';
-import {TableColumn} from 'sentry/views/eventsV2/table/types';
+import TopResultsIndicator from 'sentry/views/discover/table/topResultsIndicator';
+import {TableColumn} from 'sentry/views/discover/table/types';
 
 import {WidgetViewerQueryField} from './utils';
 // Dashboards only supports top 5 for now

+ 2 - 2
static/app/components/profiling/profileEventsTable.tsx

@@ -24,8 +24,8 @@ import {renderTableHead} from 'sentry/utils/profiling/tableRenderer';
 import {useLocation} from 'sentry/utils/useLocation';
 import useOrganization from 'sentry/utils/useOrganization';
 import useProjects from 'sentry/utils/useProjects';
-import {QuickContextHoverWrapper} from 'sentry/views/eventsV2/table/quickContext/quickContextWrapper';
-import {ContextType} from 'sentry/views/eventsV2/table/quickContext/utils';
+import {QuickContextHoverWrapper} from 'sentry/views/discover/table/quickContext/quickContextWrapper';
+import {ContextType} from 'sentry/views/discover/table/quickContext/utils';
 
 import {ProfilingTransactionHovercard} from './profilingTransactionHovercard';
 

Some files were not shown because too many files changed in this diff