Add shared dashboard listing to the group level
Problem to solve
With Replace product analytics dashboard listing wit... (#388557 - closed) projects will have a shared dashboard listing but it will not exist for groups.
Final solution
We need to add the shared dashboard listing to the group-level.
Implementation plan
Behind the group_analytics_dashboards feature flag
- Create a new HAML file in
ee/app/views/groups/analyticsto add the Vue anchor point#js-analytics-dashboards-list-appcopying the data fromee/app/views/projects/analytics/dashboards/index.html.haml. - Update
ee/app/assets/javascripts/analytics/analytics_dashboards/components/dashboards_list.vueto retrieve dashboards from the group-level rather than project-level.- TODO: Figure out more detailed steps and backend changes
- Update unit tests at
ee/spec/frontend/analytics/dashboards. - Moved to #417771 (closed)
Copy feature spec fromee/spec/features/projects/analytics/dashboards_spec.rband put it atee/spec/features/groups/analytics/dashboards_spec.rband update to check the group-level dashboardOpportunity to DRY this and move shared logic to shared examples
Edited by Alex Pennells