project_inputs.html uses undefined file variable for dropdown IDs, lacks visual tag badges, and has empty delete labels
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Start with scanpipe/templates/scanpipe/panels/project_inputs.html and inspect the dropdown IDs, tag display, and delete button data-label described in the issue. Check how input sources expose their identifiers, tags, filenames, and download URLs, then update the template so IDs are unique, present tags are visible, and the delete label falls back to the URL. Confirm each behavior on a project detail page with multiple inputs, a tagged input, and an unfetched URL input.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 226
- Forks
- 222
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 32
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aboutcode-org/scancode.io
-
Register Missing Models in Django Admin (DiscoveredLicense, ProjectMessage, CodebaseRelation, Run, WebhookSubscription)Possibly taken @Rucha0901 claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aboutcode-org/scancode.io#2329 ·
Maintainers usually reply within 1 day
-
ignored_dependency_scopes does not exclude npm devDependenciesPossibly taken @MGpromax claimed this 83 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
aboutcode-org/scancode.io#2215 ·
Maintainers usually reply within 1 day
-
Delivery Error in scan_single_package: No connection adapters were found for '/notifications/send_scan_notification/May be free again @akshat-lakhera claimed this 30 days ago, and no pull request is open. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
aboutcode-org/scancode.io#2206 · 1 comment ·
Maintainers usually reply within 1 day
-
update `run` cli command to run pipelines without an inputPossibly taken @NoiceHax claimed this 95 days ago. Opennice-to-have
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
aboutcode-org/scancode.io#2203 · 1 comment ·
Maintainers usually reply within 1 day
-
Local developement docs are outdatedPossibly taken @nik-767 claimed this 125 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 82/100
aboutcode-org/scancode.io#2197 · 1 comment ·
Maintainers usually reply within 1 day
All issues in aboutcode-org/scancode.io
Similar issues
-
Internal ErrorOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
frappe/frappe_docker#2071 ·
Maintainers usually reply within 1 day
-
bug python
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
traceloop/openllmetry#4717 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
The-Pocket/PocketFlow#161 ·
-
comp/desktop P2 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#157702 ·
Maintainers usually reply within 1 day
-
scibench_physics / scibench_chemistry: a correct answer scores 0 when the unit has a power of tenPossibly taken @BahaaMattar claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
EvolvingLMMs-Lab/lmms-eval#1699 ·
Maintainers usually reply within 1 day