Align discovery `GetAllAssetLinksById` and `PostAllAssetLinksById` responses with the specification
Maintainer thường phản hồi trong vòng 6 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
Hướng nghiên cứu
Đọc các handler trong server/app/interfaces/discovery.py quanh dòng 198–213, sau đó kiểm tra test_get_unknown_aas_returns_empty và các bài kiểm tra POST trong server/test/interfaces/test_discovery.py. Cập nhật hành vi của endpoint và các assertion để khớp với phản hồi 404 và phản hồi mảng được chỉ định; đồng thời điều chỉnh test_asset_links_roundtrip trong server/test/docker_integration/test_docker_integration_discovery.py. Hoàn tất khi các bài kiểm tra này xác nhận cả hai phản hồi đều khớp với đặc tả.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 106
- Fork
- 67
- Merge trung bình
- 3 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-basyx/basyx-python-sdk
-
bug learn-basyx-python server
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
eclipse-basyx/basyx-python-sdk#689 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
adapter.json, adapter.xml: Falsy Extension and Qualifier values omittedCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
eclipse-basyx/basyx-python-sdk#682 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
adapter.aasx: Failsafe writer adds duplicate parts for conflicting filesCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug learn-basyx-python sdk
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
eclipse-basyx/basyx-python-sdk#671 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
enhancement learn-basyx-python server
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
eclipse-basyx/basyx-python-sdk#670 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
adapter.aasx: Missing supplementary file aborts reading with failsafeCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug learn-basyx-python sdk
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eclipse-basyx/basyx-python-sdk#665 ·
Maintainer thường phản hồi trong vòng 6 ngày
Tất cả issue của eclipse-basyx/basyx-python-sdk
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
FAIRmat-NFDI/pynxtools#861 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
NVIDIA/nsight-python#88 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Criteria can pass when the deliverable is missingCó thể đã có người làm @clementtisseau đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
harveyai/harvey-labs#217 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
priority/medium roadmap/v1.1.1 stakeholder/rapr type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
databrickslabs/ontos#1420 ·
Maintainer thường phản hồi trong vòng 3 ngày