Support scoping within Dataverse datasets #273
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As a replacement of dedicated support for recursive deposition,
add_sibling_dataverse
now supports aroot_path
option (None
bydefault) that enables users to identify a root
directoryLabel
for aparticular DataLad dataset inside a Dataverse dataset. This option is
mirrored as
rootpath=
for the special remote.add_sibling_dataverse
merely passes it through.
It is implemented as a front-end to
mangle_path()
withinOnlineDataverseDataset
and limits all path-based operations to bewithin a given root.
This now makes it possible to represent any number of DataLad datasets
in a single Dataverse dataset. This approachs matches the requirement to
create Dataverse datasets manually, and does not constrain automation of
data deposition with large DataLad dataset hierarchies. Providing
a
root_path
rather than--recursive
enables users to choose their ownorganization of subdatasets within the Dataverse dataset, rather than
imposing a select few. Recursive operation could be done by users via
for_each_dataset
.A test is included that documents the ability to deposit nested dataset
hierarchies and re-clone them recursively.
Closes #271