-
Notifications
You must be signed in to change notification settings - Fork 500
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
Native API - Get Dataset Download Count endpoint #11244
Comments
To handle both the classic case, and the need to show the counts before MDC logging started in the MDC case, you'll probably want an API call that handles a cut-off date or has a preMDC=true flag as an option. FWIW - the counts used in JSF are coming from dataverse/src/main/java/edu/harvard/iq/dataverse/GuestbookResponseServiceBean.java Line 925 in f4380ea
|
Here is a sample of the json response with an old date, a new date, and no date |
Hi @stevenwinship , the json outputs looks good! |
The returned date isn't really necessary but the date sent in will allow you to get counts before MDC was turned on. Counts from after MDC should be retrieved by a metrics api |
The date MDC was turned on is a constant from the back-end. Since MDC either is/isn't on, it seems like this one api call could send either just the count (internal), or the combo of counts (internal) prior to the cut-over, the cut-over date, and the MDC counts since. If there's a use case to get internal downloads even if MDC was turned on (not needed in the current UI), it might make sense to have an includeMDC flag of some sort, but them we'll need an API so you can discover if MDC is turned on on the back end. |
Ok I think I understand now. |
I think just a flag in this api could get work since the back end would know if MDC is on. |
includeMDC=false is the default so it isn't need but it might be useful to test with. |
Actually, since we have :DisplayMDCMetrics, there is a need for sending the internal downloads only, and the value should be for all time, ignoring the mdc logging start date. This is actually the case for Harvard Dataverse right now - MDC logging is on, but the display needs to all time total for internal download counts since the MDC is not displayed (because the log processing hasn't finished). |
The MDCStartDate will be returned only if the count was limited by that date. { |
Overview of the Feature Request
For the SPA, in order to replicate the "classic" download count, we need a new Native API endpoint that returns the Dataset download count (not makeDataCount related) as used in this dataverse repo code
What kind of user is the feature intended for?
API User
What inspired the request?
SPA Q1 Roadmap
The text was updated successfully, but these errors were encountered: