Skip to content
Snippets Groups Projects

repo-updater: Fix syncRepo logic

Merged Warren Gifford requested to merge syncrepo-maintain-old-sources into main

Created by: ryanslade

syncRepo syncs a single repo that has been sourced from a single code host. It is usually triggered by lazy syncing. Since it is only sourced from a single code host its Sources map only contained mapping for that one source. Our diff algorithm thus triggered the removal of the repo from all other sources in the external_service_repos table.

Instead, we now assume that the current stored mapping is correct for all OTHER sources.

Closes: https://github.com/sourcegraph/sourcegraph/issues/15820

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading