Skip to content

Add frontend alert for webhook disabled alert

What does this MR do and why?

Adds an alert when there is at least 1 webhook that is disabled due to failures. This is shown to project maintainers on every project page (thus added to layouts/project.

Changelog not needed as this is behind the feature flag webhooks_failed_callout.

Screenshots or screen recordings

Project page without web hook disabled alert Project page with web hook disabled alert
Project_page_without_web_hook_disabled_alert Project_page_with_web_hook_disabled_alert

How to set up and validate locally

  1. Enable the feature flag webhooks_failed_callout.
  2. Go to any project page, for example http://127.0.0.1:3000/gitlab-org/gitlab-shell.
  3. If you dismiss the alert and want to view it again, open a Rails console with bin/rails console and run this:
Users::Callout.destroy_all

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #363027 (closed)

Merge request reports