• Micael Bergeron's avatar
    Refactor the `SearchResults` constructors to be aligned · 1e5cc59b
    Micael Bergeron authored
    This commit streamlines all the initializers to simplify the
    inheritance logic for:
    
    - `Gitlab::SearchResults`
        -> `…::ProjectSearchResults`
        -> `…::GroupSearchResults`
        -> `…::SnippetSearchResults`
    
    - `Gitlab::Elastic::SearchResults`
        -> `…::ProjectSearchResults`
        -> `…::GroupSearchResults`
    
    The tests were also deduplicated and streamlined.
    1e5cc59b
search_results_helpers.rb 934 Bytes