abodelot/varager

Add uniqueness constraint on environment name

Closed this issue · 3 comments

Add uniqueness constraint on environment name
ant31 commented

What about having name composed with parents's name?

|-App1
   |-> Prod
|-App2
   |-> Prod

the 'full-names' would be :
app1-prod and app2-prod

In short uniqueness on name+ancestor

But there will be also a default app at top level, this can leads to long name and a lack of customization.

Also, if the name is used as an identifier (url slug), it's better to have the field as-is in database so we can still fetch the item with a single query.

ant31 commented

why default app?