Skip to content

Move groupsPath util to its own file

Paul Gascou-Vaillancourt requested to merge 374010-group-select-utils into master

What does this MR do and why?

This moves the groupsPath util to its own utils.js file. This makes it more reusable and testable. We're doing this in preparation for migrating the group selector away from select2 as we'll be able to import this helper in the new Vue component that will coexist with the existing select2 implementation for a short while.

The main migration is being done in !98597 (merged) and already leverages these changes. That other MR is currently blocked by other considerations, so this one lets us ship an independent change to make the main MR smaller when it is ready.

Screenshots or screen recordings

No visual change.

How to set up and validate locally

The group selectors are located at Admin Area > Settings > Templates > Custom project templates and :group > Settings > General > Custom project templates but are both unaffected.

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

Merge request reports

Loading