Skip to content

feat(preprod): [Frontend] Allow staff to rerun size analysis comparisons#108188

Merged
NicoHinderling merged 2 commits intomasterfrom
02-12-feat_preprod_frontend_allow_staff_to_rerun_size_analysis_comparisons
Feb 13, 2026
Merged

feat(preprod): [Frontend] Allow staff to rerun size analysis comparisons#108188
NicoHinderling merged 2 commits intomasterfrom
02-12-feat_preprod_frontend_allow_staff_to_rerun_size_analysis_comparisons

Conversation

@NicoHinderling
Copy link
Contributor

@NicoHinderling NicoHinderling commented Feb 12, 2026

Allow staff/superuser users to force-rerun size analysis comparisons that already exist via a new admin-only action in the build comparison header.

Frontend: Adds an admin-only "More actions" dropdown (visible to Sentry employees via useIsSentryEmployee) with a "Rerun Comparison" action. The mutation handles staff permission errors by redirecting to /_admin/ for re-authentication and differentiates "exists" responses from successful reruns with appropriate toast messages. Also centralizes the comparison API URL construction into a shared getCompareApiUrl utility, deduplicating it across buildComparison.tsx, sizeCompareMainContent.tsx, and sizeCompareSelectionContent.tsx.

Copy link
Contributor Author

NicoHinderling commented Feb 12, 2026

Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@NicoHinderling NicoHinderling force-pushed the 02-12-feat_preprod_backend_allow_staff_to_rerun_size_analysis_comparisons branch from ac0b9b7 to cd9d45c Compare February 13, 2026 00:11
@NicoHinderling NicoHinderling force-pushed the 02-12-feat_preprod_frontend_allow_staff_to_rerun_size_analysis_comparisons branch from dd26860 to 8f48a4b Compare February 13, 2026 00:11
@NicoHinderling NicoHinderling force-pushed the 02-12-feat_preprod_frontend_allow_staff_to_rerun_size_analysis_comparisons branch from 8f48a4b to 43e55b6 Compare February 13, 2026 00:22
@NicoHinderling NicoHinderling force-pushed the 02-12-feat_preprod_frontend_allow_staff_to_rerun_size_analysis_comparisons branch from 43e55b6 to a24f601 Compare February 13, 2026 00:43
@NicoHinderling NicoHinderling force-pushed the 02-12-feat_preprod_frontend_allow_staff_to_rerun_size_analysis_comparisons branch from a24f601 to dfb87f7 Compare February 13, 2026 00:53
Base automatically changed from 02-12-feat_preprod_backend_allow_staff_to_rerun_size_analysis_comparisons to master February 13, 2026 01:17
@NicoHinderling NicoHinderling force-pushed the 02-12-feat_preprod_frontend_allow_staff_to_rerun_size_analysis_comparisons branch from dfb87f7 to 48cf039 Compare February 13, 2026 01:19
@NicoHinderling NicoHinderling merged commit 2682a14 into master Feb 13, 2026
62 checks passed
@NicoHinderling NicoHinderling deleted the 02-12-feat_preprod_frontend_allow_staff_to_rerun_size_analysis_comparisons branch February 13, 2026 03:48
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.

2 participants

Comments