Closed verheyenkoen closed 8 months ago
Space names have a unique constraint. The seed CLI makes 5 spaces with a random name picked from a list of 7: https://github.com/ugent-library/deliver/blob/b6ab1dd0a8eebece07f9243080b3ffa31f0b4d6c/models/space.go#L30
That will often fail with this error:
Error: name must be unique exit status 1
There should be some type of checking if a space name has already been used and if so, pick a new random until it is unique. Also probably make the list longer, so there's less chance to get a non-unique name back.
Space names have a unique constraint. The seed CLI makes 5 spaces with a random name picked from a list of 7: https://github.com/ugent-library/deliver/blob/b6ab1dd0a8eebece07f9243080b3ffa31f0b4d6c/models/space.go#L30
That will often fail with this error:
There should be some type of checking if a space name has already been used and if so, pick a new random until it is unique. Also probably make the list longer, so there's less chance to get a non-unique name back.