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

Handle Installation::deleted event

Abierto
#837 1 comentario 0 reacciones 0 asignados Ver en GitHub
needs estimate question
Lenguaje dominante
Elixir
Estrellas
234
Forks
82
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

# 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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.