Skip to content

Conversation

@runningcode
Copy link
Contributor

@runningcode runningcode commented Dec 30, 2025

Summary

When comparing builds with different build configurations, the API returns a 400 error with message {"detail":"Head and base build configurations must be the same."} but the UI was not displaying it properly.

This adjusts the message in the corner to use the message from the API instead of a generic error message.

Changes

Backend

  • Standardized error responses in the size comparison endpoint to consistently use detail field instead of error field. It is a Django Framework best practice to use the detail field instead of the error field.

Here's a screenshot of what the error looks like (with spotlight dancing on top)
Screenshot 2025-12-30 at 10 23 34

…699)

Standardize error responses in size comparison endpoint to use 'detail'
field instead of 'error' field. This ensures the error message "Head and
base build configurations must be the same" is properly displayed in the
UI when comparing builds with different configurations.

Changes:
- Backend: Convert all 'error' responses to 'detail' in size comparison endpoint
- Frontend: Simplify error handling to only check 'detail' field
- Tests: Update assertions to check for 'detail' instead of 'error'
@linear
Copy link

linear bot commented Dec 30, 2025

@github-actions github-actions bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Dec 30, 2025
@github-actions
Copy link
Contributor

🚨 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 #discuss-dev-infra channel.

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 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