Alert widgets shown for non-licensed instance

Summary

On GitLab EE alert widgets are visible even the instance does not have a license.

The alert widgets should only be visible with a GitLab Ultimate license.

Note: Creating/modifying alerts is not possible, though.

Steps to reproduce

  1. Create a project
  2. Setup Kubernetes
  3. Enable Prometheus
  4. Deploy applications
  5. Go to Operations > Metrics
  6. Alert widgets are visible

What is the current bug behavior?

Alert widgets are visible.

What is the expected correct behavior?

Alert widgets shouldn't be visible.

Relevant logs and/or screenshots

Alert widget

Alert widget shown on the frontend. Creating/updating alerts is not possible.

Screenshot_from_2018-11-07_18-37-06

backend prevents alerts to be created/updating and returns 404.

Screenshot_from_2018-11-07_18-39-47

Assignee Loading
Time tracking Loading