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

Import API example in the guide needs improvement #7251

Open
PaulBoon opened this issue Sep 8, 2020 · 3 comments
Open

Import API example in the guide needs improvement #7251

PaulBoon opened this issue Sep 8, 2020 · 3 comments
Labels

Comments

@PaulBoon
Copy link
Contributor

PaulBoon commented Sep 8, 2020

I am experimenting with the import API and I use the provided example json.

http://guides.dataverse.org/en/latest/api/native-api.html#import-a-dataset-into-a-dataverse

First of all I need to use a 'resolvable' DOI otherwise import fails with
"Provided PID does not exist. Status code for GET 'https://doi.org/ZZ7/MOSEISLEYDB94' is 404."}
If I change the DOI to one that does resolve the import works, but I cannot add files to it:
"File upload via HTTP disabled since this dataset already contains a package file."
or on the UI
"HTTP upload is disabled for this dataset because you have already uploaded files via rsync. If you would like to switch to HTTP upload, please contact DataverseNL support."

This 'package file' use in the import example complicates things or at least needs some more explanation or references.

@djbrooke
Copy link
Contributor

djbrooke commented Sep 9, 2020

Hey @PaulBoon - would you be willing to put up a PR to address this?

@PaulBoon
Copy link
Contributor Author

Hi @djbrooke, I could do that, but I don't think I have much to contribute.
Where it states: The import will fail if no PID is provided, or if the provided PID fails validation. we could add that the PID must also resolve.
Replacing the example json is a bit more involved, I don't have a good example because I just removed the files to get my test going. Maybe someone else has a good replacement for that example or knows how to best reference the packaging.

@pdurbin
Copy link
Member

pdurbin commented Oct 12, 2022

@PaulBoon does the migration API work better for you?

https://guides.dataverse.org/en/5.12/developers/dataset-migration-api.html

Also, it's weird that you're seeing those references to rsync and "package". These are part of the rsync feature that we're thinking about deprecating and removing:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants