Add and replace script source by pasting text

Aperta
#28 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api, backend

Direzione di ricerca

Start by tracing the existing file-based source-management flow and its REST endpoint, including permission checks, filename and size validation, replacement confirmation, and revision creation. Implement the single-module text alternative in both interfaces while rejecting simultaneous file and text input; done means the existing rules remain enforced and replacements create new revisions.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

app: scripts complexity: low status: backlog type: feature
Plugin Version

v0.0.1

Proposed functionality

Let operators enter a module name and paste Python source instead of uploading a file. Provide the same option through REST.

Accept either a file or text, not both. Use the existing source-management permissions, filename rules, size limits, replacement confirmation, and validation. Replacement must create a new revision, not edit an existing one.

Keep this to a single module. A browser editor, nested upload paths, and multi-file updates remain separate work.

Use case

Some environments block .py attachments but permit approved source-text submissions. This would offer a supported alternative when a Git-backed Project is unavailable, without requiring files to be renamed on the server.

Related request: netbox-community/netbox#21701.

External dependencies

No new package or service is expected.

Lingua principale
Python
Stelle
8
Fork
0
Merge medio
9h 34m
PR unite (30g)
32

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di netbox-community/netbox-scripts

Tutte le issue di netbox-community/netbox-scripts

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.