You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why do we need that consistency? The two types of names are not used the same way.
kylecarbs
changed the title
Refactor: Semantics of username being applied to usernames and workspace names
Semantics of username being applied to usernames and workspace names
Jun 7, 2022
This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity.
Uh oh!
There was an error while loading. Please reload this page.
Developer Story
We have a custom username validator (that we register on Go Validator) called
username
:coder/coderd/httpapi/httpapi.go
Line 34 in 527f1f3
It's being applied to both usernames:
coder/codersdk/users.go
Line 44 in a3556b1
and workspace names:
coder/codersdk/organizations.go
Line 69 in c7ca86d
These semantics don't overlap cleanly - is a workspace name a username ?
It may be the case that workspace names and usernames have the same validation under-the-hood, but the questions remain:
username
be generalized then (renamed)S/o to @oxy for helping to identify this 🎉 !
The text was updated successfully, but these errors were encountered: