feat(preprod): Upgrade admin panel's "rerun analysis" action to support batch (up to 100)#112481
feat(preprod): Upgrade admin panel's "rerun analysis" action to support batch (up to 100)#112481NicoHinderling merged 3 commits intomasterfrom
Conversation
Add PreprodArtifactAdminBatchRerunAnalysisEndpoint at /internal/preprod-artifact/batch-rerun-analysis/ that accepts multiple artifact IDs in a single request. Includes deduplication, a 100-item batch limit, per-artifact success/failure reporting, and partial failure detail messages. Update the admin launchpad UI to use the new batch endpoint with comma-separated ID input and surface per-artifact dispatch failures. Co-Authored-By: Claude <noreply@anthropic.com>
|
🚨 Warning: This pull request contains Frontend and Backend changes! It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently. Have questions? Please ask in the |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1922b17. Configure here.
… rerun When dispatch_taskbroker() fails, it updates the artifact state to FAILED via QuerySet.update(), but the in-memory object still holds UPLOADED from reset_artifact_data(). This caused the API response to return a stale new_state. refresh_from_db() ensures the response reflects the actual DB state.
…rt batch (up to 100) (#112481) Closes EME-926 Add `PreprodArtifactAdminBatchRerunAnalysisEndpoint` at `/internal/preprod-artifact/batch-rerun-analysis/` so the admin launchpad can rerun analysis for multiple artifacts in a single request instead of one at a time. The endpoint accepts `{"artifact_ids": [1, 2, 3]}`, deduplicates IDs, enforces a 100-item batch limit (matching the batch delete endpoint), and returns per-artifact results with success/failure status and cleanup stats. On dispatch failure, the response includes a detail message noting that cleanup completed but dispatch failed. The admin UI card is updated from "Rerun Analysis" (single ID) to "Batch Rerun Analyses" (comma-separated IDs) and now surfaces partial failures with per-artifact error toasts. --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>

Closes EME-926
Add
PreprodArtifactAdminBatchRerunAnalysisEndpointat/internal/preprod-artifact/batch-rerun-analysis/so the admin launchpad can rerun analysis for multiple artifacts in a single request instead of one at a time.The endpoint accepts
{"artifact_ids": [1, 2, 3]}, deduplicates IDs, enforces a 100-item batch limit (matching the batch delete endpoint), and returns per-artifact results with success/failure status and cleanup stats. On dispatch failure, the response includes a detail message noting that cleanup completed but dispatch failed.The admin UI card is updated from "Rerun Analysis" (single ID) to "Batch Rerun Analyses" (comma-separated IDs) and now surfaces partial failures with per-artifact error toasts.