Skip to content

chore(dashboards): Use Dashboard router hint in revision restore#113605

Merged
gggritso merged 2 commits intomasterfrom
georgegritsouk/fix-tombstone-router-hint-in-revision-restore
Apr 22, 2026
Merged

chore(dashboards): Use Dashboard router hint in revision restore#113605
gggritso merged 2 commits intomasterfrom
georgegritsouk/fix-tombstone-router-hint-in-revision-restore

Conversation

@gggritso
Copy link
Copy Markdown
Member

@gggritso gggritso commented Apr 21, 2026

This stuck out to me while looking at some related code. DashboardTombstone is not long for this world, and it seemed strange that it's used as the hint here, since it's not the model being changed! I figured now's a good time to remove it.

The atomic transaction in the revision restore endpoint only writes
`Dashboard` and `DashboardRevision` rows, but was passing
`DashboardTombstone` to `router.db_for_write()`. It was harmless since
all three share a DB, but misleading — the hint should reflect what the
transaction actually writes. This appears to have been copy-pasted from
the details endpoint's PUT, where the transaction did also write a
tombstone row.

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 21, 2026
@gggritso gggritso requested a review from skaasten April 21, 2026 21:28
@gggritso gggritso marked this pull request as ready for review April 21, 2026 21:28
@gggritso gggritso requested a review from a team as a code owner April 21, 2026 21:28
Copy link
Copy Markdown
Contributor

@skaasten skaasten left a comment

Choose a reason for hiding this comment

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

Thank you! 🙏

@gggritso gggritso merged commit 3d84d51 into master Apr 22, 2026
57 checks passed
@gggritso gggritso deleted the georgegritsouk/fix-tombstone-router-hint-in-revision-restore branch April 22, 2026 15:55
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