ref(cells): clean up dead is_historical_monolith region handling#112053
ref(cells): clean up dead is_historical_monolith region handling#112053
Conversation
hybrid cloud migration happened years ago, we shouldn't keep temporary code for the migration around, which special cases the "us" region
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.
| return invite_context | ||
| # The pre-silo migration invite URL format omitted the org ID/slug. | ||
| # Those links have long since expired, so we no longer attempt to resolve them. | ||
| return None |
There was a problem hiding this comment.
Dead function stub with unused parameters remains
Low Severity
handle_empty_organization_id_or_slug now unconditionally returns None and none of its three parameters (member_id, user_id, request) are used. This is dead code that outlived the cleanup — the function and its call in get_invite_state could be replaced with a direct return None (with the comment inline), removing an unnecessary layer of indirection.
Additional Locations (1)
Backend Test FailuresFailures on
|
this removes the pre-silo organization invite path. this fundamentally does not work in the regional or cell world -- all org specific routes need to contain the org identifier (id or slug) in order to target the correct cell. since we have not sent invites using this path for many years, it should be safe to remove this is a prequisite to #112053 and other codebase cleanups
markstory
left a comment
There was a problem hiding this comment.
Test failures look relevant
| @@ -32,41 +28,9 @@ | |||
| def handle_empty_organization_id_or_slug( | |||
There was a problem hiding this comment.
Do we need to keep this function? It is not used in getsentry.
|
closing for now, need to wait until may 8th to remove this. after this date all the invite links previously sent to legacy urls would be expired and this can all removed along with a number of other related code paths |


hybrid cloud migration happened years ago, we shouldn't keep temporary code for the migration around, which special cases the "us" region