Skip to content

Project tab count is incorrectly showing all projects in group in group level search

Problem

When you perform a search for any type other than projects at the group level you end up searching the projects tab will show an incorrect count because it is matching all projects in the group without using the search term you entered. Switching to the tab you'll see that it's not as many projects as it initially shows.

How to reproduce

  1. Load an issues search for definitelynomatchingprojects
  2. Notice the the project tab count is over 1k results
  3. Click on the project tab
  4. See there are actually no matching projects at all

Solution

We should be actually using the search term in the filter. This must be a somewhat recently introduced bug since I'm pretty sure we were using the search term in the past.