Remove numbered steps from Monitor > Alerts settings

Summary

The Alerts project settings shows fields prepended with numbers.

image

The numbers are unnecessary, because:

  • You have to select the integration type to reveal other fields.
  • Optional fields are already marked as optional.

Steps to reproduce

You must have at least the Maintainer role for the project.

  1. On the left sidebar, select Search or go to and find your project.
  2. Select Settings > Monitor.
  3. Expand Alerts.
  4. Select Add new integration.
  5. From the dropdown, select any integration type. You should now see all the fields.
Unused template parts

Example Project

What is the current bug behavior?

What is the expected correct behavior?

Relevant logs and/or screenshots

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Remove the numbers.

The field names show up in https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/alerts_settings/constants.js

But the numbers are not hardcoded, and instead probably come from one of the files in https://gitlab.com/gitlab-org/gitlab/-/tree/master/app/assets/javascripts/alerts_settings

Related

!102711 (closed)

Edited by Marcin Sedlak-Jakubowski