Instance stats: fetch data points within a date range
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
As a follow up to #268000 (closed) we should update the instance usage trends charts FE requests to make use of date ranges for determining the amount of data that needs to be fetched.
Implementation guide
-
Add support for the recordedAfterandrecordedBeforevariables to https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/analytics/usage_trends/graphql/queries/usage_trends_count.query.graphql -
Remove the totalDaysToShowand use the selected date range instead
Improvements
Currently we need to calculate the number data points to fetch on the FE as well as tracking how many we have fetched, this change will allow us to simply query for all data within the specified date range.
Edited by 🤖 GitLab Bot 🤖