Enable auto-disabling failed hooks feature for Group Webhooks
What does this MR do and why?
This change applies the auto-disabling of failed webhooks feature to group hooks.
How to set up and validate locally
- Enable the auto-disabling webhook feature
Feature.enable(:auto_disabling_web_hooks)
- Create a group webhook:
- Choose a group, go Settings > Webhooks.
- For URL enter
https://httpstat.us/500
which will return a500
error response. - For Trigger, select Issues events.
- Click Add webhook.
- Go Issues > List and choose and issue.
- Close, reopen, close, reopen, close and reopen the issue to generate lots of webhook triggers.
- View the group webhook again Settings > Webhooks scroll down to your hook and click Edit. You should see the below banner:
- Close, reopen, close etc. the issue and it should not generate any further Recent events for the webhook until it reenables.
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 #385902 (closed)
Edited by Luke Duncalfe