-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the export/import of
Node
extras (#2416)
The extras of `Nodes` can now be exported together with other data. When importing an archive that contains extras for nodes, the behavior depends on whether that node was already present in the database into which the data is imported, namely: * The `Node` did not yet exist: In this case, the extras will be imported wholesale or not at all. The behavior can be toggled from `verdi import` with the flag `--extras-mode-new`. * The `Node` already exists: In this case, the various possibilities are a lot more complex, because the existing and archived node can have overlapping and non-overlapping extras. What to do in case of conflicts and in general can be controlled by the flag `--extras-mode-existing`. The currently implemented options are as follows: - ask: import all extras and prompt what to do for existing extras. - keep_existing: import all extras and keep original value of existing. - update_existing: import all extras and overwrite value of existing. - mirror: remove any pre-existing extras and import all archive extras. - none: do not import any extras.
- Loading branch information
1 parent
b85ac3e
commit b1b34f6
Showing
3 changed files
with
479 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.