Skip to content

fixes for get api including MDC metrics - #12741

Open
stevenwinship wants to merge 16 commits into
developfrom
491-fix-mdc-api-for-modern-ui
Open

stevenwinship wants to merge 16 commits into
developfrom
491-fix-mdc-api-for-modern-ui

Conversation

@stevenwinship

@stevenwinship stevenwinship commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:Modern UI is always getting the old metrics regardless of the DisplayMDCMetrics setting. JSF UI displays based on the setting. The response to /api/datasets/{id}/download/count?includeMDC=true or false should return the requested metrics where not including the parameter 'includeMDC' should base the output on the setting.

Which issue(s) this PR closes: IQSS/dataverse.harvard.edu#491

Special notes for your reviewer:The old code was showing MDC date when includeMDC was false. The Json response still contains the 'downloadCount' so there is no break in backward compatibility.

Suggestions on how to test this: Test with multiple variations of settings and api parameter. Downloading will increment the old metrics but not MDC. MDC needs the logs to be loaded. PSQL inserts to 'datasetmetrics' for MDC.

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

Additional documentation:

@stevenwinship stevenwinship self-assigned this Sep 23, 2026
@stevenwinship stevenwinship moved this to In Progress 💻 in IQSS Dataverse Project Sep 23, 2026
@stevenwinship stevenwinship added FY26 Sprint 7 FY26 Sprint 7 (2025-09-24 - 2025-10-08) FY27 Sprint 7 FY27 Sprint 7 (2026-09-23 - 2026-10-07) Size: 10 A percentage of a sprint. 7 hours. and removed FY26 Sprint 7 FY26 Sprint 7 (2025-09-24 - 2025-10-08) labels Sep 23, 2026
@coveralls

coveralls commented Sep 23, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 25.665% (-0.002%) from 25.667% — 491-fix-mdc-api-for-modern-ui into develop

@stevenwinship stevenwinship added this to the 6.13 milestone Sep 23, 2026
@stevenwinship stevenwinship added the GREI 4 Analytics and Reporting label Sep 23, 2026
@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Test Results

417 tests  ±0   403 ✅ ±0   29m 35s ⏱️ +10s
 59 suites ±0    14 💤 ±0 
 59 files   ±0     0 ❌ ±0 

Results for commit 3684032. ± Comparison against base commit 19fdcb2.

♻️ This comment has been updated with latest results.

@github-actions

This comment has been minimized.

3 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@stevenwinship stevenwinship removed their assignment Sep 25, 2026
@stevenwinship
stevenwinship force-pushed the 491-fix-mdc-api-for-modern-ui branch from 1b90af6 to 76ef0a0 Compare September 25, 2026 15:40
@ChengShi-1 ChengShi-1 self-assigned this Sep 25, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@stevenwinship stevenwinship removed their assignment Oct 2, 2026
@github-actions

This comment has been minimized.

@ChengShi-1 ChengShi-1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for fixing the counting issues. After another look, I have two additional comments below.

@cmbz cmbz added the FY27 Sprint 8 FY27 Sprint 8 (2026-10-07 - 2026-10-21) label Oct 7, 2026
@ChengShi-1 ChengShi-1 added the SPA These changes are required for the Dataverse SPA label Oct 8, 2026
@stevenwinship stevenwinship removed their assignment Oct 8, 2026
@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@ChengShi-1 ChengShi-1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the fix. Looks good

@github-project-automation github-project-automation Bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Oct 9, 2026
@ChengShi-1 ChengShi-1 removed their assignment Oct 9, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
2.6% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@github-actions

Copy link
Copy Markdown

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:491-fix-mdc-api-for-modern-ui
ghcr.io/gdcc/configbaker:491-fix-mdc-api-for-modern-ui

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY27 Sprint 7 FY27 Sprint 7 (2026-09-23 - 2026-10-07) FY27 Sprint 8 FY27 Sprint 8 (2026-10-07 - 2026-10-21) GREI 4 Analytics and Reporting Size: 10 A percentage of a sprint. 7 hours. SPA These changes are required for the Dataverse SPA

Projects

Status: Ready for QA ⏩

Development

Successfully merging this pull request may close these issues.

4 participants