Closed as not planned
Description
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:
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:
- should
username
be generalized then (renamed) - should we create a new validation for workspace name (even though it's the same)
S/o to @oxy for helping to identify this 🎉 !