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.
This pull request introduces several significant changes to the
dataverse_hub
project, including the addition of new DTO classes, modifications to theInstallationController
, and updates to theInstallation
andInstallationMetrics
models. These changes aim to improve the handling and representation of installation metrics and enhance the API's functionality.Key Changes:
DTO Classes:
InstallationDTO
andMetricsByInstallationDTO
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:
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:
Installation
model to include a list ofInstallationMetrics
, enabling better data association and retrieval. (src/main/java/edu/harvard/iq/dataverse_hub/model/Installation.java
- [1] [2]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:
InstallationRepo
to fetch installation metrics by month, supporting the new filtering capabilities. (src/main/java/edu/harvard/iq/dataverse_hub/repository/InstallationRepo.java
- src/main/java/edu/harvard/iq/dataverse_hub/repository/InstallationRepo.javaR41-R71)Sample Data:
APIPayloadSamples
. (src/main/java/edu/harvard/iq/dataverse_hub/beans/APIPayloadSamples.java
- src/main/java/edu/harvard/iq/dataverse_hub/beans/APIPayloadSamples.javaR126-R163)