Skip to content

Possibility to order scripts #7387

@maximumG

Description

@maximumG

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

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions