Skip to content

feat(preprod): Expose snapshot filters in search typeahead#113332

Open
NicoHinderling wants to merge 1 commit intonico/preprod-snapshot-search-filters-backendfrom
nico/preprod-snapshot-search-filters-frontend
Open

feat(preprod): Expose snapshot filters in search typeahead#113332
NicoHinderling wants to merge 1 commit intonico/preprod-snapshot-search-filters-backendfrom
nico/preprod-snapshot-search-filters-frontend

Conversation

@NicoHinderling
Copy link
Copy Markdown
Contributor

@NicoHinderling NicoHinderling commented Apr 17, 2026

Wires the new snapshot and approval filter keys into the Snapshots tab search bar (under Releases → Snapshots).

  • MOBILE_BUILDS_ALLOWED_KEYS — allowlist passed to PreprodSearchBar, permits the new keys in the Snapshots tab typeahead.
  • PREPROD_FIELD_DEFINITIONS — descriptions and value types used by typeahead tooltips.
  • SENTRY_PREPROD_NUMBER_TAGS / _BOOLEAN_TAGS — classify the new fields so the operator picker offers the correct set (>, <, >=, <=, is / is not).

Hiding from Explore + Dashboards

These fields resolve via the Django Builds endpoint, not EAP. The left-nav Explore view and the Mobile App Size dashboard query EAP directly, where nothing writes these fields — queries there would return silently empty results. Hides them on those surfaces via HIDDEN_PREPROD_ATTRIBUTES.

The Snapshots tab bypasses the hidden list because PreprodSearchBar sets hiddenKeys = allowedKeys ? undefined : HIDDEN_PREPROD_ATTRIBUTES — passing an allowedKeys prop keeps the fields visible there.

Other changes

Extracts PREPROD_IMAGE_FIELDS to share the seven image-counter keys between SENTRY_PREPROD_NUMBER_TAGS and HIDDEN_PREPROD_ATTRIBUTES — otherwise both lists have to stay in sync manually when a new image metric is added.

Depends on

Depends on #113331 — the Builds endpoint must accept image_count, images_*, is_approved in its search_config before this PR advertises them.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Wire the new snapshot and approval filter keys into the Snapshots tab search bar:

- MOBILE_BUILDS_ALLOWED_KEYS: allowlist passed to PreprodSearchBar so the new keys are accepted in the Snapshots tab typeahead.
- PREPROD_FIELD_DEFINITIONS (fields/index.ts): descriptions and valueType used by typeahead tooltips.
- SENTRY_PREPROD_NUMBER_TAGS / _BOOLEAN_TAGS: classify the new fields so the operator picker offers the correct set (>, <, >=, <=, is/is not).

Hide the fields from the left-nav Explore view and Mobile App Size dashboard via HIDDEN_PREPROD_ATTRIBUTES. Those surfaces query EAP directly and the new fields are not written to EAP; queries would return silently empty results. PreprodSearchBar ignores the hidden list when an allowedKeys prop is passed, so the Snapshots tab (which does pass one) keeps the fields visible.

Extract PREPROD_IMAGE_FIELDS so the seven image-counter keys have one source of truth across SENTRY_PREPROD_NUMBER_TAGS and HIDDEN_PREPROD_ATTRIBUTES.

Depends on the backend PR — the Builds endpoint must accept image_count / images_* / is_approved in its search_config before this PR advertises them.
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 17, 2026
Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@NicoHinderling NicoHinderling marked this pull request as ready for review April 17, 2026 17:49
@NicoHinderling NicoHinderling requested review from a team as code owners April 17, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant