Skip to content

DDI Export Cleanup - #12642

Merged
pdurbin merged 6 commits into
IQSS:developfrom
GlobalDataverseCommunityConsortium:DDIExportCleanup2
Aug 27, 2026
Merged

pdurbin merged 6 commits into
IQSS:developfrom
GlobalDataverseCommunityConsortium:DDIExportCleanup2

Conversation

@qqmyers

@qqmyers qqmyers commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

What this PR does / why we need it: The DDI Export API was making unnecessary db calls (to find filemetadata entries that are already associated with the loaded datafile object). This PR refactors to remove those calls and remove some unused methods (from ~2014) related to exporting for Datasets or individual variables. It also standardized error reporting - sending 403 instead of 400 when users don't have permission to view the file.

Which issue(s) this PR closes:

  • Closes #

Special notes for your reviewer: Also updates a deprecated new Long() call that my IDE flagged and removes a redundant Content-disposition header.

Suggestions on how to test this: Regression test the datafile/{fileId}/metadata/ddi and /api/access/datafile/bundle/$id apis with just a file id and with either a null filemetadata - api (should get the latest published or draft result depending on user perms) or a supplied filemetadata id (should again be limited to a version you can access).

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

Additional documentation:

@qqmyers qqmyers added the Size: 10 A percentage of a sprint. 7 hours. label Aug 24, 2026
@qqmyers qqmyers moved this to Ready for Triage in IQSS Dataverse Project Aug 24, 2026
@qqmyers qqmyers added this to the 6.12 milestone Aug 24, 2026
@pdurbin pdurbin moved this from Ready for Triage to Ready for Review ⏩ in IQSS Dataverse Project Aug 24, 2026
@pdurbin pdurbin self-assigned this Aug 25, 2026
@pdurbin pdurbin moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Aug 25, 2026
@qqmyers

qqmyers commented Aug 25, 2026

Copy link
Copy Markdown
Member Author

This test fail is gdcc/dataverse-jsf-tests#1 - not related to the PR.

@qqmyers qqmyers removed their assignment Aug 25, 2026
@qqmyers

qqmyers commented Aug 25, 2026

Copy link
Copy Markdown
Member Author

And it passed the next time.

@pdurbin pdurbin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We went over this during tech hours this morning. The changes make sense. Tests are passing. Approved.

@github-project-automation github-project-automation Bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Aug 25, 2026
@pdurbin pdurbin removed their assignment Aug 25, 2026
@pdurbin pdurbin moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Aug 25, 2026
@pdurbin pdurbin self-assigned this Aug 25, 2026
@cmbz cmbz added FY27 Sprint 4 FY27 Sprint 4 (2026-08-12 - 2026-08-26) FY27 Sprint 5 FY27 Sprint 5 (2026-08-26 - 2026-09-09) labels Aug 26, 2026
@pdurbin
pdurbin merged commit 2516bca into IQSS:develop Aug 27, 2026
18 checks passed
@github-project-automation github-project-automation Bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Aug 27, 2026
@pdurbin
pdurbin deleted the DDIExportCleanup2 branch August 27, 2026 15:34
@pdurbin pdurbin removed their assignment Aug 27, 2026
@qqmyers
qqmyers restored the DDIExportCleanup2 branch August 28, 2026 21:13
@jp-tosca jp-tosca moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY27 Sprint 4 FY27 Sprint 4 (2026-08-12 - 2026-08-26) FY27 Sprint 5 FY27 Sprint 5 (2026-08-26 - 2026-09-09) Size: 10 A percentage of a sprint. 7 hours.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants