-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Warn if provided (github?) organisation contains spaces/whitespace or results in unusable build urls #129
Comments
@acsr You're talking about the question that asks for "GitHub or GitLab Username or Organization", right? This field is only used for building github URLs. You're supposed to put in the Github organization name that appears in the URL, not a display name. How can we make this clearer? Maybe it would make more sense to ask for the github repository URL and then parse out the owner (org name) and repository name from that. |
@acsr Moving to cookieplone-templates because this question is part of specific templates, not the cookieplone framework. |
I don't think that the prompt can be more clear, unless you explicitly state "lowercase letters and numbers only", and that might be too long. See sample output at https://6.docs.plone.org/install/create-project-cookieplone.html#generate-the-project.
I would enforce validation, and reject anything that is not compliant with what is outside our control, similar to project slug. I would not normalize, as that is prone to error. |
@stevepiercy wrote:
After rethinking and one day I thought this does the job (see alternative down below):
but… it can be better… Communication and Understanding in ContextThe second "or" in the prompt confuses during understanding. Another more precise form is:
Error Messages not precise enoughThe given error messages did not help to understand the issue at first view. Often the developers are aware of the needs already and fail to recognize the possible hurdles because they meet the expectation intuitively. The challenge to create the slug for the project name is obvious. But we had similar challenges at first with the levels of namespaces that were overseen as well in the initial release. Same trap againI thought I had fixed all the occurences of the organisation name already yesterday. Then I started the deploy steps and was trapped again when the space showed up again in url in multiple places. No idea from which place it came from again. |
Issue with spaces in organisation display title
When cookieplone asks for your organisation and you enter the display name that may contain spaces or uppercase letters, the resulting urls in the make machinery are created using spaces and match not the normalized github urls.
Result: Failing builds and tests
Workaround
I fixed it by manually searching and replacing the spaces with hyphens.
Solution
I am not sure if you can create a transformation for the repo url of the organisation due to the possibilities to use wider Unicode chracters fotr the actual name and to properly guess the right transformation.
The text was updated successfully, but these errors were encountered: