Skip to content

Commit 5fbea52

Browse files
authored
feat(tracemetrics): Disable filter actions on equations/results (#113088)
We disable cell actions on equation aliases, this intent was also supposed to apply to equations because we've started moving away from the equation alias format. Disabling this prevents users trying to filter results in the filter bar because we don't have a way to represent them there either.
1 parent a8cb303 commit 5fbea52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

static/app/views/discover/table/cellAction.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {defined} from 'sentry/utils';
1212
import type {TableDataRow} from 'sentry/utils/discover/discoverQuery';
1313
import {
1414
fieldAlignment,
15+
isEquation,
1516
isEquationAlias,
1617
isRelativeSpanOperationBreakdownField,
1718
} from 'sentry/utils/discover/fields';
@@ -193,7 +194,7 @@ function makeCellActions({
193194
}
194195

195196
// Do not render context menu buttons for the equation fields until we can query on them
196-
if (isEquationAlias(column.name)) {
197+
if (isEquationAlias(column.name) || isEquation(column.key as string)) {
197198
return null;
198199
}
199200

0 commit comments

Comments
 (0)