Script List is ignoring specified sort order of scripts #10812

Closed
opened 2025-12-29 21:36:12 +01:00 by adam · 1 comment
Owner

Originally created by @JohannesKreuzer on GitHub (Feb 26, 2025).

Originally assigned to: @jnovinger on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.2.4

Python Version

3.12

Steps to Reproduce

Create a custom script module with multiple scripts, specify custom sort order via script_order.

Expected Behavior

Scripts in module are sorted das specified in script_order

Observed Behavior

Scripts are sorted alphabetically by Script Class name

Originally created by @JohannesKreuzer on GitHub (Feb 26, 2025). Originally assigned to: @jnovinger on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.2.4 ### Python Version 3.12 ### Steps to Reproduce Create a custom script module with multiple scripts, specify custom sort order via script_order. ### Expected Behavior Scripts in module are sorted das specified in script_order ### Observed Behavior Scripts are sorted alphabetically by Script Class name
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:36:12 +01:00
adam closed this issue 2025-12-29 21:36:12 +01:00
Author
Owner

@JohannesKreuzer commented on GitHub (Feb 26, 2025):

issue seems to be in netbox/templates/extras/script_list.html line 40, where the scripts are loaded from database relations and not using reflections via module_scripts property of ScriptModule

@JohannesKreuzer commented on GitHub (Feb 26, 2025): issue seems to be in netbox/templates/extras/script_list.html line 40, where the scripts are loaded from database relations and not using reflections via module_scripts property of ScriptModule
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10812