OpenAssetIO / OpenAssetIO-MediaCreation

OpenAssetIO extensions for use in the Media Creation industry.
Apache License 2.0
12 stars 10 forks source link

[Traits] Remove `ResolvesFutureEntities` trait #68

Closed foundrytom closed 11 months ago

foundrytom commented 11 months ago

The core API will be providing a proper mechanism to introspect this aspect of a managers operation:

https://github.com/OpenAssetIO/OpenAssetIO/issues/1209

Closes #67

This poses the question about what do we want to do in the examples:

foundrytom commented 11 months ago

🤔 mystery option C - how about something like

 # We then check if the manager can tell us where to save the file.
if manager.hasCapability(kResolution):

    working_data = manager.resolve(
           working_ref, TextFileSpecification.kTraitSet,
           ResolveAccess.kWrite, context)
feltech commented 11 months ago

🤔 mystery option C - how about something like

 # We then check if the manager can tell us where to save the file.
if manager.hasCapability(kResolution):

    working_data = manager.resolve(
           working_ref, TextFileSpecification.kTraitSet,
           ResolveAccess.kWrite, context)

With a note that data will be blank if the manager doesn't support it? Though the manager could give an EntityAccessError...