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

10168 fix api error response for getDatasetVersionArchivalStatus #10185

Merged
merged 2 commits into from
Dec 15, 2023

Conversation

sekmiller
Copy link
Contributor

What this PR does / why we need it: Fixes the error response to the api that calls getDatasetVersionArchivalStatus when there's no archived version. It should return an error response to let the user know that the dataset version has not been archived.

Which issue(s) this PR closes:

Closes #10168 getDatasetVersionArchivalStatus returns a blank response when there's no archived version.

Special notes for your reviewer:

Suggestions on how to test this: Call the api with a dataset version that isn't archived and verify that you get a proper error response.

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?: No

Additional documentation: None

@sekmiller sekmiller added this to Ready for Review ⏩ in IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) via automation Dec 12, 2023
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Ready for Review ⏩ to Ready for QA ⏩ Dec 12, 2023
Copy link
Member

@qqmyers qqmyers left a comment

Choose a reason for hiding this comment

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

Looks good

@coveralls
Copy link

Coverage Status

coverage: 20.173%. remained the same
when pulling daf8926 on 10168-fix-api-response-getArchivalStatus
into 1f9e10c on develop.

Copy link

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:10168-fix-api-response-getArchivalStatus
ghcr.io/gdcc/configbaker:10168-fix-api-response-getArchivalStatus

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@qqmyers qqmyers added the Size: 3 A percentage of a sprint. 2.1 hours. label Dec 12, 2023
@pdurbin
Copy link
Member

pdurbin commented Dec 13, 2023

As discussed on Slack, this PR is another example of the Jenkins tests not running:

https://jenkins.dataverse.org/job/IQSS-Dataverse-Develop-PR/view/change-requests/job/PR-10185/

Screenshot 2023-12-13 at 9 23 46 AM

So we don't know if the API tests have passed or not.

@pdurbin
Copy link
Member

pdurbin commented Dec 13, 2023

The failing test is unrelated. I opened and issue for it:

MoveIT.testMoveLinkedDataset fails intermittently #10189

@pdurbin pdurbin merged commit e958ce5 into develop Dec 15, 2023
18 of 19 checks passed
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Ready for QA ⏩ to Done 🚀 Dec 15, 2023
@pdurbin pdurbin deleted the 10168-fix-api-response-getArchivalStatus branch December 15, 2023 16:37
@pdurbin pdurbin added this to the 6.2 milestone Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: 3 A percentage of a sprint. 2.1 hours.
Projects
Status: Done 🧹
Development

Successfully merging this pull request may close these issues.

getDatasetVersionArchivalStatus API give blank response when archival copy location is null
4 participants