Skip to content

EditDDI API empty frequency bug#11378

Merged
ofahimIQSS merged 5 commits intoIQSS:developfrom
lubitchv:11377-empty-frequency
Apr 22, 2025
Merged

EditDDI API empty frequency bug#11378
ofahimIQSS merged 5 commits intoIQSS:developfrom
lubitchv:11377-empty-frequency

Conversation

@lubitchv
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
In EditDDI api when frequency is declared in input xml file but missing the api returns 200 code, but this breaks DDI exporter since frequency is declared but missing (null).
For that case in this PR EditDDI api returns 400 code of bad request of bad xml file. Integration test for that case was updated.

Which issue(s) this PR closes:

Special notes for your reviewer:

Suggestions on how to test this:
Upload spss or STATA file with categories. Download Variable Metadata xml for that file. Edit xml by removing frequency number (empty frequency). Use curl -H "X-Dataverse-key:$API_TOKEN" -X PUT "$SERVER_URL/api/edit/$ID" --upload-file $FILE to update the var metedata, where $ID is file id and $File is updated xml. One should get 400 error.

@coveralls
Copy link
Copy Markdown

coveralls commented Mar 27, 2025

Coverage Status

coverage: 23.08% (-0.001%) from 23.081%
when pulling 10d8950 on lubitchv:11377-empty-frequency
into e119cbb on IQSS:develop.

@pdurbin pdurbin moved this to Ready for Triage in IQSS Dataverse Project Mar 27, 2025
Comment thread src/main/java/edu/harvard/iq/dataverse/api/EditDDI.java Outdated
@ofahimIQSS ofahimIQSS added the Size: 3 A percentage of a sprint. 2.1 hours. label Apr 1, 2025
@ofahimIQSS ofahimIQSS moved this from Ready for Triage to Ready for Review ⏩ in IQSS Dataverse Project Apr 1, 2025
@cmbz cmbz added the FY25 Sprint 20 FY25 Sprint 20 (2025-03-26 - 2025-04-09) label Apr 2, 2025
@cmbz cmbz added the FY25 Sprint 21 FY25 Sprint 21 (2025-04-09 - 2025-04-23) label Apr 9, 2025
@sekmiller sekmiller self-assigned this Apr 17, 2025
@sekmiller sekmiller moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Apr 17, 2025
Copy link
Copy Markdown
Contributor

@sekmiller sekmiller 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 @lubitchv. Please update the branch with the latest from dev.
Thanks!

@github-project-automation github-project-automation Bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Apr 17, 2025
@lubitchv
Copy link
Copy Markdown
Contributor Author

I updated the branch from IQSS develop, no other changes. But there seems to be a problem with the test RemoteOverlayAccessIOTest.testRemoteOverlayFiles The problem is with https://data.qdr.syr.edu/resources/images/dataverse_progect_logo.svg Replacing https://data.qdr.syr.edu/resources with https://demo.dataverse.org/resources seems to solve the problem. The change was made here 3674a6f

@ofahimIQSS ofahimIQSS moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Apr 18, 2025
@ofahimIQSS ofahimIQSS self-assigned this Apr 18, 2025
@ofahimIQSS
Copy link
Copy Markdown
Contributor

looks like continuous integration is failing still

@lubitchv
Copy link
Copy Markdown
Contributor Author

@ofahimIQSS Which test is failing? Is it me or does it fail for everyone?

@qqmyers
Copy link
Copy Markdown
Member

qqmyers commented Apr 21, 2025

There was a problem in the develop branch - fixed today - if you merge with the latest the test should pass.

@ofahimIQSS
Copy link
Copy Markdown
Contributor

ofahimIQSS commented Apr 22, 2025

looks good, merging

@ofahimIQSS ofahimIQSS merged commit 6c0c3b7 into IQSS:develop Apr 22, 2025
16 checks passed
@github-project-automation github-project-automation Bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Apr 22, 2025
@ofahimIQSS ofahimIQSS removed their assignment Apr 22, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Apr 22, 2025
@pdurbin pdurbin added this to the 6.7 milestone Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY25 Sprint 20 FY25 Sprint 20 (2025-03-26 - 2025-04-09) FY25 Sprint 21 FY25 Sprint 21 (2025-04-09 - 2025-04-23) Size: 3 A percentage of a sprint. 2.1 hours.

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

EditDDI API empty frequency bug

8 participants