Skip to content

Global Search - New Header Search doesn't support branch refs

What/Why

With the new Header Search branches are no longer passed along to the code search. This is done via the search_code and repository_ref query param from the SearchContext.

Video Example

Current (Broken) Legacy (Expected)
Branch_-_Broken_w__FF Branch_-_Expected_w_o_FF

Proposal

Update the query builders in the header_search/store/getters.js to support the code_search and ref boolean parameters.

cc/ @nickbrandt @changzhengliu @JohnMcGuire @tbulva

Edited by Zack Cuddy