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 underscores in workspace name regex #19

Merged
merged 5 commits into from
Apr 30, 2024
Merged

Conversation

robsyme
Copy link
Member

@robsyme robsyme commented Apr 22, 2024

The existing pattern assumes that all org and workspace identifiers are a-z (no capital letters, underscores, numbers or dashes).

This PR adjusts the pattern to fix the pattern to match the one used by Seqera Platform - identifiers must begin and end with [a-zA-Z0-9] but can otherwise contain (up to 38 chars of) letters lowercase, letters uppercase, numbers, dashes or underscores ([a-zA-Z0-9]|[-_]).

@robsyme robsyme requested a review from drpatelh April 22, 2024 18:23
I've pulled the regular expression used in the
error message displayed on the Seqera Platform
when you try to create a workspace using an
invalid identifier.
@maxulysse
Copy link
Member

Can you update the snapshots?

@robsyme
Copy link
Member Author

robsyme commented Apr 29, 2024

@maxulysse Snapshots updated. The remaining failures seem to be specific to the CI runner - I get passes when testing on Gitpod.

@maxulysse
Copy link
Member

OK, I'd say that the failing tests seems to be connected to Nextflow version, since the one that fails are nf-latest-everything.
I'd rather we don't merge it until we know for sure what is the cause, and even try to fix.

@robsyme
Copy link
Member Author

robsyme commented Apr 30, 2024

Tests look good. I'll update the changelog and then merge.

@robsyme robsyme merged commit ead81f8 into dev Apr 30, 2024
22 checks passed
@robsyme robsyme deleted the workspace_name_pattern_fix branch April 30, 2024 14:18
@drpatelh drpatelh added this to the 0.2.0 milestone May 28, 2024
@drpatelh drpatelh changed the title Allow underscores in workplace name Allow underscores in workspace name regex May 28, 2024
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

Successfully merging this pull request may close these issues.

None yet

4 participants