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

When unlinking installation from organization, delete ProjectGithubRepos

Open
#860 0 comments 0 reactions 0 assignees View on GitHub
Time: 2 hours
Dominant language
Elixir
Stars
234
Forks
82
PR merge metrics
No merged PRs in 30d

Description

# 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.

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.