Repository sync: support removal #2
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Context
When syncing repositories, our system is only adding new repositories to the database. It should also handle repository removals.
Requirements
When receiving
installation_repositories.removed
webhooks, we should remove the repository from our database.Notes:
GITHUB_REPOSITORIES_SYNC
queue currently handle both theadded
and theremoved
event. We can keep it that way and just add a delete method with a clause likeWHERE id NOT IN (${repositoryIdsThatWereUpserted})
The text was updated successfully, but these errors were encountered: