Skip to content

search: paginated repository resolution

Created by: tsenart

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.
  • In order to be able to remove the blocking resolveRepositories in doResults, repository search had to be migrated to the new Job interface. This is implemented by run.RepoSearch.
  • We migrate all existing Job implementations to use searchrepos.Resolver.Paginate.
  • Alerts for missing repo revs and no resolved repos errors are now handled by searchResolver.errorToAlert.

Part of #26995 (closed)

Merge request reports

Loading