Audit cascade rules between tables to simplify repo deletion
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by reading the table definitions and migrations to list every foreign key that points at the repo table, then compare that list against the deletion order in collectoss_utilities/deletes.py, which encodes what must go first. Decide per relation whether cascade or nullify is right and where the rule belongs (migration vs. model). Done when deleting a single repo row removes or clears everything that depends on it without running the external script.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 18
- 派生
- 33
- 平均合并
- 2 天 16 小时
- 30 天内合并 PR
- 12
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
chaoss/CollectOSS 的其他 Issue
-
CLI: connectivity check prints diagnostics to stdout, breaking piped output可能重新可做 @Nimisha987 于 10 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
chaoss/CollectOSS#548 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
chaoss/CollectOSS#521 ·
维护者通常 1 天内回复
-
devops
难度 2/5 1-3 小时 新手友好度 68/100
chaoss/CollectOSS#406 · 3 条评论 ·
维护者通常 1 天内回复
-
Bump codeql SARIF upload Ci dependency to v4可能已有人在做 @Dipro-cyber 于 181 天前认领。 未关闭dependencies devops good first issue
难度 2/5 1-3 小时 新手友好度 68/100
chaoss/CollectOSS#349 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
chaoss/CollectOSS#307 · 3 条评论 ·
维护者通常 1 天内回复
查看 chaoss/CollectOSS 的全部 Issue
相似的 Issue
-
resource-submission validation-passed
难度 1/5 1 小时以内 新手友好度 68/100
hesreallyhim/awesome-claude-code#3875 · 1 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 77/100
bvis/aegis-hass#725 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stamp未关闭
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.x可能已有人在做 @NimaVaziri 今天认领。 未关闭Pytorch
难度 2/5 1-3 小时 新手友好度 78/100
NVIDIA/TensorRT-LLM#23406 ·
维护者通常 1 天内回复