Skip to content

Search backend: detach computeExcluded

Administrator requested to merge cc/detach-compute-excluded into main

Created by: camdencheek

This detaches the Excluded method from repos.Resolver and makes it a standalone, private function. Computing excluded repos requires a slightly different set of information than actually resolving repos. Specifically, whether fork and archived were explicitly set. This makes it possible to only pass that information to the function that needs it.

This doesn't actually partition the types here, but the overarching goal is to minimize passing informaiton into scopes where it isn't used.

Stacked on #34138

Test plan

Minimal and semantics-preserving

Merge request reports

Loading