-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
verdi code setup should warn when setting up a code with existing label #3303
Comments
Along the same lines: when importing an archive file, it would make sense to relabel codes in the archive if a code of the same label already exists in the database (analogous to what is done for computers). |
Just out of curiosity: Would it not be better to disallow two codes with the same label altogether? |
Once we implement the warning + renaming for |
But we could enforce uniqueness at the level of the |
In my opinion the code label doesn't need to be unique. For context, when testing a code across variations of our infrastructure I would distinguish them only by the computer. Of course it would be possible to add a |
Yes, my comment seemed to imply that I was thinking of uniqueness for the code label only, but I agree that this discussion should focus on whether |
Hello Aiida team, |
Hi @janssenhenning! 👋 Welcome, happy to hear you want to work on this! I definitely think it is still relevant! I guess we just have to agree on how to proceed. To continue the discussion, let me reply to @ltalirz's comment.
Indeed, I agree that the code label alone should not need to be unique. However, I think we should enforce only having one |
I started trying to implement the mentioned warning mechanism for
|
Currently,
verdi code setup
will happily set up codes with the same label multiple times.It is fine that this is allowed in principle, but in interactive mode, a user should be warned when doing this.
The simplest might be something like:
If we want to be more fancy, we could add a prompt
The text was updated successfully, but these errors were encountered: