Skip to content

ref(cells): Safe Python symbol renames in relocation module#112884

Open
lynnagara wants to merge 1 commit intomasterfrom
lyn/cells/relocation-renames
Open

ref(cells): Safe Python symbol renames in relocation module#112884
lynnagara wants to merge 1 commit intomasterfrom
lyn/cells/relocation-renames

Conversation

@lynnagara
Copy link
Copy Markdown
Member

@lynnagara lynnagara commented Apr 13, 2026

Rename Python-level symbols (class names, variable names, parameters, comments, docstrings) from "region" to "cell" terminology in the relocation export service, transfer tasks, and related tests.

Wire format strings, DB column names, Celery task name= strings, logged messages and tags, and Django model names are intentionally left unchanged for a later migration.

Rename Python-level symbols (class names, variable names, parameters,
comments, docstrings) from "region" to "cell" terminology in the
relocation export service, transfer tasks, and related tests. Wire
format strings, DB column names, Celery task name= strings, and Django
model names are intentionally left unchanged for a later migration.
@lynnagara lynnagara requested a review from a team as a code owner April 13, 2026 23:42
@lynnagara lynnagara requested a review from a team April 13, 2026 23:42
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 13, 2026
retry=Retry(times=MAX_FAST_TASK_RETRIES, on=(Exception,), times_exceeded=LastAction.Discard),
)
def uploading_start(uuid: str, replying_region_name: str | None, org_slug: str | None) -> None:
def uploading_start(uuid: str, replying_cell_name: str | None, org_slug: str | None) -> None:
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.

All the callers are using delay() without parameter names so this will be safe at deploy time.

Comment on lines 318 to +321
def fulfill_cross_region_export_request(
uuid_str: str,
requesting_region_name: str,
replying_region_name: str,
requesting_cell_name: str,
replying_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.

All callers use positional args 👍

Comment on lines +341 to +342
"requesting_region_name": requesting_cell_name,
"replying_region_name": replying_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.

If you wanted to rename the keys here you could. There aren't any dashboards attached to this.

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