Skip to content

Conversation

@feltech
Copy link
Member

@feltech feltech commented May 9, 2025

Part of testing TheFoundryVisionmongers/KatanaOpenAssetIO#4.

BAL would error when performing relationship queries with a non-kRead access mode. However, such queries are valid for publishing workflows and so must be supported in order to test host applications.

So add an optional "access" flag that can be added to relationship definitions in the JSON database, overriding the default kRead access, and limiting that relationship to the specific access mode.

Hence no longer error when responding to relationship queries for non-kRead access modes (the default response instead being an empty set of entity references).

Additionally, if a version relationship trait set is specified in the JSON database, then prefer that over the built-in versioning behaviour. A long term goal would be to remove the built-in versioning behaviour in favour of leveraging generic relationship queries (#88). This at least gets us part way there to support some use cases.

Part of testing TheFoundryVisionmongers/KatanaOpenAssetIO#4.

BAL would error when performing relationship queries with a non-`kRead`
access mode. However, such queries are valid for publishing workflows
and so must be supported in order to test host applications.

So add an optional `"access"` flag that can be added to relationship
definitions in the JSON database, overriding the default `kRead` access,
and limiting that relationship to specific access modes.

Hence no longer error when responding to relationship queries for
non-`kRead` access modes (the default response instead being an empty
set of entity references).

Additionally, if a version relationship trait set is specified in the
JSON database, then prefer that over the built-in versioning behaviour.
A long term goal would be to remove the built-in versioning behaviour in
favour of leveraging generic relationship queries (OpenAssetIO#88). This at least
gets us part way there to support some use cases.

Signed-off-by: David Feltell <david.feltell@foundry.com>
@feltech feltech requested a review from hutchinson May 9, 2025 11:19
@feltech feltech self-assigned this May 9, 2025
@feltech feltech requested a review from a team as a code owner May 9, 2025 11:19
@feltech feltech merged commit 5ba44b2 into OpenAssetIO:main May 12, 2025
12 checks passed
@feltech feltech deleted the work/KatanaOpenAssetIO/4-relationshipByAccessAndVersionOverriding branch May 12, 2025 16: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