Edit deploy keys of a protected branch in a drawer
What does this MR do and why?
- adds a list selector for deploy keys inside the Allowed to push and merge drawer
- allows editing of deploy keys in Allowed to push and merge branch protection
- unifies deploy_key_item.vue component with other item components in that directory
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
Screen_Recording_2024-09-02_at_13.04.37 |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
-
In rails console enable the experiment fully
Feature.enable(:edit_branch_rules)
-
Make sure you have a deploy key with read-write permission for that project: https://docs.gitlab.com/ee/user/project/deploy_keys/#create-a-project-deploy-key
-
Go to Project / Settings / Repository / Protected branches and set the deploy key in Allowed to push and merge dropdown.
-
Scroll up to Project / Settings / Repository / Branch rules and click View details for a branch you protected with the key
-
When on Branch rule details page, make sure you can see your deploy key in the Allowed to push and merge section
-
In Allowed to push and merge section click Edit and change any settings
-
Search for a key, select one from dropdown and save the drawer.
-
In Allowed to push and merge section click Edit and change any settings
-
Delete the key you chose before and save the drawer.
Related to #474084 (closed)