a8n: Handle the deletion of external services and repos
Created by: mrnugget
It's currently undefined what should happen when a site-admin deletes/updates an external service that then deletes repositories that are connected to existing Campaign
s,CampaignPlan
s, CampaignJob
s, Changeset
s, ChangesetJobs
.
Here is the current "schema":
The first step is to define what should happen in the following cases:
- What should happen to the changesets on the code hosts if a user deletes a
Campaign
on Sourcegraph? - What should happen to the Sourcegraph Automation Changesets when a site-admin deletes a repository (e.g. by changing the external service config)?
- What should happen to a diff/changeset (
CampaignJob
) in aCampaignPlan
when a site-admin deletes a repository?
Once that list exist, the second step is to handle the deletion of repositories/external services in these places.