Skip to content

Conversation

@qqmyers
Copy link
Member

@qqmyers qqmyers commented Aug 23, 2024

What this PR does / why we need it: This PR extends #10786, removing use of other commands within this one to avoid the possibility of partial updates (as was seen prior to both PRs when DataCite was down or when terms (and not metadata) were changed.

Which issue(s) this PR closes:

Closes #

Special notes for your reviewer: Have yet to see the updated IT test run (here or in #10786)

FWIW: In removing the em.merges after adding the initial merge of the dataset, I used the em.contains() test to verify that the initial merge of the dataset also merged the versions, etc. - not sure I was aware of that call before this, but I think it might be useful in deciding if merges are really needed (as it looks like merging a version gets expensive with many files).

Suggestions on how to test this:

Update a terms field (e.g. terms of use (with no license/custom terms), save, and then, as superuser hit the publish/update-current-version option. It should work now.

Similarly, I think you can misconfigure DataCite to simulate a failure of their service, try any update and publish/update-current-version. The command should succeed and there should be a warning line in the log.

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

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

Additional documentation:

@qqmyers qqmyers added the Size: 10 A percentage of a sprint. 7 hours. label Aug 26, 2024
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.

Special thanks for adding an extended test.

@cmbz cmbz added FY25 Sprint 4 FY25 Sprint 4 FY25 Sprint 5 FY25 sprint 5 labels Aug 28, 2024
@scolapasta scolapasta self-assigned this Aug 29, 2024
@scolapasta scolapasta merged commit 025b55d into IQSS:develop Aug 29, 2024
@pdurbin pdurbin added this to the 6.4 milestone Sep 3, 2024
@pdurbin pdurbin changed the title Alternate Fix for Curate command failures Fix "Update Current Version" to prevent data loss Sep 3, 2024
@pdurbin pdurbin changed the title Fix "Update Current Version" to prevent data loss Fix "Update Current Version" to prevent metadata loss Sep 10, 2024
ghost pushed a commit to DataverseNO/dataverse that referenced this pull request Sep 12, 2024
@pdurbin
Copy link
Member

pdurbin commented Sep 26, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY25 Sprint 4 FY25 Sprint 4 FY25 Sprint 5 FY25 sprint 5 Size: 10 A percentage of a sprint. 7 hours.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants