Align discovery `GetAllAssetLinksById` and `PostAllAssetLinksById` responses with the specification
メンテナーはふだん 6 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
調査の方向性
server/app/interfaces/discovery.pyの198~213行付近にあるハンドラーを読み、server/test/interfaces/test_discovery.pyのtest_get_unknown_aas_returns_emptyとPOSTテストを確認してください。エンドポイントの動作とアサーションを更新し、指定された404レスポンスと配列レスポンスに一致させてください。また、server/test/docker_integration/test_docker_integration_discovery.pyのtest_asset_links_roundtripも調整してください。これらのテストで両方のレスポンスが仕様に一致することを確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 106
- フォーク
- 67
- 平均マージ
- 3日 18時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-basyx/basyx-python-sdk のほかの issue
-
bug learn-basyx-python server
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
eclipse-basyx/basyx-python-sdk#689 ·
メンテナーはふだん 6 日以内に返信
-
adapter.json, adapter.xml: Falsy Extension and Qualifier values omitted対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
eclipse-basyx/basyx-python-sdk#682 ·
メンテナーはふだん 6 日以内に返信
-
adapter.aasx: Failsafe writer adds duplicate parts for conflicting files対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug learn-basyx-python sdk
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
eclipse-basyx/basyx-python-sdk#671 ·
メンテナーはふだん 6 日以内に返信
-
enhancement learn-basyx-python server
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
eclipse-basyx/basyx-python-sdk#670 ·
メンテナーはふだん 6 日以内に返信
-
adapter.aasx: Missing supplementary file aborts reading with failsafe対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug learn-basyx-python sdk
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
eclipse-basyx/basyx-python-sdk#665 ·
メンテナーはふだん 6 日以内に返信
eclipse-basyx/basyx-python-sdk の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
FAIRmat-NFDI/pynxtools#861 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
NVIDIA/nsight-python#88 ·
メンテナーはふだん 1 日以内に返信
-
Criteria can pass when the deliverable is missing対応中かも @clementtisseau が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
harveyai/harvey-labs#217 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
priority/medium roadmap/v1.1.1 stakeholder/rapr type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
databrickslabs/ontos#1420 ·
メンテナーはふだん 3 日以内に返信