Skip to content

fix(releases): Use mobile_app_info for preprod build count query#106527

Merged
cameroncooke merged 1 commit intomasterfrom
cameroncooke/fix_mobile_build_count_logic
Jan 19, 2026
Merged

fix(releases): Use mobile_app_info for preprod build count query#106527
cameroncooke merged 1 commit intomasterfrom
cameroncooke/fix_mobile_build_count_logic

Conversation

@cameroncooke
Copy link
Contributor

@cameroncooke cameroncooke commented Jan 19, 2026

The preprodBuildCount query was reading from the deprecated PreprodArtifact.build_version field instead of the new PreprodArtifactMobileAppInfo.build_version field. This was missed when PR #105847 updated other endpoints to use the new model.

This caused preprodBuildCount to always be 0 for new uploads (after PR #105847 was deployed), which affects:

  • Mobile Builds tab visibility on release detail pages for non-mobile projects
  • The count badge displayed on the Mobile Builds tab

Before - Python project with mobile builds, not showing Mobile Builds tab

Screenshot 2026-01-19 at 16 26 40

After

Screenshot 2026-01-19 at 17 54 22

Before - Mobile project, not showing count on Mobile Builds tab

Screenshot 2026-01-19 at 16 21 19

After

Screenshot 2026-01-19 at 16 21 48

The preprodBuildCount query was reading from the deprecated
PreprodArtifact.build_version field instead of the new
PreprodArtifactMobileAppInfo.build_version field. This was missed
when PR #105847 updated other endpoints to use the new model.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 19, 2026
@cameroncooke cameroncooke requested a review from rbro112 January 19, 2026 17:56
@cameroncooke cameroncooke merged commit 9804637 into master Jan 19, 2026
69 checks passed
@cameroncooke cameroncooke deleted the cameroncooke/fix_mobile_build_count_logic branch January 19, 2026 18:27
BYK pushed a commit that referenced this pull request Jan 19, 2026
…6527)

The preprodBuildCount query was reading from the deprecated
`PreprodArtifact.build_version` field instead of the new
`PreprodArtifactMobileAppInfo.build_version` field. This was missed when
PR #105847 updated other endpoints to use the new model.

This caused `preprodBuildCount` to always be `0` for new uploads (after
PR #105847 was deployed), which affects:
- Mobile Builds tab visibility on release detail pages for non-mobile
projects
- The count badge displayed on the Mobile Builds tab

### Before - Python project with mobile builds, not showing Mobile
Builds tab

<img width="643" height="314" alt="Screenshot 2026-01-19 at 16 26 40"
src="https://github.com/user-attachments/assets/3fb9f5e9-9a5b-4280-b684-ec9233c01f15"
/>

### After

<img width="613" height="254" alt="Screenshot 2026-01-19 at 17 54 22"
src="https://github.com/user-attachments/assets/b8b6b3ab-3ee5-4d33-b9ac-41c377e15e4b"
/>

### Before - Mobile project, not showing count on Mobile Builds tab

<img width="609" height="229" alt="Screenshot 2026-01-19 at 16 21 19"
src="https://github.com/user-attachments/assets/bb100549-78d3-4111-bd44-093f813ec32c"
/>

### After

<img width="617" height="238" alt="Screenshot 2026-01-19 at 16 21 48"
src="https://github.com/user-attachments/assets/9dfef683-86a0-409a-b61f-9d200701856a"
/>

Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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