You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Audit cascade rules between tables to simplify repo deletion #581
databaseRelated to the unifed data model/schemaneeds-planIssues that need a plan to be approved by maintainers before implementationtech debtTechnical Debt AKA symptoms of past shortcuts that now need to be corrected
currently the best way to handle "i want to remove this repo from the database" is a script/command in collectoss-utilities.
When we have the schema a little more cleaned up, I think its not unreasonable to expect CollectOSS to be responsible for its own schema.
IMO CollectOSS should properly set on-delete rules for things joined to the repo table to ensure that, if someone deletes a repo from the repo table, everything that depends on it is also deleted.
the ordering of the existing script should give lots of clues as to what should be deleted.
plan is to go through the tables the old delete script touches, check which foreign keys already cascade, and add ON DELETE CASCADE to the missing ones in a migration.
then i'll test it by deleting a repo and checking nothing's left behind. does that sound ok before i start?
As far as how, that seems okay. However, I will note that doing this at the current moment will make things harder as we have several database PRs already in flight, such as #575. If this is your first time, I'd recommend picking an issue from one of the sources mentioned in #553 (or otherwise finding something that isnt a database issue until the current in-flight backlog of database migrations has been merged.
Feel free to join CHAOSS Slack in the #wg-collectoss-8knot channel if you'd like help finding something to work on!
databaseRelated to the unifed data model/schemaneeds-planIssues that need a plan to be approved by maintainers before implementationtech debtTechnical Debt AKA symptoms of past shortcuts that now need to be corrected
Activity
Shreyanshsingh23 commentedon Nov 23, 2026
hey @MoralCode, i'd like to pick this up.
plan is to go through the tables the old delete script touches, check which foreign keys already cascade, and add ON DELETE CASCADE to the missing ones in a migration.
then i'll test it by deleting a repo and checking nothing's left behind. does that sound ok before i start?
MoralCode commentedon Nov 23, 2026
As far as how, that seems okay. However, I will note that doing this at the current moment will make things harder as we have several database PRs already in flight, such as #575. If this is your first time, I'd recommend picking an issue from one of the sources mentioned in #553 (or otherwise finding something that isnt a database issue until the current in-flight backlog of database migrations has been merged.
Feel free to join CHAOSS Slack in the #wg-collectoss-8knot channel if you'd like help finding something to work on!