-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
ref: Begin deprecating category from localities
#123250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,8 +34,6 @@ class Locality: | |
| cells: frozenset[str] | ||
| """The set of cell names that belong to this locality.""" | ||
|
|
||
| category: RegionCategory | ||
|
|
||
| new_org_cell: str | ||
| """The cell within this locality where new organizations are provisioned.""" | ||
|
|
||
|
|
@@ -45,6 +43,9 @@ class Locality: | |
| signup_visible: bool = True | ||
| """Whether or not a locality should be visible for org signup/relocation.""" | ||
|
|
||
| category: RegionCategory = RegionCategory.MULTI_TENANT | ||
| """Deprecated. Visibility is defined via `visible` and `signup_visible`.""" | ||
|
|
||
| def to_url(self, path: str) -> str: | ||
| """Resolve a path into a customer facing URL on this locality. | ||
|
|
||
|
|
@@ -495,19 +496,13 @@ def find_all_multitenant_locality_names() -> list[str]: | |
| """ | ||
| Return all visible multi-tenant localities. | ||
| """ | ||
| return [ | ||
| loc.name | ||
| for loc in get_global_directory().localities | ||
| if loc.category == RegionCategory.MULTI_TENANT and loc.visible | ||
| ] | ||
| return [loc.name for loc in get_global_directory().localities if loc.visible] | ||
|
Comment on lines
498
to
+499
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Removing the Suggested FixVerify that all production configurations for single-tenant localities have been updated to set Prompt for AI AgentAlso affects:
|
||
|
|
||
|
|
||
| def find_all_signup_locality_names() -> list[str]: | ||
| """ | ||
| Return all locality names that are visible to org signup. | ||
| """ | ||
| return [ | ||
| loc.name | ||
| for loc in get_global_directory().localities | ||
| if loc.category == RegionCategory.MULTI_TENANT and loc.visible and loc.signup_visible | ||
| loc.name for loc in get_global_directory().localities if loc.visible and loc.signup_visible | ||
| ] | ||
Uh oh!
There was an error while loading. Please reload this page.