Skip to content

ref(cells): Remove category from CellConfig#117558

Open
lynnagara wants to merge 10 commits into
masterfrom
remove-category-cell-config
Open

ref(cells): Remove category from CellConfig#117558
lynnagara wants to merge 10 commits into
masterfrom
remove-category-cell-config

Conversation

@lynnagara

Copy link
Copy Markdown
Member

This property is no longer relevant, now that category is a property of Locality. Iwas previously only used to generate the Locality.category when creating a synthetic 1:1 cell. That behavior was removed in #117462.

This property is no longer relevant, now that category is a
property of Locality. Iwas previously only used to generate the
`Locality.category` when creating a synthetic 1:1 cell. That
behavior was removed in #117462.
@lynnagara lynnagara requested a review from a team June 12, 2026 18:31
@lynnagara lynnagara requested review from a team as code owners June 12, 2026 18:31
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 12, 2026
Comment thread src/sentry/conf/server.py
Comment thread src/sentry/conf/types/cell_config.py
@lynnagara lynnagara requested review from a team as code owners June 12, 2026 19:08
Comment thread src/sentry/testutils/cell.py
Comment thread src/sentry/types/cell.py

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Reviewed by Cursor Bugbot for commit 422edcf. Configure here.

def cell_display_order(cell: Cell) -> tuple[bool, bool, bool, str]:
return (
cell.name != settings.SENTRY_MONOLITH_REGION, # default historical cell comes first
cell.category != RegionCategory.MULTI_TENANT, # multi-tenant before single

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Staff cell sort regression

Low Severity

Staff-facing cells in client config dropped multi-tenant vs single-tenant ordering when Cell.category was removed, without using the locality’s category. Single-tenant cells may no longer sort after multi-tenant ones in the superuser cell list.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 422edcf. Configure here.

@lynnagara lynnagara Jun 12, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

category isn't a property of the cell anymore. I removed it rather than reimplement this to based on locality category since this is planned to be rewritten as discussed in #116895 (comment)

It also only applies to staff/superuser so is fairly inconsequential

@lynnagara lynnagara requested a review from a team as a code owner June 12, 2026 20:01
Comment thread src/sentry/testutils/cell.py
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