Skip to content

Add ability to toggle public visibility of metric dashboard

Problem to solve

We currently only allow roles with developer and up to view metric dashboards of gitlab projects. We need to add the ability to toggle public visibility so that as we start dogfooding our dashboards (moving away from grafana), we can still allow the public to see them (which is how we have it setup in grafana)

Intended users

Further details

Easiest MVC would be to add a configuration in settings to enable/disable public visibility of all metric dashboards (without needing to be a member of the project)

Proposal

Add a new Metrics Dashboard section to the Visibility settings page for gitlab projects (found in Settings => General) as seen in the mockup below:

Screen_Shot_2020-04-09_at_12.09.45_PM

Options in the dropdown will include:

  • Everyone With Access
  • Only Project Members (Default)

How permissions will work:

  • Only Project Members will scope access to how it works today
  • Everyone With Access will scope access to the Project visibility setting
    • If Public, then anyone can view the metrics dashboard (without authentication)
    • If Internal, then users will have to login to gitlab to view the metrics dashboard
    • If Private, then it will default to how it works today (we will want to improve this UX in the future)

Permissions and Security

Documentation

Availability & Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Links / references

Edited by Clement Ho