Skip to content

fix(dashboards): Add context logging for widget mismatch errors#112608

Merged
edwardgou-sentry merged 2 commits intomasterfrom
edwardgou-sentry/fix/dashboard-widget-mismatch-logging
Apr 9, 2026
Merged

fix(dashboards): Add context logging for widget mismatch errors#112608
edwardgou-sentry merged 2 commits intomasterfrom
edwardgou-sentry/fix/dashboard-widget-mismatch-logging

Conversation

@edwardgou-sentry
Copy link
Copy Markdown
Contributor

@edwardgou-sentry edwardgou-sentry commented Apr 9, 2026

Capture event when encountering You cannot update widgets that are not part of this dashboard on saving dashboards.

Capture org slug, dashboard ID, widget ID, and existing vs requested
widget IDs when a widget update targets a widget not belonging to the
dashboard. This helps debug the root cause of these validation errors
in production.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 9, 2026
Use a shorter context key name for the dashboard widget mismatch
Sentry SDK context.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@edwardgou-sentry edwardgou-sentry marked this pull request as ready for review April 9, 2026 19:18
@edwardgou-sentry edwardgou-sentry requested a review from a team as a code owner April 9, 2026 19:18
@edwardgou-sentry edwardgou-sentry merged commit 6e1004f into master Apr 9, 2026
58 checks passed
@edwardgou-sentry edwardgou-sentry deleted the edwardgou-sentry/fix/dashboard-widget-mismatch-logging branch April 9, 2026 19:43
george-sentry pushed a commit that referenced this pull request Apr 9, 2026
)

Capture event when encountering `You cannot update widgets that are not
part of this dashboard` on saving dashboards.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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