Redesign vault clone name conflict handling #672
Labels
development
Standard development
r&d:polykey:core activity 1
Secret Vault Sharing and Secret History Management
Specification
Currently this is handled very simply where we take the existing name and increment the number on it as
vaultname-1
vaultname-2
etc etc. It does this until the name doesn't already exists and uses that for the name. Otherwise it hits 50 attempts and throws. The problem with this is that the hard coded limit is not ideal.In my mind there are two alternatives. When cloning a vault and there is a name conflict it will just fail. You can specify a new name and if that conflicts it will also fail. It's pretty simple and gives the user the ability to specify the desired name.
Alternatively since the names are indexed, if the name is taken we can reverse iterate once using that name as the starting position. Then take that and append
-copy
to it.Additional context
Related: #652
Tasks
The text was updated successfully, but these errors were encountered: