Skip to content

Make NewIssueDropdown more versatile

Paul Gascou-Vaillancourt requested to merge 374098-new-resource-dropdown into master

What does this MR do and why?

This makes the NewIssueDropdown component more versatile by...

  • ...renaming it to the more generic NewResourceDropdown.
  • ...computing local storage keys dynamically.
  • ...adding support for creating merge requests and milestones.
  • ...delegating the filtering to the backend (made possible by !109390 (merged)).

We are doing those changes to migrate a few select2 instances to this new component. The actual migrations will be done in !109868 (merged).

Screenshots or screen recordings

No visual change.

How to set up and validate locally

This component is currently used in a group's issues list as well as the instance-level issues dashboard. Remaining usages are being migrated in !109868 (merged).

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 #374098 (closed)

Edited by Paul Gascou-Vaillancourt

Merge request reports

Loading