Skip to content

feat(preprod): Add installable attribute to EAP alias mappings#112363

Merged
mtopo27 merged 1 commit intomasterfrom
mtopo27/support-installable-preprod-search
Apr 7, 2026
Merged

feat(preprod): Add installable attribute to EAP alias mappings#112363
mtopo27 merged 1 commit intomasterfrom
mtopo27/support-installable-preprod-search

Conversation

@mtopo27
Copy link
Copy Markdown
Contributor

@mtopo27 mtopo27 commented Apr 7, 2026

Register PREPROD in the shared INTERNAL_TO_PUBLIC_ALIAS_MAPPINGS infrastructure so the EAP attributes endpoint translates has_installable_fileinstallable. This makes the installable boolean filter appear in the mobile builds search bar dropdown on the Distribution view.

Previously, the PREPROD trace item type had no entry in the alias mapping dicts in search/eap/utils.py, so translate_internal_to_public_alias() returned the raw internal name has_installable_file. The frontend filterToAllowedKeys() then couldn't match it against the allowlist (which expects installable), so the attribute was silently filtered out.

The mapping dict is built dynamically from PREPROD_SIZE_ATTRIBUTE_DEFINITIONS, so any future aliased PREPROD attributes will automatically be included.

Refs EME-868

Register PREPROD in INTERNAL_TO_PUBLIC_ALIAS_MAPPINGS so the EAP
attributes endpoint translates has_installable_file to installable.
This makes the installable filter appear in the mobile builds search
bar dropdown.

Refs EME-868
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 7, 2026

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 7, 2026
@mtopo27 mtopo27 marked this pull request as ready for review April 7, 2026 14:48
@mtopo27 mtopo27 requested a review from a team as a code owner April 7, 2026 14:48
@mtopo27 mtopo27 merged commit b7608da into master Apr 7, 2026
60 checks passed
@mtopo27 mtopo27 deleted the mtopo27/support-installable-preprod-search branch April 7, 2026 15:04
george-sentry pushed a commit that referenced this pull request Apr 9, 2026
Register PREPROD in the shared `INTERNAL_TO_PUBLIC_ALIAS_MAPPINGS`
infrastructure so the EAP attributes endpoint translates
`has_installable_file` → `installable`. This makes the `installable`
boolean filter appear in the mobile builds search bar dropdown on the
Distribution view.

Previously, the PREPROD trace item type had no entry in the alias
mapping dicts in `search/eap/utils.py`, so
`translate_internal_to_public_alias()` returned the raw internal name
`has_installable_file`. The frontend `filterToAllowedKeys()` then
couldn't match it against the allowlist (which expects `installable`),
so the attribute was silently filtered out.

The mapping dict is built dynamically from
`PREPROD_SIZE_ATTRIBUTE_DEFINITIONS`, so any future aliased PREPROD
attributes will automatically be included.

Refs EME-868

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants