Skip to content

[pull] master from getsentry:master#1996

Merged
pull[bot] merged 13 commits into
KingDEV95:masterfrom
getsentry:master
May 25, 2026
Merged

[pull] master from getsentry:master#1996
pull[bot] merged 13 commits into
KingDEV95:masterfrom
getsentry:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 25, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Zylphrex and others added 13 commits May 25, 2026 16:10
…15805)

Adds "Open in Explore" for metrics dashboard equation widgets.

We only support a single equation in metrics widgets. Because of the
type of widget queries and aggregates we need to loop over them, but
there will only be one widget queries while the single equation
condition holds.

If the aggregate is an equation, it's parsed out into its subcomponents
and the query that's saved on the `widgetQueries` is set on that
equation.
…es (#116047)

The RPC endpoint for tracemetrics doesn't take `equation[0]` as a valid
sort and expects the full `equation|...` format. This PR ensures that
when we make requests to the datasets with sorts (e.g. grouped series,
or categorical bar charts) that the full equation is used.

This is done by updating two surfaces:
- Updating the series query params to treat
`DiscoverDatasets.TRACEMETRICS` similar to spans and logs, which use RPC
and have the same constraints/handling
- Update the table request for categorical bar charts to detect if the
sort is an equation alias, then get the index, get the equations, and
use the right equation index to set the sort
- Remove equation handling for the widget builder table sort because all
datasets that support equations now support the full equation format.
It's only the case that some datasets (RPC datasets) don't support the
alias format

This shouldn't require feature-flagging because it's gated on having the
equation builder, which itself is feature flagged.

I did a bunch of this PR manually and guided with claude before I
realized there was a lot simpler of an implementation where we can
internally use the `equation[0]` syntax for now and convert on the
requests. At that point I prompted it to remove a bunch of the old
cruft, rework the stuff that remained, and add tests.
Rejects widget create/update requests whose `(widget_type,
display_type)` combination isn't allowed by the frontend Widget
Builder's type selector (e.g. `table` on `tracemetrics`, `table` on
`preprod-app-size`). Allowed combinations live in a new `DATASET_CONFIG`
map keyed by `widget_type`.

Adding the dataset configs also sets us up nicely for more per dataset
validation

For example, in the ui trace metrics don't support tables, so we
shouldn't let them be saved as tables
…zation (#116129)

Couple of things to note here. For heat maps we want to default to the
largest interval because it shows the most patterns and then users can
adjust how they'd like. There wasn't an option to use the largest
interval so i added it in. I've also added tests for the
`useChartInterval` hook.

Test by changing the chart type in metrics to heat map and see the
default interval change 🤩
## Summary

- Removes the `organizations:data-browsing-widget-unfurl` and
`organizations:dashboards-widget-unfurl` registrations from
`src/sentry/features/temporary.py`.
- Switches the Slack unfurl flag gates over to the base feature flags
for each product (`organizations:visibility-explore-view` for explore,
`organizations:dashboards-basic` for dashboards) in `explore.py`,
`dashboards.py`, and `webhooks/event.py`. This keeps the existing "only
unfurl when the org has the underlying product" guard while removing the
unfurl-specific flags.
Fix TypeErrors related to UUID not being compatible with msgpack.

Fixes SENTRY-5PTW
Fixes DAIN-1690

## Problem
Widget context menus (triggered by clicking the '...' buttons on
dashboard widgets) were appearing behind the dashboard navigation
sidebar because `theme.zIndex.dropdown` (1001) was lower than
`theme.zIndex.sidebarPanel` (1019).

Before
<img width="297" alt="Screenshot 2026-05-25 at 1 06 18 PM"
src="https://github.com/user-attachments/assets/814181dd-572a-4f2d-9679-3bdb57ed101d"
/>
After
<img width="297" height="280" alt="Monosnap General Template copy 35 —
sentry — Sentry 2026-05-25 13-53-18"
src="https://github.com/user-attachments/assets/119b3eb7-3681-4aec-8e95-7063ea4d6641"
/>

## Solution
Updated `theme.zIndex.dropdown` from 1001 to 1020 (sidebarPanel + 1) in
the theme definition. This ensures all dropdown menus across the
application appear above the sidebar panel.

Linear Issue:
[DAIN-1690](https://linear.app/getsentry/issue/DAIN-1690/menu-appears-behind-dashboard-widget-actions)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This enables the Add to Dashboard actions for equations and includes it
in "All Application Metrics". This feature should be feature flagged
…int (#116145)

We want to use medium everywhere, no need to expose this as a parameter.
Replace all usages of useAutofixData with useExplorerAutofix
Relocations haven't used outboxes for at least a year, remove this code.

Refs INFRENG-318
@pull pull Bot locked and limited conversation to collaborators May 25, 2026
@pull pull Bot added the ⤵️ pull label May 25, 2026
@pull pull Bot merged commit 49fb050 into KingDEV95:master May 25, 2026
12 of 16 checks passed
@github-actions github-actions Bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels May 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

⤵️ pull Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants