project_inputs.html uses undefined file variable for dropdown IDs, lacks visual tag badges, and has empty delete labels
维护者通常 1 天内回复
评估
调研方向
从 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 小时
- 30 天内合并 PR
- 32
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 天前认领,目前没有进行中的 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
-
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 天内回复