Align discovery `GetAllAssetLinksById` and `PostAllAssetLinksById` responses with the specification
Los mantenedores suelen responder en 6 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
Lee los handlers en server/app/interfaces/discovery.py alrededor de las líneas 198–213 y luego inspecciona test_get_unknown_aas_returns_empty y las pruebas POST en server/test/interfaces/test_discovery.py. Actualiza el comportamiento del endpoint y las aserciones para que coincidan con la respuesta 404 y la respuesta de array especificadas; ajusta también test_asset_links_roundtrip en server/test/docker_integration/test_docker_integration_discovery.py. El trabajo estará terminado cuando estas pruebas confirmen que ambas respuestas coinciden con la especificación.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Currently, two endpoints of the Discovery API respond differently from the specification (IDTA-01002 v3.1.1, DiscoveryServiceSpecification/V3.1_SSP-001.yaml):
GET /lookup/shells/{aasIdentifier}responds with200and an empty list if no asset links exist for the AAS. The specification
defines the payload ofGetAllAssetLinksByIdwith cardinality1..*and lists404as a response, so the server should respond
with404instead.POST /lookup/shells/{aasIdentifier}responds with an object that maps the AAS identifier to its asset links, e.g.
{"<aasId>": [...]}. The OpenAPI file defines the201response body ofPostAllAssetLinksByIdas a plain array of
SpecificAssetId, so the server should return the array only.
See the handlers:
The tests currently assert the deviating behavior and need to be adapted:
test_get_unknown_aas_returns_emptyinserver/test/interfaces/test_discovery.py, which already notes that the specification allows404.- The
POSTtests inAssetLinksByIdEndpointTest, which read the links frombody[self.AAS_ID]. test_asset_links_roundtripinserver/test/docker_integration/test_docker_integration_discovery.py, which expects200and[]fromGETafterDELETE.
- Lenguaje dominante
- Python
- Estrellas
- 106
- Forks
- 67
- Merge medio
- 3 d 18 h
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 eclipse-basyx/basyx-python-sdk
-
bug learn-basyx-python server
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
eclipse-basyx/basyx-python-sdk#689 ·
Los mantenedores suelen responder en 6 días
-
adapter.json, adapter.xml: Falsy Extension and Qualifier values omittedPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
eclipse-basyx/basyx-python-sdk#682 ·
Los mantenedores suelen responder en 6 días
-
adapter.aasx: Failsafe writer adds duplicate parts for conflicting filesPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug learn-basyx-python sdk
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
eclipse-basyx/basyx-python-sdk#671 ·
Los mantenedores suelen responder en 6 días
-
enhancement learn-basyx-python server
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
eclipse-basyx/basyx-python-sdk#670 ·
Los mantenedores suelen responder en 6 días
-
adapter.aasx: Missing supplementary file aborts reading with failsafePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug learn-basyx-python sdk
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
eclipse-basyx/basyx-python-sdk#665 ·
Los mantenedores suelen responder en 6 días
Todos los issues de eclipse-basyx/basyx-python-sdk
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
FAIRmat-NFDI/pynxtools#861 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
NVIDIA/nsight-python#88 ·
Los mantenedores suelen responder en 1 día
-
Criteria can pass when the deliverable is missingPosiblemente ocupada @clementtisseau la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
harveyai/harvey-labs#217 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
priority/medium roadmap/v1.1.1 stakeholder/rapr type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
databrickslabs/ontos#1420 ·
Los mantenedores suelen responder en 3 días