Refactored Issue Analytics counts query builder
What does this MR do and why?
Upon attempting to add newly supported filters to Enhanced Issue Analytics, the chart refused to load with the default 12 month date range due to a Query too large
error (for more details, see #424268 (comment 1619156321)). As the first of two MRs to address #424268 (closed), this MR tries to solve that issue by refactoring the query builder used by the chart to make it more dynamic then splitting the queries for Issues opened
and Issues created
into two separate queries.
Task | Status |
---|---|
Refactor Issue Analytics counts query builder | |
Add missing filters to Enhanced Issue Analytics ( !135160 (merged)) | workflowin review |
Known Issues
-
iteration
filter is currently not working; to be fixed in #419743 (closed) - Wildcard values for
milestone
andassignee
filters currently not working; to be fixed in #428478 (closed)
Screenshots or screen recordings
No visual changes.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Make sure you have a GitLab Ultimate license
Feature.enable(:issues_completed_analytics_feature_flag)
- Go to a group/project with issues:
http://{LOCAL_INSTANCE}/groups/{GROUP_PATH}/-/issues_analytics
orhttp://{LOCAL_INSTANCE}/{GROUP_PATH}/{PROJECT_PATH}/-/analytics/issues_analytics
- Verify that the chart loads and is working correctly.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #424268 (closed)
Edited by Rudy Crespo