Repository navigation
fixes for get api including MDC metrics - #12741
Open
stevenwinship wants to merge 16 commits into
Open
stevenwinship wants to merge 16 commits into
stevenwinship wants to merge 16 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
3 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
stevenwinship
force-pushed
the
491-fix-mdc-api-for-modern-ui
branch
from
September 25, 2026 15:40
1b90af6 to
76ef0a0
Compare
This comment has been minimized.
This comment has been minimized.
ChengShi-1
reviewed
Sep 28, 2026
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ChengShi-1
requested changes
Oct 6, 2026
ChengShi-1
left a comment
Contributor
There was a problem hiding this comment.
Thanks for fixing the counting issues. After another look, I have two additional comments below.
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ChengShi-1
approved these changes
Oct 9, 2026
ChengShi-1
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the fix. Looks good
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
📦 Pushed preview images as 🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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: