Align discovery `GetAllAssetLinksById` and `PostAllAssetLinksById` responses with the specification
I maintainer di solito rispondono entro 6 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
Direzione di ricerca
Leggi gli handler in server/app/interfaces/discovery.py intorno alle righe 198–213, poi esamina test_get_unknown_aas_returns_empty e i test POST in server/test/interfaces/test_discovery.py. Aggiorna il comportamento dell’endpoint e le asserzioni in modo che corrispondano alla risposta 404 e alla risposta array specificate; modifica anche test_asset_links_roundtrip in server/test/docker_integration/test_docker_integration_discovery.py. Il lavoro è concluso quando questi test confermano che entrambe le risposte corrispondono alla specifica.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 106
- Fork
- 67
- Merge medio
- 3g 18h
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun 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 eclipse-basyx/basyx-python-sdk
-
bug learn-basyx-python server
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
eclipse-basyx/basyx-python-sdk#689 ·
I maintainer di solito rispondono entro 6 giorni
-
adapter.json, adapter.xml: Falsy Extension and Qualifier values omittedForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
eclipse-basyx/basyx-python-sdk#682 ·
I maintainer di solito rispondono entro 6 giorni
-
adapter.aasx: Failsafe writer adds duplicate parts for conflicting filesForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug learn-basyx-python sdk
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
eclipse-basyx/basyx-python-sdk#671 ·
I maintainer di solito rispondono entro 6 giorni
-
enhancement learn-basyx-python server
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
eclipse-basyx/basyx-python-sdk#670 ·
I maintainer di solito rispondono entro 6 giorni
-
adapter.aasx: Missing supplementary file aborts reading with failsafeForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug learn-basyx-python sdk
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
eclipse-basyx/basyx-python-sdk#665 ·
I maintainer di solito rispondono entro 6 giorni
Tutte le issue di eclipse-basyx/basyx-python-sdk
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
FAIRmat-NFDI/pynxtools#861 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
NVIDIA/nsight-python#88 ·
I maintainer di solito rispondono entro 1 giorno
-
Criteria can pass when the deliverable is missingForse già presa @clementtisseau l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
harveyai/harvey-labs#217 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
priority/medium roadmap/v1.1.1 stakeholder/rapr type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
databrickslabs/ontos#1420 ·
I maintainer di solito rispondono entro 3 giorni