IQSS / dataverse

Open source research data repository software
http://dataverse.org
Other
878 stars 491 forks source link

Update metadatablock logic to fail if dataverse collection does not exist #8675

Open scolapasta opened 2 years ago

scolapasta commented 2 years ago

When uploading a metadatablock via tsv file, you can specify a dataverse collection (when you do, that block is only available in the subtree of the installation).

Currently, if you do this and the dataverse collection does not exist, the upload succeeds with the block being universally available. This issue is a suggestion to change the behavior, so it fails in this case.

poikilotherm commented 2 years ago

Just a heads up that #7662 will contain a new parser for TSV file validation and Solr schema creation. This will not include validation for existence of a collection of course...

I dunno if the parser might be a thing for a refactoring when touching this code.