Code Ownership: Pass db to code ownership filter job
Created by: philipp-spiess
Closes https://github.com/sourcegraph/sourcegraph/issues/39157
To filter by code ownership information in our post-search job, we need a way to find out the ownership information of a file. To do this, we need access to the DB
(to do git server file readings at first and maybe postgres lookups later).
I am not sure if adding it to the SearchInputs
struct makes conceptual sense but this seemed to have been the least invasive method and it worked for me in my prototype.
What are your thoughts @camdencheek / @rvantonder?
Test plan
I’m happy if tests are still green and it compiles.