Update menu item for analytics dashboards and update license checks
What does this MR do and why?
This MR continues the process of moving the product analytics dashboards across from /-/product_analytics/dashboards
to /-/analytics/dashboards
. There are several MRs which progressively move parts over to make it easier to review:
MR/Issue | Purpose | Status |
---|---|---|
Add new analytics dashboards listing route and ... (!112321 - merged) | Create new route and view | Merged |
Create new analytics dashboards app (!112196 - merged) | Move basic structure | Merged |
Add product analytics specific dashboards to sh... (!112298 - merged) | Move product analytics specific dashboards and visualizations | Merged |
Move the visualization designer and rename from... (!113538 - merged) | Move visualization designer and rename from panel designer | Merged |
Update menu item for analytics dashboards and u... (!114235 - merged) | Update menu item to point to the shared dashboards listing |
|
Present call-to-actions to configure dashboards... (#388629 - closed) | Add new onboarding flow for product analytics dashboards in the list | Scheduled |
Remove product analytics specific dashboard lis... (#390551 - closed) | Remove old product analytics dashboards code | Scheduled |
This MR specifically:
- Updates the existing menu item that is currently pointing to
[PROJECT]/-/product_analytics/dashboards
and points it to the new shared analytics dashboards listing at[PROJECT]/-/analytics/dashboards
. - Adds licensing checks to the menu item and controller to make sure that we are applying the correct permissions to this new shared listing.
Screenshots or screen recordings
How to set up and validate locally
- Check that the left-hand menu does not show the menu item
- Try visiting the dashboards listing and confirm that it
404
's e.g.http://gdk.test:3000/gitlab-org/gitlab-test/-/analytics/dashboards
- Enable the feature flag:
echo "Feature.enable(:combined_analytcs_dashboards)" | rails c
- Make sure you are using an EE licence
- Check the left-hand menu to see if the menu item is shown
- Check that clicking on the menu item opens the dashboards listing, and it doesn't
404
If you want to test the existence of product analytics specific dashboards on this listing you will need to:
- Make sure you are using an GitLab Ultimate licence
- Follow the instructions at https://gitlab.com/gitlab-org/gitlab/-/snippets/2474959 to enable product analytics on your GDK
- Try visiting the dashboards listing and confirm that it renders the product analytics built-in dashboards e.g.
http://gdk.test:3000/gitlab-org/gitlab-test/-/analytics/dashboards
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 #388557 (closed)
Edited by Robert Hunt