Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
campaigns: Switch to changeset syncer per code host (#11874)
* campaigns: Switch to changeset syncer per code host Instead of per external service. Syncer scheduling is coupled to rate limiting which is per code host so this change aligns them. * No need to fetch the sources column from the repo table anymore * Clean up some comments * Update enterprise/internal/campaigns/syncer.go Co-authored-by: Thorsten Ball <mrnugget@gmail.com> * Update enterprise/internal/campaigns/syncer.go Co-authored-by: Thorsten Ball <mrnugget@gmail.com> * Update enterprise/internal/campaigns/syncer.go Co-authored-by: Thorsten Ball <mrnugget@gmail.com> * Move BaseURL from repos.ExternalService Move it to the extsvc package so that we can also use it with api.ExternalService types * Check for supported code host by using new IsSupportedKind function Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
- Loading branch information
Showing
7 changed files
with
196 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.