Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update for rules of instance names #423

Merged
merged 4 commits into from
Mar 22, 2023
Merged

Update for rules of instance names #423

merged 4 commits into from
Mar 22, 2023

Conversation

fantix
Copy link
Member

@fantix fantix commented Mar 14, 2023

  • Instance names allow leading digits
  • Cloud instance name max length: 62
  • Dashes are allowed, except for consecutive ones like --
  • Cloud instance name must not have underscores

Fixes #420

Depends on geldata/shared-client-testcases#27

* Instance names allow leading digits
* Cloud instance name max length: 62
* Dashes are allowed, except for consecutive ones like --
@@ -861,6 +865,12 @@ def _parse_cloud_instance_name_into_config(
org_slug: str,
instance_name: str,
):
label = f"{instance_name}--{org_slug}"
if len(label) > 63:
raise ValueError(
Copy link
Member

Choose a reason for hiding this comment

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

Should probably be errors.InterfaceError or a subclass.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll create a new PR for this - too many of them to fix in a CRF.

@fantix fantix merged commit 0e7bbc4 into master Mar 22, 2023
@fantix fantix deleted the cloud-instance-name branch March 22, 2023 18:09
fantix added a commit that referenced this pull request May 26, 2023
* Instance names allow leading digits
* Cloud instance name max length: 62
* Dashes are allowed, except for consecutive ones like --
* Ban underscores for the cloud
fantix added a commit that referenced this pull request May 26, 2023
Changes
=======

* Update for rules of instance names (#423)
  (by @fantix in 5bc5699 for #420)

* Synchronize error types (#429)
  (by @fantix in 03e4012)

* Allow enums in array codec (#431)
  (by @fantix in 2de7e3f for #408)

* Prohibit concurrent operations on the same transaction object (#430)
  (by @fantix in f1fa612 for #130)

* Fix state of transaction start (#424)
  (by @fantix in 297de72)

* codegen: Handle non-identifier characters in enum values (#432)
  (by @fantix in e1ec16d for #428)

Docs
====

* docs: add Code Generation to table of contents (#421)
  (by @AndreasPB in ffe74a1 for #421)
@fantix fantix mentioned this pull request May 26, 2023
@aljazerzen aljazerzen mentioned this pull request Feb 23, 2024
This was referenced Aug 2, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cloud instance name should allow leading numerics
3 participants