Use selected object attributes in dependent form fields
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 42/100
Línea de trabajo
Start with NetBox's dynamic-selection fields in netbox/utilities/forms/fields/dynamic.py and the related widgets. Trace how query_params currently resolve $variable references and how dependent fields refresh when selections change or clear. Done means a documented, limited attribute syntax supports permitted API attributes, handles missing data predictably, preserves existing behavior, and respects object permissions.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Plugin Version
v0.0.1
Proposed functionality
Allow dynamic query_params references to use a selected object's attribute, not just its ID. For example, $prefix.prefix could supply a selected Prefix's value to an IP address filter.
Define a limited, documented syntax and preserve existing $variable behavior. Allow only permitted attributes from the object's API representation, not arbitrary expressions or unrestricted model traversal.
Refresh dependent fields when the selection changes or is cleared. Handle missing attributes and unavailable objects predictably, without bypassing object permissions.
Use case
Some filters need a prefix, slug, or another value rather than a database ID. Authors should not need custom JavaScript or ask users to re-enter information already available from their selection.
Related request: netbox-community/netbox#23082.
External dependencies
This may need changes to NetBox's dynamic-selection fields and widgets. No new package or service is expected.
- Lenguaje dominante
- Python
- Estrellas
- 8
- Forks
- 0
- Merge medio
- 11 h 23 min
- PR fusionados (30 d)
- 24
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de netbox-community/netbox-scripts
-
app: scripts severity: low status: backlog type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
netbox-community/netbox-scripts#94 ·
Los mantenedores suelen responder en 1 día
-
app: scripts severity: medium status: backlog type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
netbox-community/netbox-scripts#83 ·
Los mantenedores suelen responder en 1 día
-
app: scripts status: backlog type: documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
netbox-community/netbox-scripts#80 ·
Los mantenedores suelen responder en 1 día
-
app: scripts severity: medium status: backlog type: bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
netbox-community/netbox-scripts#79 ·
Los mantenedores suelen responder en 1 día
-
app: scripts severity: medium status: backlog type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
netbox-community/netbox-scripts#77 ·
Los mantenedores suelen responder en 1 día
Todos los issues de netbox-community/netbox-scripts
Issues similares
-
[Bug]: Responses API 500s on assistant message with empty content listPosiblemente ocupada @shadowmodder la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
vllm-project/vllm#64940 ·
Los mantenedores suelen responder en 1 día
-
limits
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Keybind quest outdatedAbiertoStatus: Triage Type: Quest
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
GTNewHorizons/GT-New-Horizons-Modpack#27490 ·
Los mantenedores suelen responder en 1 día
-
LLM.save() discards the model's active prompt stylePosiblemente ocupada @remote-controlled-man la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Lightning-AI/litgpt#2378 ·
Los mantenedores suelen responder en 23 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día