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

When unlinking installation from organization, delete ProjectGithubRepos

未关闭
#860 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Time: 2 hours
主要语言
Elixir
星标
234
派生
82
PR 合并指标
30 天内没有已合并 PR

描述

# Problem

Unlinking a `GithubAppInstallation` from an `Organization` deletes the related `OrganizationGithubAppInstallation` record.

That, however, currently in no way affects `ProjectGithubRepo` records which may link a `GithubRepo` belonging to the `GithubAppInstallation` with a project belonging to the `Organization.`

We should also delete the related `ProjectGithubRepo` records when the installation is unlinked.

贡献指南

打开贡献指南

调研方向

Trace the unlinking flow for GithubAppInstallation and OrganizationGithubAppInstallation, then inspect how ProjectGithubRepo connects GithubRepo records to projects. Ensure unlinking also removes affected ProjectGithubRepo records, and verify the behavior with the relevant unlinking or association tests; the issue is done when those records no longer remain after unlinking.

由索引模型根据 Issue 内容生成。

评估

技术栈
elixir
领域
backend, databases
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。