-
Notifications
You must be signed in to change notification settings - Fork 493
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
Pre-existing datasets cannot be uploaded to through the API #2062
Comments
Similar problems have been reported from people using the GUI as well:
It seems like we've been recommending to people that they edit metadata and add the required fields but let me check with @posixeleni and @sbarbosadataverse |
Related: #2051 |
@pdurbin migrated or new datasets, going forward, if someone in the UI goes into edit a dataset they will need to add the subject and the error messaging needs to be clear (if not already). The API would need some way to let a user know what the controlled vocabulary for a subject is otherwise how would they be able to successfully fill in the value(s) that the system is expecting? |
@posixeleni right, #1510 is about exposing the possible values for "Subject". @rliebz at a high level, one thing OSF could do is download the metadata for a dataset in JSON, fill in the Subject field, and re-upload the new JSON to create a new draft version. (That's basically what we're telling people to do in the GUI.) Then you can upload files. |
We have also discussed the solution being to allow the file upload but not allow to publish if not valid. We will be looking at these types of issues in 4.01 or 4.0.2. |
Assigning to 4.0.1 so we can decide what we want the solution to be. |
I created an issue for the Python client with an example script of how to update metadata with JSON: IQSS/dataverse-client-python#15 |
This issue is quite old. I think an acceptable workaround is to edit the migrated dataset in the GUI to add whatever is being complained about such as a subject. Vote to close. |
Some datasets exist on dataverse.harvard.edu that were migrated from thedata.harvard.edu, but do not meet the new standards for metadata. This includes fields such as "Subject" and "Contact Email" that are now required.
Expected:
Because uploading a file does not involve updating dataset metadata, a file upload to a dataset with incomplete metadata should be allowed.
Actual:
For datasets with incomplete metadata, the SWORD API will return the following exception when attempting to upload files:
The text was updated successfully, but these errors were encountered: