Skip to content

Draft: Refactor jQuery dropdown implementation to GitLab UI GlDropdown

What does this MR do and why?

Describe in detail what your merge request does and why.

This MR resolved #284787 (closed)

This MR replaces legacy JQuery dropdown for pajamas GlDropdown implementation. Similar to #284784 (closed)

But this dropdown is simpler implementation. It renders only the list of roles. Only one role can be selected at the same time. As current values are mutually exclusive.

Screenshots or screen recordings

after
Screenshot_2022-04-08_at_00.10.30
-----
Screenshot_2022-04-08_at_00.10.44

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

  1. Use community edition
  2. Go to any project /root/$PROJECT/
  3. Go to /root/$PROJECT/-/settings/repository#js-protected-tags-settings
  4. Scroll down Protected tags

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

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

Edited by Artur Fedorov

Merge request reports

Loading