Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search: paginated repository resolution (take 2) #27359

Merged
merged 9 commits into from Nov 11, 2021

Commits on Nov 11, 2021

  1. search: implement paginated repository resolution

    This PR is the last of series to introduce paginated repo resolution in
    search.
    
    We remove `backend.ListSearchable` and its use in repository resolution
    because global searches on Sourcegraph.com no longer depend on it. This
    in turn simplifies the code in preparation for cursor based pagination.
    
    Part of #26995
    tsenart committed Nov 11, 2021
    Copy the full SHA
    85181f0 View commit details
    Browse the repository at this point in the history
  2. search: optimize RepoSearch job

    This commit optimizes the RepoSearch job by leveraging the database to
    find repos based on the text pattern. Yesterday's production incident
    was caused by excessive database requests due to our previous brute-force
    approach of loading all repos and then filtering them in the frontend.
    tsenart committed Nov 11, 2021
    Copy the full SHA
    bab22ec View commit details
    Browse the repository at this point in the history
  3. search: change repo stats semantics to repos with matches

    This commit makes our repo stats semantics (in the UI and GraphQL API)
    mean repositories with matches rather than searched or searchable.
    tsenart committed Nov 11, 2021
    Copy the full SHA
    3a7a053 View commit details
    Browse the repository at this point in the history
  4. fixup! fix test

    tsenart committed Nov 11, 2021
    Copy the full SHA
    10688cf View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    7dcd988 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    cd9ad12 View commit details
    Browse the repository at this point in the history
  7. fixup! please the lint gods

    tsenart committed Nov 11, 2021
    Copy the full SHA
    79d5032 View commit details
    Browse the repository at this point in the history
  8. fixup! dry repo stats

    tsenart committed Nov 11, 2021
    Copy the full SHA
    23de00e View commit details
    Browse the repository at this point in the history
  9. Revert "fixup! dry repo stats"

    This reverts commit 23de00e.
    tsenart committed Nov 11, 2021
    Copy the full SHA
    a815d2f View commit details
    Browse the repository at this point in the history