Register Missing Models in Django Admin (DiscoveredLicense, ProjectMessage, CodebaseRelation, Run, WebhookSubscription)

オープン 初心者向け
#2,329 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Rucha0901 がすでに取り組んでいます。

2026年11月14日 から。

  • #2330 @Rucha0901 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
django, python
領域
backend

調査の方向性

scanpipe/admin.py から始めてください。ここには既存のモデル登録と ProjectAdmin の list_display があります。DiscoveredPackage と CodebaseResource で使われているパターンに従ってください。DiscoveredLicense、ProjectMessage、CodebaseRelation、Run、WebhookSubscription を list displays、フィルター、検索フィールド付きで登録し、その後 ProjectAdmin にそれらの changelist へのリンクを追加します。各モデルが /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:

  • DiscoveredLicense
  • ProjectMessage
  • CodebaseRelation
  • Run
  • WebhookSubscription

Furthermore, ProjectAdmin.list_display only contains links for packages, dependencies, and resources, lacking links for licenses, messages, relations, and pipeline runs.

To Reproduce
  1. Enable Django admin in ScanCode.io.
  2. Navigate to /admin/.
  3. Observe that DiscoveredLicense, ProjectMessage, CodebaseRelation, Run, and WebhookSubscription are not listed or accessible.
  4. Open a Project change 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時間
マージ済み PR(30日)
32

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aboutcode-org/scancode.io のほかの issue

aboutcode-org/scancode.io の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。