Add wildcard search for Branches and Tags
What does this MR do and why?
As part of BranchRulesMVC we needed to allow wildcard searching in the branches page. During investigation we found that the code responsible for searching branches is shared with the tag search, we discussed the change here and decided to implement for both branch and tag search
Describe in detail what your merge request does and why.
We added some logic to GitRefFinder to allow users to pass wildcard search terms in addition to the existing ^
, $
, and exact term matchers as described in the "Repository > Branches" docs
How to set up and validate locally
- Ensure you have pushed some branches and tags to GDK (you probably have some defaults already setup)
- Visit http://gdk.test:3000/flightjs/Flight/-/branches and search for some branches in the search filter box
I recommend testing all 4 possible search types (the following examples match the default branches in the GDK's flightjs/Flight project
- starts with: ^trigg
- ends with: hook$
- wildcard: v*x
- substring: fix
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.