Skip to content

Add wildcard search for Branches and Tags

Joe Woodward requested to merge feat/wildcard-branch-search into master

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

  1. Ensure you have pushed some branches and tags to GDK (you probably have some defaults already setup)
  2. 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

  1. starts with: ^trigg
  2. ends with: hook$
  3. wildcard: v*x
  4. 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.

Merge request reports