[go: up one dir, main page]

[Webhooks] Migrate Trigger section to Vue

What does this MR do and why?

Where: in the webhooks settings for groups and projects

  • Moves the Trigger section to new webhook_form_trigger_list.vue
  • Adds the trigger_list to webhook_form_app
  • Put push events directly in the form instead of letting it have its own webhook.js
  • Also migrates triggers that rely on certain conditions:
    • Is the group hooks form
    • is enterprise only (i.e. vulnerability events)
  • Updates a variety of tests because of these changes

Minimal user-facing changes. Some text is changed following the figma file.

Also, I've moved the group triggers (project, subgroups, members) to the bottom of the form with vulnerability events. Because those four are EE-only.

What is NOT covered by this MR

  • custom webhook template and ssl verificaton . Will be addressed in the broader issue #513631
  • Bug: After the user edits an existing hook, they aren't redirected to the list of hooks. You can see this behavior on staging / master.
  • Deleting the no longer necessary haml files can go in a follow up MR

References

Screenshots or screen recordings

Before After
Project hook Project hook
Screenshot 2025-11-07 at 7.04.36 PM.png Screenshot 2025-11-07 at 8.19.34 PM.png
Group Hook Group Hook
Screenshot 2025-11-07 at 7.06.56 PM.png Screenshot 2025-11-07 at 8.18.39 PM.png

How to set up and validate locally

  1. For group webhooks, you'd need to have a premium or ultimate license.
  2. Choose a top level group . Click settings -> webhooks -> Add a webhook.
    1. Attempt to change the triggers (fill out the form) and save
    2. Attempt to edit existing hook you just created. Note the bug #579392 (closed)
  3. For project webhooks. Go to a group settings page -> webhooks -> Add a webhook
    1. Repeat above steps

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #578783 (closed)

Edited by Oiza Baiye

Merge request reports

Loading