project_inputs.html uses undefined file variable for dropdown IDs, lacks visual tag badges, and has empty delete labels

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

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

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

2026年11月19日 から。

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

評価

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

調査の方向性

まず 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:

  1. Uses undefined file.filename|slugify on lines 9 and 11, resulting in duplicate id="dropdown-input-" across input items.
  2. input_source.tag is never displayed visually in the inputs list.
  3. Delete button data-label is empty for un-downloaded URLs where filename is 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:

  1. Open a project detail page with input sources.
  2. Inspect input dropdown elements; see duplicate id="dropdown-input-".
  3. Set a tag on an input source; observe it is not displayed in the list.
  4. 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

環境構築

はじめの一歩

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

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

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

似ている issue

Python の issue をもっと見る

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

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