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

IQSS/8028 enable import with test dois #8033

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Jul 28, 2021

What this PR does / why we need it: Allows use of DataCite test DOIs with the various import/migrate API calls

Which issue(s) this PR closes:

Closes #8028

Special notes for your reviewer: Does anyone know if the :import and :importddi API calls are intended to allow import of DOIs that don't have the right authority/shoulder to be managed by the Dataverse instance? If not, this PR could be simplified to just check, using credentials, whether the PID exists.

Suggestions on how to test this: Should be able to repeat the migrate tests with a test DOI now

Does this PR introduce a user interface change? If mockups are available, please link/include them here: no

Is there a release notes update needed for this change?: no

Additional documentation:none

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 19.126% when pulling 173fc83 on GlobalDataverseCommunityConsortium:IQSS/8028-enable_import_with_test_DOIs into 1c3dbe8 on IQSS:develop.

@landreev
Copy link
Contributor

Does anyone know if the :import and :importddi API calls are intended to allow import of DOIs that don't have the right authority/shoulder to be managed by the Dataverse instance?

I'm not sure what the original design rationale was. But having thought about it - this sounds like a legitimate use case/scenario. Maybe when somebody needs to be able to import datasets that are under their legacy authority? Or to absorb datasets from another installation (the "how do I merge two Dataverse installations" question we occasionally get).

So this was most likely the reason for that GET attempt in the original code, instead of .alreadyExists(). We could ask - but I'm inclined to just approve the PR as is.

IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Review 🦁 to QA 🔎✅ Jul 29, 2021
Copy link
Contributor

@landreev landreev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving.

@kcondon kcondon self-assigned this Jul 30, 2021
@kcondon kcondon removed their assignment Aug 6, 2021
@pdurbin pdurbin changed the title IQSS/8028 enable import with test do is IQSS/8028 enable import with test dois Aug 9, 2021
@kcondon kcondon self-assigned this Aug 11, 2021
@kcondon kcondon merged commit 72c26e3 into IQSS:develop Aug 11, 2021
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from QA 🔎✅ to Done 🚀 Aug 11, 2021
@djbrooke djbrooke added this to the 5.7 milestone Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Import APIs don't work with DataCite test DOIs
5 participants