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

Handle Installation::deleted event

Đang mở
#837 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
needs estimate question
Ngôn ngữ chính
Elixir
Star
234
Fork
82
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

# 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.