Add "Closed Issues" to Issue Analytics chart
What does this MR do and why?
As the last MR to solve #233905 (closed), this MR does the following:
- Adds "Issues Closed" to the Issue Analytics chart.
- Creates a new total_issues_analytics_chartcomponent similar to the original chart (issues_analytics_chart) except that it uses a stacked column chart to better accommodate both opened and closed issue counts per month (and later total opened issues at end of month in the secondary y-axis line). It also uses Apollo instead of Vuex.
- Renders total_issues_analytics_chartif user is a GitLab Ultimate customer and theissues_completed_analytics_feature_flagfeature flag is enabled, otherwise displaysissues_analytics_chart(which does not include "Issues closed")
- Creates a query builder to generate queries for each month within a given date range for issueCountandissuesCompleted.
- Removes the !=operator from the filtered search dropdowns since it isn't currently supported by either theissueCountorissuesCompletedGraphQL queries.
| Task | Status | 
|---|---|
| Add issues_completed_analyticsGitLab Ultimate feature andissues_completed_analytics_feature_flagfeature flag ( !128399 (merged)) | |
| Refactor issues_analytics.vue | |
| Create new chart with "Issues closed" | 
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
| Description | Screenshot | 
|---|---|
| Default |  | 
| Loading* |  | 
| Error |  | 
| No data empty state |  | 
| Empty state for no data with filters applied |  | 
*Loading screen to be updated in #422575 (closed)
How to set up and validate locally
- Make sure you have a GitLab Ultimate license
- Feature.enable(:issues_completed_analytics_feature_flag)
- Go to a group/project with issues, and visit http://{LOCAL_INSTANCE}/groups/{GROUP_PATH}/-/issues_analyticsorhttp://{LOCAL_INSTANCE}/{GROUP_PATH}/{PROJECT_PATH}/-/analytics/issues_analytics
- Verify that the new chart appears and that the filters work correctly (for more info, visit https://docs.gitlab.com/ee/user/analytics/issue_analytics.html)
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 #233905 (closed)
Edited  by Rudy Crespo