`script_order` is not respected in the Scripts list
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 9
- Fork
- 0
- Merge medio
- 18h 59m
- PR unite (30g)
- 93
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di netbox-community/netbox-scripts
-
app: scripts Bucket: KTLO status: backlog type: housekeeping
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
netbox-community/netbox-scripts#281 ·
I maintainer di solito rispondono entro 1 giorno
-
app: scripts Bucket: Improve complexity: low status: backlog type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
netbox-community/netbox-scripts#244 ·
I maintainer di solito rispondono entro 1 giorno
-
Correct the documentation of a Project's current revisionForse già presa @pheus l’ha presa oggi. Apertaapp: scripts Bucket: KTLO status: accepted type: documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
netbox-community/netbox-scripts#233 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
app: scripts complexity: medium status: backlog type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
netbox-community/netbox-scripts#229 ·
I maintainer di solito rispondono entro 1 giorno
-
app: scripts status: backlog type: housekeeping
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
netbox-community/netbox-scripts#228 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di netbox-community/netbox-scripts
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
plone/plone.observability#114 ·
I maintainer di solito rispondono entro 1 giorno
-
area:docs type:docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
jejjohnson/gauss_flows#246 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openvax/varcode#824 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Add SAS as a cable typeApertanetbox status: needs triage type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
netbox-community/netbox#23868 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
emeryberger/CSrankings#15757 ·
I maintainer di solito rispondono entro 9 giorni