-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script ordering is nondeterministic for Managed File #15891
Comments
Script modules are sorted by their The best approach is probably to tweak the default ordering for ManagedFile to account for the data source & data file fields introduced from SyncedDataMixin. |
I was mistaken above; |
NetBox version
v3.76
Feature type
Change to existing functionality
Proposed functionality
Today it appears that the “/extras/scripts/” view is sorted based on core_managedfile’s data_synced field. I would like to see the order_by be defined or want to add a new setting to the configuration to allow for us to set a static way for the screen to render.
Hardcode this line
netbox/netbox/extras/views.py
Line 1220 in 4b21cf6
Or allow for a config setting like below:
Hardcoding the
.order_by("data_path")
fixes the issue on my local box no matter how files are added or updated to the script pageUse case
Our end users complain that the script groups jump all over the page as we add or update script in Netbox. This forces them to have to scroll up and down the page till they are able to find the group of script they wish to run
Database changes
This is a GUI change and no database changes are expected
External dependencies
n/a
The text was updated successfully, but these errors were encountered: