Add Product Analytics tab to conditionally render in CE
What does this MR do and why?
- This implements #440194 (closed)
- This piece is under
usage_quotas_for_all_editions
Feature Flag. - Follow these instructions to setup Product Analytics in GDK.
Now that we finished with #440195 (closed) we're now able to migrate the remaining tabs. The migration here is simpler because we just need to conditionally render this tab.
- This MR is pretty much doing the same thing as !145006 (merged) but for the
Product Analytics
Tab - There's one change extra change, in
ee/app/assets/javascripts/pages/groups/usage_quotas/index.js
, that is related to this thread #423851 (comment 1799737111)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
There should be no UI changes between this branch and master
When Product Analytics is Disabled | When it's enabled and DevKit is off | When it's enabled and DevKit is on |
---|---|---|
How to set up and validate locally
- Follow these instructions to setup Product Analytics in GDK.
- Go to the
group
you enabled Product Analytics and visit its Usage Quotas page:https://gdk.test:3443/groups/<group-id>/-/usage_quotas#product-analytics-usage-quota-tab
- Make sure it behaves as expected:
Expected behavior:
GitLab Distribution | Expected behavior FF off | Expected behavior FF on |
---|---|---|
GitLab EE Unlicensed | Renders a 404 page |
Renders the Product Analytics tab alongside the others |
GitLab EE | Loads the page normally | Renders the Product Analytics tab alongside the others |
GitLab SaaS | Page loads normally | Renders the Product Analytics tab alongside the others |
GitLab CE | Renders a 404 page |
Renders only the storage tab |
Edited by Sheldon Led