Skip to content

feat(admin): Load outcomes category/outcome dropdowns from Python - #8418

Open
sentry-junior[bot] wants to merge 5 commits into
masterfrom
junior/outcomes-analyzer-category-dropdown
Open

feat(admin): Load outcomes category/outcome dropdowns from Python#8418
sentry-junior[bot] wants to merge 5 commits into
masterfrom
junior/outcomes-analyzer-category-dropdown

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Makes outcomes analyzer params less painful to fill, without hardcoding enum lists in the frontend.

{{category}} and {{outcome}} now use searchable Mantine selects. Options come from /outcomes_enum_options, which builds the lists from Relay DataCategory and a local Outcome IntEnum (mirrors sentry/Relay producer values; snuba has no Outcome package dependency).

Absolute datetime pickers were already added in #8375 for templates with {{start_time}} / {{end_time}}.

Requested by PDPM.

--

View Junior Session [Sentry]

Replace free-text {{category}}/{{outcome}} params with searchable
selects so outcomes analyzer templates are easier to fill. Correct
stale DataCategory IDs in help text and comments.

Co-Authored-By: Pierre Massat <pierre.massat@sentry.io>
@sentry-junior
sentry-junior Bot requested a review from phacops August 29, 2026 00:07
@phacops
phacops marked this pull request as ready for review August 29, 2026 00:13
@phacops
phacops requested a review from a team as a code owner August 29, 2026 00:13
Serve category/outcome options from Relay DataCategory and a local
Outcome IntEnum via /outcomes_enum_options, instead of hardcoding
lists in the query editor frontend.

Co-Authored-By: Pierre Massat <pierre.massat@sentry.io>
@sentry-junior sentry-junior Bot changed the title feat(admin): Add category and outcome dropdowns to query editor feat(admin): Load outcomes category/outcome dropdowns from Python Aug 29, 2026
Comment thread snuba/admin/static/outcomes_analyzer/index.tsx Outdated
Reject non-OK /outcomes_enum_options responses and show an inline
error when category/outcome dropdown options fail to load.
Use number inputs for org/project/limit params with a default limit,
and show an explicit running state next to Execute Query.

Co-Authored-By: Pierre Massat <pierre.massat@sentry.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant