Skip to content

repo-updater: always wrap context.Background with internal actor

Administrator requested to merge jc/invisible-private-repos into main

Created by: unknwon

repo-updater used to have god-view of the entire repo table, but with the merge of underlying DB logic, the repoStore it is using now respecting the repository permissions, which makes the repo-updater not able to see the private repos anymore.

This causes two symptoms (maybe there are more):

  1. Permissions syncing stops working because it can't see private repos (no leakage, instead non-admin could see nothing).
  2. Site admin can still visit the private repo on Sourcegraph but not able to view the settings page, because the page sends a request to the repo-updater and the latter couldn't see it.
CleanShot 2021-01-09 at 23 05 07@2x

I found this bug in my personal instance, triggered by my recent update to insider version, and my friend couldn't see my repo anymore

Merge request reports

Loading