• Francisco Javier López's avatar
    Limit snippet search scope in GitLab.com · ea70a8e5
    Francisco Javier López authored
    The scope we use when searching for snippets it's
    quite wide. It searchs in personal snippets and also
    project snippets (in authorized projects and also visible
    when not authorized).
    When the dataset is quite big, like in GitLab.com, the requests
    times out because they take around 30s.
    While we address and rearrange the snippet search to reduce
    this scope for every type of instance, we're going
    to narrow it just for GitLab.com.
    Now, we're going to search only in the user personal and in
    authorized project snippets.
snippet_search_results.rb 1.64 KB