Frontend: Namespace and Group Usage Quota CI Minutes charts show data on the wrong month
Summary
The CI Minutes charts in profile/usage_quotas show the wrong months.
Steps to reproduce
Namespace Example
Steps
- Create a project with a
.gitlab-ci.yml
using GitLab SaaS runners - Run some pipelines
- Look at the namespace Usage Quota page
- Run a pipeline
- Go back to the namespace Usage Quota page
Expected Results
- CI/CD minutes usage and Shared Runner Duration show current month on the line graph.
- The
CI minutes usage by month
chart will have an increase for the current month for the pipeline ran - The
CI minutes usage by project
will show the new project ran for the pipeline duration in the current month
Actual Results
- Shared Runner Duration chart is off by a month showing an increment in May when the pipeline was run in June
- Both
CI/CD minutes usage
andShared runner duration
Usage by Project graphs show increments for the previous month - The current month is missing from the dropdown for
CI minutes usage by project
The same behavior happens with Group Projects
Group Usage Quota Screen
Example Project
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
Edited by James Heimbuck