Add frontend for working with URL variables
What does this MR do and why?
This feature is behind the feature flag webhook_form_mask_url
.
- Properly mask the URL (as shown in the URL preview field) using simple logic (might need to be improved later on).
- Add input handling to the mask item (bubbles up event to parent) and removing an item.
- Add backend data for initial values to be populated (for when a user is editing a webhook).
MR | Status |
---|---|
Add basic UI for UI masking of webhook URL (!99995 - merged) |
|
Add frontend for working with URL variables (!100817 - merged) |
|
Add frontend validations and handle editing of masked items |
|
Screenshots or screen recordings
How to set up and validate locally
- Enable the feature flag.
- Go to Project > Settings > Webhooks. For example,
http://127.0.0.1:3000/gitlab-org/gitlab-shell/-/hooks
. - Use any URL as the webhook URL. For example,
https://gitlab.com/dashboard/todos
. - Select
Mask portions of the URL
and add values. For example,gitlab.com
->domain
,dashboard/todos
->path
.
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 #361125 (closed)
Edited by Justin Ho Tuan Duong