Closed ANIALLATOR114 closed 2 months ago
This pull request introduces a new Statistics API. The main changes include the addition of methods in the repository to fetch statistics, the creation of a new controller to handle statistics-related endpoints, and the addition of integration tests for these endpoints. Workflow files were also updated to populate statistics data before running tests.
Files | Changes |
---|---|
.github/workflows/tests_on_merge_main.yaml .github/workflows/tests_on_pr.yaml |
Added steps to populate statistics data before running tests in both workflows. |
Summary by Sourcery
This pull request introduces a new Statistics API, including endpoints to fetch the most recent statistics and statistics for a specific date. It also enhances the
DatabaseStatisticRepository
with new methods and updates CI workflows to populate statistics data before running tests. Integration tests for the new API endpoints are also included.StatisticsController
to handle statistics-related API requests.max_created_subquery
function to generate subqueries for fetching the maximum created_at value for each key in theDatabaseStatisticModel
table.DatabaseStatisticRepository
with methods to fetch the most recent statistics by key and statistics by key and date.