Skip to content
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

Option to add all groups to node of choosing on verdi import #2075

Closed
sphuber opened this issue Oct 19, 2018 · 3 comments
Closed

Option to add all groups to node of choosing on verdi import #2075

sphuber opened this issue Oct 19, 2018 · 3 comments

Comments

@sphuber
Copy link
Contributor

sphuber commented Oct 19, 2018

I have the use case where I have an export archive with a large number of data nodes, StructureData in this case. When importing I would like to be able to automatically add them to a Group that may not already exist. Or alternatively, if the nodes are already in a group in the export file, I might want to change the name.

@giovannipizzi
Copy link
Member

giovannipizzi commented Dec 3, 2018

Every time an import is done, nodes are added to an auto group.

Tasks:

  • add documentation about auto groups and about the fact that nodes are automatically added to a group upon import.
  • Have an option in verdi import to create a "normal" group with a given name instead of the auto group
  • Have utilities to easily rename groups from verdi (so one can put things into a group after importing, if he realises that he wants to do it too late). This is also useful for other purposes. This should not only allow to change the group name but also the type (at least from a custom one to a user-specified one). Or better, to avoid to have to think to all edge cases, maybe a rename should just change the name, and then we should have a 'copy group' that allows to create a new group also with a different type.

@yakutovicha
Copy link
Contributor

The possibility to rename groups is already present:

verdi group rename --help
Usage: verdi group rename [OPTIONS] GROUP NAME

  Rename an existing group. Pass the GROUP for which you want to rename and
  its new NAME.

Options:
  -h, --help  Show this message and exit.

However, it is not possible to change the group type. Will add this possibility as well

This was referenced Dec 7, 2018
@sphuber
Copy link
Contributor Author

sphuber commented Dec 13, 2018

Fixed in #2329

@sphuber sphuber closed this as completed Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants