Skip to content

search: add repo partition job

Administrator requested to merge backend-integration/rvt/pager-job into main

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:

Screen Shot 2022-03-01 at 6 26 14 PM

and then show comments for notes/discussion.

Test plan

Merge request reports

Loading