Skip to content

Move Analytics to admin panel

Magdalena Frankiewicz requested to merge move-analytics-to-admin-panel into master

What does this MR do?

This MR moves instance related Analytics section from the top bar navigation to the Admin panel, with pages

  • Admin > Analytics > DevOps Score
  • Admin > Analytics > Cohorts.

It removes Analytics icon from the top bar navigation.

It removes the toggle to make instance related analytics visible to non-admin users from Admin > Settings > Metrics and profiling > Usage statistics, as these analytics should be visible to admins only. With that, it ignores the column instance_statistics_visibility_private as the first step towards the removal of the column and removes now obsolete application setting.

This MR solves: #233833 (closed), and the follow ups #205909 (closed) and #224716 (closed), in order to give a good user experience to Admins (links leading to pages). This MR doesn't have documentation changes, which will be added in a follow up MR, to split concerns !39855 (merged).

In order to be backwards compatible, for one release we keep the old paths, but redirect them to pages under Admin menu

'-/instance_statistics/dev_ops_score', to: redirect('/admin/dev_ops_score')
'-/instance_statistics/cohorts', to: redirect('/admin/cohorts')
'/instance_statistics', to: redirect('/admin/dev_ops_score')
'/analytics', to: redirect('/admin/dev_ops_score')

The quite substantial number of files changed results from many deletions and file movements, the additions are not that many.

Screenshots

Screen_Shot_2020-08-19_at_11.29.47_AM

Screen_Shot_2020-08-19_at_11.30.05_AM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Magdalena Frankiewicz

Merge request reports