-
Notifications
You must be signed in to change notification settings - Fork 192
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
π Setting user
(Email) to none is possible but fails quickly
#6030
Comments
Also not easy to fix this? I think I have to delete the profile and make it again. |
Interestingly, just trying to press enter when the already stored β― verdi profile delete dev
Warning: deleting profile `dev` excluding: database user.
Warning: this operation cannot be undone, are you sure you want to continue? [y/N]: y
Success: profile `dev` was deleted excluding: database user..
β― verdi setup
Report: enter ? for help.
Report: enter ! to ignore the default and set no value.
Profile name: dev
Email Address (for sharing data) [None]:
Error: Please enter a valid email. |
Also noticed that my database was silently deleted when deleting the profile. This should not be the default.
|
Because in the current database schema, most tables, such as Now one can of course question this decision, but that has been there since the very first version of AiiDA, and changing it would require database migrations and lots of changes in a lot code to deal with the assumption that a user will always be set. On to the actual bug: I think this may be a problem in the (quite complex) logic of SETUP_USER_EMAIL = options.USER_EMAIL.clone(
prompt='Email Address (for sharing data)',
default=get_config_option('autofill.user.email'),
required_fn=lambda x: get_config_option('autofill.user.email') is None,
required=True,
cls=options.interactive.InteractiveOption
) So as you can see, it is |
Confirmed. The problem is that |
Yes, I can see how the
Now, I don't see these questions as huge barriers for beginning users, obviously. But I do vaguely remember being annoyed at having to go through these again and again when I was first trying to set up a profile (without YAML files, wild times). I think there is an argument to be made for streamlining this even more and allowing these user details to be configured afterwards using |
This falls in the same category of complaints you had about the number of prompts when configuring a computer with the
This would work indeed, but it would still be prompted for, until we implement the feature mentioned above. So the user would still have to press enter, but most likely is going to be either more confused or will end up typing their own email anyway. So not sure that would help much. |
Fair point, I have already tried to do something similar for |
Describe the bug
While running
verdi profile setup
, it's possible not to set theuser
(which is actually an email, also slightly strange):All good, ready to go I'd say π. Alas, the party ends quite quickly:
Expected behavior
If the user is necessary to run with the profile it should not be possible to not specify it during setup. That said, why is the user necessary just to use AiiDA? I understand that e.g. only the groups owned by the current user are shown when doing e.g.
verdi group list
, but I would argue this actually detracts from the UX (I download archive. I import archive. I doverdi group list
and see no groups).In fact, do we really have to ask people's names too? And their Institution even? I think there are all unnecessary and hence can be optional but removed from the setup.
Your environment
main
branchAdditional context
Also I could not find a specific issue with a cursory search, this is heavily related to all issues concerning AiiDA uptake, i.e. getting beginners up and running as fast as possible with AiiDA.
The text was updated successfully, but these errors were encountered: