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

Handle Installation::deleted event

未關閉
#837 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
needs estimate question
主要語言
Elixir
星號
234
分支
82
PR 合併指標
30 天內沒有已合併 PR

描述

# 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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。