Closed hero101 closed 2 months ago
I tried creating a new user using the data below:
{ "input": { "email": "asdf@asdf.com" , "profileData": { "displayName": "?????.....?..-", "description": "", "tagline": "" } } }
which gave the following error:
Also I tried to do the same with organization and it seems the new logic is not applied for organizations, I get a nameID that was too short (one character).
@techsmyth
@techsmyth I have added CreateNameableOptionalInput
for consistency reasons, and it needs to be used where the same behaviour is required.
The two classes can go out of sync - let me know if you have ideas how to keep them in sync.
Still need to fix the tests after your latest change, and run some integration tests, since the changes started to pile up and they touch important code. It indeed takes more time than anticipated, but I am not confidant in the changes.
NameID generation algorithm
NamingService.createNameID
made private
extracted to a testable function
rearranged the implementation
added tests for
NamingService.createNameIdAvoidingReservedNameIDs