Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(backup): Refine dangling model resolution #57335

Conversation

azaslavsky
Copy link
Contributor

@azaslavsky azaslavsky commented Oct 2, 2023

Certain models that do not have an unambiguous relationship to any RelocationScope root model (ex: Organization, User, etc) are termed "dangling", because filtering them other models is done by simply moving up the model dependency tree from the root to the leaves, for "dangling" models we have to double back and look at these "dangling" innner leaves instead. See https://tinyurl.com/27z4x6tk for more info; the SnubaQuery, TimeSeriesSnapshot, and Email models are all dangling in this manner.

This PR changes the dangling resolution logic a bit: all Excluded relocation scope models are no longer considered dangling. Additionally, a few models that didn't quite get over the hump for "dangling" resolution during status analysis, but are obviously so, are marked as such.

Issue: getsentry/team-ospo#203

@vercel
Copy link

vercel bot commented Oct 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 2, 2023 11:47pm

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 2, 2023
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/refine_dangling branch from f871c13 to 789f575 Compare October 2, 2023 23:44
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/unique_coverage branch from 98ccd66 to b81b8ec Compare October 3, 2023 16:55
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/refine_dangling branch from 789f575 to b494cf3 Compare October 3, 2023 16:55
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/unique_coverage branch from b81b8ec to 93ca40d Compare October 3, 2023 17:59
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/refine_dangling branch from b494cf3 to 9f9ce36 Compare October 3, 2023 17:59
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/unique_coverage branch from 93ca40d to 7650f21 Compare October 6, 2023 23:24
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/refine_dangling branch from 9f9ce36 to 288e0fd Compare October 6, 2023 23:24
Certain models that do not have unambiguous relationship to any
RelocationScope root model (ex: Organization, User, etc) are termed
"dangling", because filtering them down is done by simply moving up the
model dependency tree from the root to the leaves - we have to double
back and look at these "dangling" innner leaves instead. See
https://tinyurl.com/27z4x6tk for more info; the `SnubaQuery`,
`TimeSeriesSnapshot`, and `Email` models are all dangling in this
manner.

This PR changes the dangling resolution logic a bit: all `Excluded`
relocation scope models are no longer considered dangling. Additionally,
a few models that didn't quite get over the hump for "dangling"
resolution during status analysis, but are obviously so, are marked as
such.

Issue: getsentry/team-ospo#203
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/unique_coverage branch from 7650f21 to 63df56c Compare October 7, 2023 00:12
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/refine_dangling branch from 288e0fd to 11fcf1d Compare October 7, 2023 00:12
@azaslavsky azaslavsky marked this pull request as ready for review October 10, 2023 21:44
@azaslavsky azaslavsky requested a review from a team as a October 10, 2023 21:44
@azaslavsky azaslavsky merged this pull request into azaslavsky/backup/unique_coverage Oct 10, 2023
43 checks passed
@azaslavsky azaslavsky deleted the azaslavsky/backup/refine_dangling branch October 10, 2023 21:44
@azaslavsky azaslavsky restored the azaslavsky/backup/refine_dangling branch October 11, 2023 00:30
@github-actions github-actions bot locked and limited conversation to collaborators Oct 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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