Skip to content

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

Open
zrgt wants to merge 2 commits intoeclipse-basyx:developfrom
rwth-iat:fix/b7-shells-global-asset-ids
Open

Fix GET /shells?assetIds: multiple globalAssetId values silently returned empty results#512
zrgt wants to merge 2 commits intoeclipse-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

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.

1 participant