OCM-API icon indicating copy to clipboard operation
OCM-API copied to clipboard

Are notifications allowed to have side-effects?

Open michielbdejong opened this issue 5 years ago • 0 comments

A little philosophical question I ran into while writing the test suite:

When Alice shares a resource with Bob, she cannot share it again. If she tries to share it a second time, her GUI will warn her 'Bob already has access'. But if Bob sent back a notification like SHARE_DECLINED or SHARE_REMOVED the that will in practice usually have the side-effect that Alice can share the resource with Bob again.

This suggests that either sharing with someone should be idempotent, or the notifications and their side-effects should be standardised.

michielbdejong avatar Jan 06 '21 13:01 michielbdejong