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 includes several changes to the
dataverse_hub
project, primarily focusing on enhancing the installation metrics functionality and adding new features. The most important changes include the addition of date filtering for installation metrics, improved logging, and the introduction of a new controller for redirects.Enhancements to installation metrics:
src/main/java/edu/harvard/iq/dataverse_hub/controller/api/InstallationController.java
: Added logging ofinstallationFilterParams
and the current date and time in thegetMonthlyInstallationsMetrics
method.src/main/java/edu/harvard/iq/dataverse_hub/controller/api/request/InstallationFilterParamsMonthly.java
: IntroducedfromDate
andtoDate
parameters to filter installation metrics by date. Updated getters, setters, andtoString
method accordingly. [1] [2] [3]src/main/java/edu/harvard/iq/dataverse_hub/model/InstallationMetrics.java
: ChangedrecordDate
type fromDate
toLocalDateTime
and updated related methods. [1] [2]src/main/java/edu/harvard/iq/dataverse_hub/repository/InstallationsMetricsRepo.java
: Added date filtering in thefindMonthly
method and ordered results bydvHubId
andrecordDate
.Improved logging and error handling:
src/main/java/edu/harvard/iq/dataverse_hub/controller/scheduled/InstallationMetricsImporter.java
: Added logging for empty installation lists and updated error handling to log transaction status. [1] [2]src/main/java/edu/harvard/iq/dataverse_hub/controller/scheduled/InstallationMetricsMonthlyImporter.java
: Similar changes as above for the monthly importer. [1] [2]New features:
src/main/java/edu/harvard/iq/dataverse_hub/controller/redirects/RedirectsController.java
: Added a new controller to handle redirects to the OpenAPI documentation.src/main/java/edu/harvard/iq/dataverse_hub/security/SecurityConfig.java
: Updated security configuration to permit access to the root URL.