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
Strip whitespace from project role group names #10919
Comments
i wanna work on this |
@utopian-monkey go for it! Let me know if you need any help! |
Where are the changes to be implemented? |
@The-Debarghya I think either in server/project/project.go's Update function (stripping whitespace on project update) or on the |
Hey @crenshaw-dev , let me know if this is up for grab, I don't see this issue as assigned |
…names (#10919) (#10988) * fix: add check for trailing/leading whitespace in project role group names Signed-off-by: Ferenc <ferenc.horvay@web.de> * fix: change expected output on whitespace test Signed-off-by: Ferenc <ferenc.horvay@web.de> * fix: apply requested changes Signed-off-by: Ferenc <ferenc.horvay@web.de> Signed-off-by: Ferenc <ferenc.horvay@web.de>
…names (argoproj#10919) (argoproj#10988) * fix: add check for trailing/leading whitespace in project role group names Signed-off-by: Ferenc <ferenc.horvay@web.de> * fix: change expected output on whitespace test Signed-off-by: Ferenc <ferenc.horvay@web.de> * fix: apply requested changes Signed-off-by: Ferenc <ferenc.horvay@web.de> Signed-off-by: Ferenc <ferenc.horvay@web.de>
…names (argoproj#10919) (argoproj#10988) * fix: add check for trailing/leading whitespace in project role group names Signed-off-by: Ferenc <ferenc.horvay@web.de> * fix: change expected output on whitespace test Signed-off-by: Ferenc <ferenc.horvay@web.de> * fix: apply requested changes Signed-off-by: Ferenc <ferenc.horvay@web.de> Signed-off-by: Ferenc <ferenc.horvay@web.de> Signed-off-by: emirot <emirot.nolan@gmail.com>
Summary
I think the API server should strip the leading/trailing whitespace from group names in project roles.
Motivation
Intuit had a project role where a group name had a trailing whitespace. I believe this was the result of an accidental copy/paste to the UI.
Proposal
The API server should strip leading/trailing whitespace from group names before adding them.
Note: I'm assuming that leading/trailing whitespace is always invalid around group names. I think that's true, but please disagree if I'm wrong!
The text was updated successfully, but these errors were encountered: