Skip to content
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

Allow numbers on module name #7

Closed
jose-sky opened this issue Jun 2, 2023 · 7 comments
Closed

Allow numbers on module name #7

jose-sky opened this issue Jun 2, 2023 · 7 comments
Assignees

Comments

@jose-sky
Copy link

jose-sky commented Jun 2, 2023

Hi,

Feature request

I would like to name my module S3. Right now that is throwing an error. It doesn't say specifically the problem but I assume is the number.

Module name is invalid

@jose-sky
Copy link
Author

jose-sky commented Jun 2, 2023

Okay I can see why it is, the regexp only allow a minimum of 3 characters. Same is happening for the creation of a namespace call db

if not re.match(r'^[0-9a-zA-Z][0-9a-zA-Z-_]+[0-9A-Za-z]$', name):

perhaps it would be acceptable to change it to:

if not re.match(r'^[0-9a-zA-Z-_]+[0-9A-Za-z]$', name):

@jose-sky
Copy link
Author

jose-sky commented Jun 2, 2023

Actually if you don't want to allow the first character to be _ or - then it will be the opposite

if not re.match(r'^[0-9A-Za-z][0-9a-zA-Z-_]+$', name):

@MatthewJohn
Copy link
Owner

Hey @jose-sky ,

Thanks for raising this :)

I'd be a little concerned with starting/ending with dash/underscore - how would this sound?

^[0-9A-Za-z][0-9a-zA-Z-_]*[0-9A-Za-z]$

So at least 2 characters of: any alpha-numeric character at beginning and end, with dashes/underscores allowed in the characters in-between?

Many thanks
Matt

@MatthewJohn
Copy link
Owner

Hey @jose-sky

Assuming you're happy with this suggestion, I've made an upstream ticket (https://gitlab.dockstudios.co.uk/pub/terrareg/-/issues/397) and a PR with the fix (https://gitlab.dockstudios.co.uk/pub/terrareg/-/merge_requests/332).

Let me know if you're happy/have any concerns with this implementation and I'll merge once you've confirmed :)

Many thanks
Matt

@MatthewJohn MatthewJohn self-assigned this Jun 2, 2023
@jose-sky
Copy link
Author

jose-sky commented Jun 5, 2023

This sounds great and cover all our use case for now 👍 Thanks

@MatthewJohn
Copy link
Owner

Excellent - I'll merge the PR :) Apologies, I heard about the mail delivery issues - hopefully they should be sorted now :)

@MatthewJohn
Copy link
Owner

That's now merged and released in v2.69.0 :)

marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
Add button to UI to sign in via SSO.
Add endpoints to initiate authentication flow and handle callback from provider

Issue MatthewJohn#7
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
Update authentication handling to differenciate between password and OpenID-based authentication.
Create common method to create session and use for password authentication and OpenID-based authentication.

Issue MatthewJohn#7
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
Callers of create_session expect None when a session was not successfully created

Issue MatthewJohn#7
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
…r than SSO and assert custom button text works

Issue MatthewJohn#7
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
marcelobartsch-jt pushed a commit to marcelobartsch-jt/terrareg that referenced this issue Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants