Basic Search support multi-project search
Basic Search should add multi project search support behind a feature flag. Multi project search will be enabled when a group is selected.
Detailed plan for UI support
- Search controller already supports multiple values for
project_ids
, example:?project_ids=1,2,3
and?project_ids=1
-
lib/gitlab/project_search_results.rb
andlib/gitlab/search_results.rb
are the two files in play for the Postgres backed queries- support any current permission checks (example: Ability.allowed?)
- support an array of projects vs. a singular project for each scope
- code/blobs
- issues
- merge requests
- commits
- comments/notes
- milestones
-
users(already done in the Advanced Search MR)
Some questions and things to consider
- Should we allow All Groups and Multi Project Select?
- Should we SearchResults and ProjectSearchResults
project
param toprojects
all over? - Many of these rely upon Finders or are heavily tied into single Project searching. We may need to look into unique ways to merge results if combining multiple projects is not performant.
Edited by Terri Chu