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

Metrics endpoint refactor #18

Merged
merged 4 commits into from
Jan 17, 2025
Merged

Metrics endpoint refactor #18

merged 4 commits into from
Jan 17, 2025

Conversation

jp-tosca
Copy link
Collaborator

This pull request introduces several significant changes to the dataverse_hub project, including the addition of new DTO classes, modifications to the InstallationController, and updates to the Installation and InstallationMetrics models. These changes aim to improve the handling and representation of installation metrics and enhance the API's functionality.

Key Changes:

DTO Classes:

  • Added InstallationDTO and MetricsByInstallationDTO classes to represent installation data and metrics in a more structured manner. (src/main/java/edu/harvard/iq/dataverse_hub/model/DTO/InstallationDTO.java - [1] src/main/java/edu/harvard/iq/dataverse_hub/model/DTO/MetricsByInstallationDTO.java - [2]

Controller Updates:

  • Modified the InstallationController to use the new DTO classes for returning installation data and metrics, improving the API's response structure. (src/main/java/edu/harvard/iq/dataverse_hub/controller/api/InstallationController.java - [1] [2]

Model Enhancements:

  • Updated the Installation model to include a list of InstallationMetrics, enabling better data association and retrieval. (src/main/java/edu/harvard/iq/dataverse_hub/model/Installation.java - [1] [2]
  • Added back-references in the InstallationMetrics model to link metrics back to their respective installations. (src/main/java/edu/harvard/iq/dataverse_hub/model/InstallationMetrics.java - src/main/java/edu/harvard/iq/dataverse_hub/model/InstallationMetrics.javaR34)

Repository Changes:

Sample Data:

@jp-tosca jp-tosca self-assigned this Jan 17, 2025
@jp-tosca jp-tosca added Size: 30 FY25 Sprint 15 FY25 Sprint 15 (2025-01-15 - 2025-01-29) DV-Hub Dataverse Metrics Hub labels Jan 17, 2025
@jp-tosca jp-tosca merged commit 3a86875 into main Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DV-Hub Dataverse Metrics Hub FY25 Sprint 15 FY25 Sprint 15 (2025-01-15 - 2025-01-29) Size: 30
Projects
Status: Merged 🚀
Development

Successfully merging this pull request may close these issues.

1 participant