Skip to content

Commit 2849ca8

Browse files
Revert "feat(dashboards): Add to Dashboard from Explore (#81064)"
This reverts commit 9fb8494. Co-authored-by: narsaynorath <[email protected]>
1 parent 9fb8494 commit 2849ca8

File tree

5 files changed

+1
-372
lines changed

5 files changed

+1
-372
lines changed

static/app/views/dashboards/widgetBuilder/buildSteps/yAxisStep/yAxisSelector/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import {FieldValueKind} from 'sentry/views/discover/table/types';
2121
import {AddButton} from './addButton';
2222
import {DeleteButton} from './deleteButton';
2323

24-
export const MAX_NUM_Y_AXES = 3;
25-
2624
interface Props {
2725
aggregates: QueryFieldValue[];
2826
displayType: DisplayType;
@@ -109,7 +107,7 @@ export function YAxisSelector({
109107

110108
const hideAddYAxisButtons =
111109
([DisplayType.LINE, DisplayType.AREA, DisplayType.BAR].includes(displayType) &&
112-
aggregates.length === MAX_NUM_Y_AXES) ||
110+
aggregates.length === 3) ||
113111
(displayType === DisplayType.BIG_NUMBER && widgetType === WidgetType.RELEASE);
114112

115113
let injectedFunctions: Set<string> = new Set();

static/app/views/discover/utils.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,6 @@ export function constructAddQueryToDashboardLink({
823823
defaultTitle,
824824
displayType: displayType === DisplayType.TOP_N ? DisplayType.AREA : displayType,
825825
dataset: widgetType,
826-
field: eventView.getFields(),
827826
limit:
828827
displayType === DisplayType.TOP_N
829828
? Number(eventView.topEvents) || TOP_N

static/app/views/explore/charts/index.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import usePageFilters from 'sentry/utils/usePageFilters';
2323
import useProjects from 'sentry/utils/useProjects';
2424
import {formatVersion} from 'sentry/utils/versions/formatVersion';
2525
import {Dataset} from 'sentry/views/alerts/rules/metric/types';
26-
import {AddToDashboardButton} from 'sentry/views/explore/components/addToDashboardButton';
2726
import {useChartInterval} from 'sentry/views/explore/hooks/useChartInterval';
2827
import {useDataset} from 'sentry/views/explore/hooks/useDataset';
2928
import {useVisualizes} from 'sentry/views/explore/hooks/useVisualizes';
@@ -274,9 +273,6 @@ export function ExploreCharts({query, setError}: ExploreChartsProps) {
274273
/>
275274
</Tooltip>
276275
</Feature>
277-
<Feature features="organizations:dashboards-eap">
278-
<AddToDashboardButton visualizeIndex={index} />
279-
</Feature>
280276
</ChartHeader>
281277
<Chart
282278
height={CHART_HEIGHT}

static/app/views/explore/components/addToDashboardButton.spec.tsx

Lines changed: 0 additions & 267 deletions
This file was deleted.

0 commit comments

Comments
 (0)