Skip to content

ref(cells): RpcOrganizationSlugReservation uses cell_name on the wire#111597

Merged
lynnagara merged 2 commits intomasterfrom
rpc-organization-slug-reservation
Mar 27, 2026
Merged

ref(cells): RpcOrganizationSlugReservation uses cell_name on the wire#111597
lynnagara merged 2 commits intomasterfrom
rpc-organization-slug-reservation

Conversation

@lynnagara
Copy link
Copy Markdown
Member

@lynnagara lynnagara commented Mar 26, 2026

flips the wire format from "region_name" to "cell_name". Alias is still present for deploy safety.

switches the wire format from "region_name" to "cell_name"
@lynnagara lynnagara requested a review from a team March 26, 2026 00:54
@lynnagara lynnagara requested a review from a team as a code owner March 26, 2026 00:54
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 26, 2026
user_id: int | None
slug: str
region_name: str
cell_name: str
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.

There are still a few call sites that are using region_name. Shouldn't those be updated to use cell_name before we switch the wire format.

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.

you mean accessing the property .region_name?

that's fine since we still have this below:

@property
def region_name(self) -> str:
 return self.cell_name

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.

Yes, the serialize_slug_reservation function is creating instances of this model with region_name.

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.

yeah it works due to the root validator, but i had to change it anyway to make mypy happy

@lynnagara lynnagara merged commit 876b9a5 into master Mar 27, 2026
105 of 106 checks passed
@lynnagara lynnagara deleted the rpc-organization-slug-reservation branch March 27, 2026 15:15
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 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.

2 participants