Scenario bundle PATCH accepts ?expand=labels but ignores it
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
Línea de trabajo
Comienza en oekg/api_views.py, en OekgAPIView.initial y en el return bundle_response(...) al final de patch. Compara bundle GET y los demás endpoints de escritura que resuelven labels, y añade una prueba de regresión que muestre que PATCH gestiona ?expand=labels o lo rechaza de forma coherente; se considera terminado cuando la respuesta coincide con el comportamiento elegido.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
PATCH /api/v0/scenario-bundles/<uid>/ accepts ?expand=labels (the parameter is validated for every view in OekgAPIView.initial) but does not act on it: the response is built without the expansion set (oekg/api_views.py, the return bundle_response(...) at the end of patch, which passes no expand=). Every other write below a bundle (scenario and study report writes, dataset link writes, replace/) resolves labels when asked, and the bundle GET does too.
So a client asking for labels on a bundle patch silently gets none. Either honour it (pass expand=self.expand, one line, plus a test) or refuse it with the same 400 an unknown expansion gets, by not offering labels on that method.
Found while annotating the endpoints for the OpenAPI reference (#2480); the documentation deliberately does not claim the parameter works there.
- Lenguaje dominante
- Python
- Estrellas
- 65
- Forks
- 28
- Merge medio
- 4 d 7 h
- PR fusionados (30 d)
- 25
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- 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 OpenEnergyPlatform/oeplatform
-
Redesign the database page to support dataset creationPosiblemente ocupada @bmlancien la tomó hace 4 días. Abiertodata-upload
OpenEnergyPlatform/oeplatform#2762 · 1 comentario · 3 asignados ·
Los mantenedores suelen responder en 3 días
-
Improve navigation links in Core Features and Integrated WorkflowsPosiblemente ocupada @tomi-rli la tomó hace 19 días. AbiertoHomepage
OpenEnergyPlatform/oeplatform#2746 · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
Enhance the new OEP homepagePosiblemente ocupada @jh-RLI la tomó hace 19 días. AbiertoHomepage
OpenEnergyPlatform/oeplatform#2745 · 2 asignados ·
Los mantenedores suelen responder en 3 días
-
Display child nodes in the OEO Viewer Graph ViewPosiblemente ocupada @jh-RLI la tomó hace 23 días. Abiertooeo viewer
OpenEnergyPlatform/oeplatform#2739 · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
deployment Infrastructure type: enhancement :gear:
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
OpenEnergyPlatform/oeplatform#2717 ·
Los mantenedores suelen responder en 3 días
Todos los issues de OpenEnergyPlatform/oeplatform
Issues similares
-
needs-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
flashinfer-ai/flashinfer#9803 ·
Los mantenedores suelen responder en 1 día
-
bug frontend good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
oscarbol09/thesisforge#61 ·
-
api bug performance
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
oscarbol09/audiobard#159 ·
-
area:web p2 product:business triage:active type:bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 89/100
cuadrao-ai/argus#2328 ·
Los mantenedores suelen responder en 1 día
-
bug frontend good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
nikhilb2/simple_invoicing#907 ·