Skip to content

Fix GET /shells?assetIds: multiple globalAssetId values silently returned empty results#512

Merged
s-heppner merged 3 commits into
eclipse-basyx:developfrom
rwth-iat:fix/b7-shells-global-asset-ids
May 18, 2026
Merged

Fix GET /shells?assetIds: multiple globalAssetId values silently returned empty results#512
s-heppner merged 3 commits into
eclipse-basyx:developfrom
rwth-iat:fix/b7-shells-global-asset-ids

Conversation

@zrgt
Copy link
Copy Markdown
Contributor

@zrgt zrgt commented May 5, 2026

Fixes #500

Changes

  • Remove the len(global_asset_ids) <= 1 guard in _get_shells: when 2+ globalAssetId values were passed the condition was always False, returning HTTP 200 with an empty list
  • AAS Part 2 specifies assetIds as a list — OR-matching against global_asset_id in global_asset_ids is the correct behavior
  • Add test_multiple_global_asset_ids_returns_matching_results unit test

@s-heppner
Copy link
Copy Markdown
Member

Can resolve the conflicts on this PR please?

Keep both tests: test_multiple_global_asset_ids_returns_matching_results (PR fix)
and test_malformed_asset_id_missing_field_returns_400 (from develop). Use shared
BASE_PATH constant for both.
@zrgt zrgt requested a review from s-heppner May 17, 2026 17:37
@s-heppner s-heppner merged commit 5535d53 into eclipse-basyx:develop May 18, 2026
13 checks passed
@s-heppner s-heppner deleted the fix/b7-shells-global-asset-ids branch May 18, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants