Possibility to order scripts #5434

Closed
opened 2025-12-29 19:27:54 +01:00 by adam · 0 comments
Owner

Originally created by @maximumG on GitHub (Sep 28, 2021).

Originally assigned to: @maximumG on GitHub.

NetBox version

v2.11.12

Feature type

Change to existing functionality

Proposed functionality

As of Netbox 2.11.x, scripts are automatically discovered and rendered in the UI (extras/scripts/). The order of the scripts is based on alphabetical order.

We propose the possibility for the developer to order the scripts listing inside a python module. We'd like to propose the same implementation as was done for reports in PR #7369.


MySuperScript(Script)
    pass

MySecondSuperScript(Script)
    pass

script_order = (MySuperScript, MySecondSuperScript)

Use case

Adding the possibility to order scripts would allow to present some kind of script's workflow within a specific module easily.

Database changes

No response

External dependencies

No response

Originally created by @maximumG on GitHub (Sep 28, 2021). Originally assigned to: @maximumG on GitHub. ### NetBox version v2.11.12 ### Feature type Change to existing functionality ### Proposed functionality As of Netbox 2.11.x, scripts are automatically discovered and rendered in the UI (extras/scripts/). The order of the scripts is based on alphabetical order. We propose the possibility for the developer to order the scripts listing inside a python module. We'd like to propose the same implementation as was done for reports in PR #7369. ```python MySuperScript(Script) pass MySecondSuperScript(Script) pass script_order = (MySuperScript, MySecondSuperScript) ``` ### Use case Adding the possibility to order scripts would allow to present some kind of script's workflow within a specific module easily. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 19:27:55 +01:00
adam closed this issue 2025-12-29 19:27:55 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5434