Register Missing Models in Django Admin (DiscoveredLicense, ProjectMessage, CodebaseRelation, Run, WebhookSubscription)
维护者通常 1 天内回复
评估
调研方向
从 scanpipe/admin.py 开始,那里有现有的模型注册和 ProjectAdmin 的 list_display,并遵循 DiscoveredPackage 和 CodebaseResource 所用的模式。为 DiscoveredLicense、ProjectMessage、CodebaseRelation、Run 和 WebhookSubscription 注册带有列表显示、过滤器和搜索字段的管理配置,然后在 ProjectAdmin 中添加指向它们变更列表的链接。完成标准是每个模型都出现在 /admin/ 下,并且 Project 变更视图链接到许可证、消息、关系和运行的过滤列表。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
In scanpipe/admin.py, the admin site registers Project, CodebaseResource, DiscoveredPackage, DiscoveredDependency, OriginMatch, and OriginDetermination.
However, several core models are not registered in the Django admin:
DiscoveredLicenseProjectMessageCodebaseRelationRunWebhookSubscription
Furthermore, ProjectAdmin.list_display only contains links for packages, dependencies, and resources, lacking links for licenses, messages, relations, and pipeline runs.
To Reproduce
- Enable Django admin in ScanCode.io.
- Navigate to
/admin/. - Observe that
DiscoveredLicense,ProjectMessage,CodebaseRelation,Run, andWebhookSubscriptionare not listed or accessible. - Open a
Projectchange view and observe missing links for licenses, messages, relations, and runs.
Expected behavior
All primary models should be registered in the Django admin site with appropriate list displays, filters, and search fields. ProjectAdmin should provide filtered changelist links to view related licenses, messages, relations, and runs.
- 主要语言
- Python
- 星标
- 226
- 派生
- 222
- 平均合并
- 1 天 5 小时
- 30 天内合并 PR
- 32
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aboutcode-org/scancode.io 的其他 Issue
-
project_inputs.html uses undefined file variable for dropdown IDs, lacks visual tag badges, and has empty delete labels可能已有人在做 @Rucha0901 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
aboutcode-org/scancode.io#2354 ·
维护者通常 1 天内回复
-
ignored_dependency_scopes does not exclude npm devDependencies可能已有人在做 @MGpromax 于 83 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
aboutcode-org/scancode.io#2215 ·
维护者通常 1 天内回复
-
Delivery Error in scan_single_package: No connection adapters were found for '/notifications/send_scan_notification/可能重新可做 @akshat-lakhera 于 30 天前认领,目前没有进行中的 PR。 未关闭bug
难度 2/5 1-3 小时 新手友好度 70/100
aboutcode-org/scancode.io#2206 · 1 条评论 ·
维护者通常 1 天内回复
-
update `run` cli command to run pipelines without an input可能已有人在做 @NoiceHax 于 95 天前认领。 未关闭nice-to-have
难度 2/5 1-3 小时 新手友好度 72/100
aboutcode-org/scancode.io#2203 · 1 条评论 ·
维护者通常 1 天内回复
-
Local developement docs are outdated可能已有人在做 @nik-767 于 125 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 82/100
aboutcode-org/scancode.io#2197 · 1 条评论 ·
维护者通常 1 天内回复
查看 aboutcode-org/scancode.io 的全部 Issue
相似的 Issue
-
author-page correction move-papers
难度 1/5 1 小时以内 新手友好度 78/100
acl-org/acl-anthology#10978 · 1 条评论 ·
维护者通常 1 天内回复
-
PostgreSQL results table stores labels with single quotes, and a double quote in a label fails the write可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
GoogleCloudPlatform/professional-services-data-validator#1899 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
HKUDS/CLI-Anything#652 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
Project-N-E-K-O/N.E.K.O#3813 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
Dao-AILab/flash-attention#3191 ·
维护者通常 4 天内回复