Skip to content

Comments

10168 fix api error response for getDatasetVersionArchivalStatus#10185

Merged
pdurbin merged 2 commits intodevelopfrom
10168-fix-api-response-getArchivalStatus
Dec 15, 2023
Merged

10168 fix api error response for getDatasetVersionArchivalStatus#10185
pdurbin merged 2 commits intodevelopfrom
10168-fix-api-response-getArchivalStatus

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

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.

@github-actions
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
@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

None yet

Development

Successfully merging this pull request may close these issues.

getDatasetVersionArchivalStatus API give blank response when archival copy location is null

4 participants