Add frontend alert for webhook disabled alert
requested to merge 363027-add-alert-for-disabled-webhooks-to-all-project-pages into 362662-user-callout
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 |
---|---|
How to set up and validate locally
- Enable the feature flag
webhooks_failed_callout
. - Go to any project page, for example
http://127.0.0.1:3000/gitlab-org/gitlab-shell
. - 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #363027 (closed)