search: add repo partition job
Created by: rvantonder
Putting in draft for discussion.
This makes progress on separating repo pagination and partitioning (index/unindexed) for jobs. The idea is to pull that logic into its own job (i.e., most of these calls). The open question is how to ensure/enforce hydrating repos inside this job. This PR makes progress to do that and I think we should move forward with a direction like this. It's not the final ideal state, but I do think it makes significant progress immediately by (a) disentangling state/concerns and (b) avoiding redundant repo resolution for text search jobs (and eventually, all jobs).
You can read the code to toggle comments off first:
and then show comments for notes/discussion.