OpenAssetIO / OpenAssetIO-Manager-BAL

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

Support entity access policies #90

Closed foundrytom closed 3 months ago

foundrytom commented 7 months ago

What

Allow the BAL library to define that specific entities are read-only/write only and disallow publishing

Why

Allows that branch of OpenAssetIO api contracts to be tested

ACs

foundrytom commented 6 months ago

The main idea here is that making existing entities read-only per-se is prohibitive, and not a pattern we want to encourage (imaging opening a work file, making a change, then republishing). If you couldn't just republish to the existing entity, you'd need some overly complex getWithRelationship dance.

feltech commented 4 months ago

Note that a prior simple addition to support access modes in resolve #98 has a bug, in that supported_access_modes does not propagate to newly published versions, so once an entity is published it becomes kRead-only.

It's likely this existing mechanism will be rewritten as part of this issue, so not creating a separate bug report.