Skip to content

EditDDI API empty frequency bug #11378

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

lubitchv
Copy link
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

Coverage Status

coverage: 22.726% (-0.002%) from 22.728%
when pulling 6fe64f8 on lubitchv:11377-empty-frequency
into c4f3d76 on IQSS:develop.

@pdurbin pdurbin moved this to Ready for Triage in IQSS Dataverse Project Mar 27, 2025
@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
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: Ready for Review ⏩
Development

Successfully merging this pull request may close these issues.

EditDDI API empty frequency bug
5 participants