Skip to content

Migrate jQuery-based Protected Tag Dropdown to Vue

What does this MR do and why?

Migrate deprecated usage of jQuery-based AccessDropdown on Protected Tags:

  • app/assets/javascripts/protected_tags/protected_tag_create.js
  • app/assets/javascripts/protected_tags/protected_tag_edit.js

Screenshots or screen recordings

Without EE License

Before After
image image
image image

With EE License (/w Search)

Before After
image image
image image

How to set up and validate locally

Protected Tags

  1. Open a project and go to Settings > Repository > Protected Tags
  2. protected_tag_create is the default dropdown used for protecting tags.
  3. protected_tag_edit is the dropdown used in the list of already protected tags (edit).

The EE variant should have a search input inside the dropdown content.

Protected Environment

Since we indirectly modify components that is shared by add_approvers.vue, we must also test for its behavior.

  1. Go to Settings > CI/CD > Protected Environment
  2. Add a new protected environment.
  3. The "Approver" section should be the one tested for any behavior change/issues.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #284787 (closed)

Edited by Shane Maglangit

Merge request reports