code-corps / code-corps/code-corps-api

Handle Installation::deleted event

Offen
#837 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
needs estimate question
Vorherrschende Sprache
Elixir
Sterne
234
Forks
82
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

# Problem

A user can delete a github installation from github. In that case, pretty much all of github integration will stop working.

We should handle the `Installation::deleted` event to avoid potential issues.

- receive event
- find and delete associated `GithubAppInstallation` (alternative: set state to "uninstalled")
- find and disassociate associated `Project`
- find and delete associated `GithubRepo` records (alternative: add state field, set state to "uninstalled").
- find and delete associated `ProjectGithubRepo` records

Handling this one is still unclear to me and warrants additional discussion.

https://developer.github.com/v3/activity/events/types/#installationevent

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.