Skip to content

ref(cells): Rename regions to cells in users models#111741

Merged
lynnagara merged 3 commits intomasterfrom
users-cells
Mar 30, 2026
Merged

ref(cells): Rename regions to cells in users models#111741
lynnagara merged 3 commits intomasterfrom
users-cells

Conversation

@lynnagara
Copy link
Copy Markdown
Member

Also adds TODO comments and details about the user endpoints that need to be changed:

  • UserRegions should be deprecated
  • UserOrganizationsEndpoint needs to move to control

Also adds TODO comments and details about the user endpoints that need to be changed:
- UserRegions should be deprecated
- UserOrganizationsEndpoint needs to move to control
@lynnagara lynnagara requested a review from a team March 27, 2026 19:14
@lynnagara lynnagara requested review from a team as code owners March 27, 2026 19:14
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 27, 2026
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread src/sentry/users/models/user.py Outdated
Comment thread src/sentry/users/models/user.py Outdated
Comment on lines +16 to +17
# TODO(cells): Non-routable by Synapse (no org slug in URL). Fix by moving to
# @control_silo_endpoint and querying OrganizationMemberMapping + OrganizationMapping.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We would also need to do a fanout to each cell that the user has membership in. This endpoint is doing a full details response which serializes projects and teams. We could add an opt-in flow to use data that is control only (like the new org list endpoint) so that we aren't stuck with fanout for all requests. I made a linear ticket for this TODO.

Comment on lines +43 to +44
# TODO(cells): Deprecate once organization listing is moved to control and the frontend
# no longer needs locality URLs for client-side fan-out.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We'll have to see if there is external usage of this endpoint. It doesn't seem too complicated to keep this endpoint around if it is being used, but I agree it will be kind of redundant.

@lynnagara lynnagara merged commit a28359e into master Mar 30, 2026
104 of 106 checks passed
@lynnagara lynnagara deleted the users-cells branch March 30, 2026 18:06
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 2026
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.

3 participants