project_inputs.html uses undefined file variable for dropdown IDs, lacks visual tag badges, and has empty delete labels
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
調査の方向性
まず scanpipe/templates/scanpipe/panels/project_inputs.html を確認し、issue で説明されているドロップダウンの ID、タグの表示、削除ボタンの data-label を調べます。入力ソースが識別子、タグ、ファイル名、ダウンロード URL をどのように提供するかを確認し、ID が一意になり、存在するタグが表示され、削除ラベルには URL がフォールバックとして使われるようにテンプレートを更新します。複数の入力、タグ付き入力、未取得の URL 入力があるプロジェクト詳細ページで、それぞれの動作を確認します。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The Project Inputs panel (scanpipe/templates/scanpipe/panels/project_inputs.html) contains template bugs:
- Uses undefined
file.filename|slugifyon lines 9 and 11, resulting in duplicateid="dropdown-input-"across input items. input_source.tagis never displayed visually in the inputs list.- Delete button
data-labelis empty for un-downloaded URLs wherefilenameis not yet set.
System configuration
- Which version of ScanCode.io are you running? main
- Are you running the app using Docker? No
- On which OS? macOS
- What inputs are you using? URL / file inputs
- Which pipeline are you running? N/A
To Reproduce
Steps to reproduce the behavior:
- Open a project detail page with input sources.
- Inspect input dropdown elements; see duplicate
id="dropdown-input-". - Set a tag on an input source; observe it is not displayed in the list.
- Add an input source by URL without fetching and click delete; see empty label in the confirmation dialog.
Expected behavior
- Dropdown IDs and aria-controls should be unique per input.
- Input source tag badges should be displayed visually when present.
- Delete confirmation modal should fall back to download URL when filename is empty.
- 主要言語
- Python
- スター
- 226
- フォーク
- 222
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 32
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aboutcode-org/scancode.io のほかの issue
-
Register Missing Models in Django Admin (DiscoveredLicense, ProjectMessage, CodebaseRelation, Run, WebhookSubscription)対応中かも @Rucha0901 が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
aboutcode-org/scancode.io#2329 ·
メンテナーはふだん 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 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン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
-
Internal Errorオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
frappe/frappe_docker#2071 ·
メンテナーはふだん 1 日以内に返信
-
bug python
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
traceloop/openllmetry#4717 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
The-Pocket/PocketFlow#161 ·
-
comp/desktop P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NousResearch/hermes-agent#157702 ·
メンテナーはふだん 1 日以内に返信
-
scibench_physics / scibench_chemistry: a correct answer scores 0 when the unit has a power of ten対応中かも @BahaaMattar が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
EvolvingLMMs-Lab/lmms-eval#1699 ·
メンテナーはふだん 1 日以内に返信