OpenAssetIO / OpenAssetIO-Manager-BAL

A contrived "asset management system" for OpenAssetIO integration test cases.
Apache License 2.0
9 stars 6 forks source link

Validate entity traits on publish #92

Closed feltech closed 5 months ago

feltech commented 10 months ago

What

Following on from https://github.com/OpenAssetIO/OpenAssetIO-Manager-BAL/issues/89. Error if attempting to preflight/register to an existing entity with a different trait set.

Why

Currently BAL creates new versions of entities with whatever traits it's provided, even if they're completely different than the previous version of the entity. This doesn't seem very representative, and is inconsistent with the implementation of entityTraits.

feltech commented 5 months ago

This is done via https://github.com/OpenAssetIO/OpenAssetIO-Manager-BAL/issues/90 - preflight and register now error if managementPolicy or entityTraits indicates that the trait set is invalid/unsupported for the entity.