`script_order` is not respected in the Scripts list
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with the two steps the report names: where script_order is read during discovery, and where a revision is activated and the published Script is saved. Check whether the position is stored on the Script record, then whether the Scripts list sorts by project, module path and class name instead of that stored position. Reproduce by uploading the Zulu/Alpha example and confirming the list order. Done when Zulu appears before Alpha in the default list and the order survives activation.
由索引模型根据 Issue 内容生成。
描述
Plugin Version
v0.1.0
NetBox Version
v4.7.5
Python Version
3.12
Steps to Reproduce
- Upload a Script File containing the following code:
from netbox_scripts import Script class Zulu(Script): def run(self, data, commit): pass class Alpha(Script): def run(self, data, commit): pass script_order = [Zulu, Alpha] - Validate and activate the revision.
- Open the Scripts list and filter by the Project, using the default sorting.
Expected Behavior
Zulu appears before Alpha, respecting the order defined in script_order, as documented in the authoring guide and supported by NetBox's built-in Custom Scripts functionality.
Observed Behavior
Alpha appears before Zulu. The Scripts list defaults to ordering by Project, module path and class name, ignoring the author-defined presentation order.
Discovery records the intended position, but activation does not persist it on the published Script.
This also affects the ordering intended for the grouped Scripts view proposed in #81.
- 主要语言
- Python
- 星标
- 9
- 派生
- 0
- 平均合并
- 18 小时 59 分钟
- 30 天内合并 PR
- 93
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
netbox-community/netbox-scripts 的其他 Issue
-
app: scripts Bucket: KTLO status: backlog type: housekeeping
难度 1/5 1-3 小时 新手友好度 88/100
netbox-community/netbox-scripts#281 ·
维护者通常 1 天内回复
-
app: scripts Bucket: Improve complexity: low status: backlog type: feature
难度 2/5 1-3 小时 新手友好度 72/100
netbox-community/netbox-scripts#244 ·
维护者通常 1 天内回复
-
Correct the documentation of a Project's current revision可能已有人在做 @pheus 今天认领。 未关闭app: scripts Bucket: KTLO status: accepted type: documentation
难度 2/5 1-3 小时 新手友好度 86/100
netbox-community/netbox-scripts#233 · 已指派 1 人 ·
维护者通常 1 天内回复
-
app: scripts complexity: medium status: backlog type: feature
难度 2/5 1-3 小时 新手友好度 64/100
netbox-community/netbox-scripts#229 ·
维护者通常 1 天内回复
-
app: scripts status: backlog type: housekeeping
难度 2/5 1-3 小时 新手友好度 82/100
netbox-community/netbox-scripts#228 ·
维护者通常 1 天内回复
查看 netbox-community/netbox-scripts 的全部 Issue
相似的 Issue
-
bug feature request
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 66/100
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
Qiskit/qiskit-obp#156 ·
-
action-item enhancement
难度 2/5 1-3 小时 新手友好度 88/100
getcommunityone/open-navigator#1658 ·
维护者通常 1 天内回复
-
review-panel severity:low
难度 2/5 1-3 小时 新手友好度 72/100
kristovatlas/coin-accounting#636 ·
维护者通常 1 天内回复