Skip to content

fix(preprod): Hide approve button on status check when snapshots already approved#112978

Merged
NicoHinderling merged 1 commit intomasterfrom
fix/hide-approve-button-when-approved
Apr 14, 2026
Merged

fix(preprod): Hide approve button on status check when snapshots already approved#112978
NicoHinderling merged 1 commit intomasterfrom
fix/hide-approve-button-when-approved

Conversation

@NicoHinderling
Copy link
Copy Markdown
Contributor

Hide the GitHub check run "Approve" button when all snapshot changes
have already been approved.

Previously, approve_action_identifier was set whenever changes_map
had any truthy entries — regardless of whether those changes were
already approved. This meant the Approve button persisted on the check
run even after a user approved all snapshots (either via the Sentry UI
or the GitHub button itself).

Now the condition cross-references approvals_map to only include the
button when at least one changed artifact remains unapproved. This is
consistent with how _compute_snapshot_status already determines
pass/fail status.

…ady approved

Previously the GitHub check run always showed the Approve button when
any snapshot changes existed, even if all changes were already approved.
Now the button is only included when there are unapproved changes.

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 Apr 14, 2026
@NicoHinderling NicoHinderling marked this pull request as ready for review April 14, 2026 21:10
@NicoHinderling NicoHinderling requested a review from a team as a code owner April 14, 2026 21:10
@NicoHinderling NicoHinderling merged commit 4e097fd into master Apr 14, 2026
57 checks passed
@NicoHinderling NicoHinderling deleted the fix/hide-approve-button-when-approved branch April 14, 2026 21:51
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