Skip to content
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

Open
g-saracca opened this issue Feb 11, 2025 · 1 comment
Open

Native API - Get Dataset Download Count endpoint #11244

g-saracca opened this issue Feb 11, 2025 · 1 comment
Labels
FY25 Sprint 17 FY25 Sprint 17 (2025-02-12 - 2025-02-26) GREI Re-arch Issues related to the GREI Dataverse rearchitecture Original size: 10 Size: 10 A percentage of a sprint. 7 hours. SPA.Q1.4 Dataset Page: Dataset Metrics SPA These changes are required for the Dataverse SPA Type: Feature a feature request

Comments

@g-saracca
Copy link
Contributor

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

@g-saracca g-saracca added GREI Re-arch Issues related to the GREI Dataverse rearchitecture Original size: 10 Size: 10 A percentage of a sprint. 7 hours. SPA These changes are required for the Dataverse SPA SPA.Q1.4 Dataset Page: Dataset Metrics Type: Feature a feature request labels Feb 11, 2025
@qqmyers
Copy link
Member

qqmyers commented Feb 11, 2025

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

public Long getDownloadCountByDatasetId(Long datasetId, LocalDate date) {
(for use with MDC, using the MDC start date from
public LocalDate getMDCStartDate() {
) or the convenience method a few lines up that take no date (for classic).

@GPortas GPortas moved this to SPRINT READY in IQSS Dataverse Project Feb 12, 2025
@g-saracca g-saracca moved this from SPRINT READY to This Sprint 🏃‍♀️ 🏃 in IQSS Dataverse Project Feb 12, 2025
@cmbz cmbz added the FY25 Sprint 17 FY25 Sprint 17 (2025-02-12 - 2025-02-26) label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FY25 Sprint 17 FY25 Sprint 17 (2025-02-12 - 2025-02-26) GREI Re-arch Issues related to the GREI Dataverse rearchitecture Original size: 10 Size: 10 A percentage of a sprint. 7 hours. SPA.Q1.4 Dataset Page: Dataset Metrics SPA These changes are required for the Dataverse SPA Type: Feature a feature request
Projects
Status: This Sprint 🏃‍♀️ 🏃
Development

No branches or pull requests

3 participants