Skip to content

scoped events: grantee not notified when a resource is shared or unshared #85

@fabracht

Description

@fabracht

Under --scoped-events, when alice shares a diagram with bob, bob receives no event on $DB/u/bob/events/# — he must re-query to discover the newly accessible resource. The same gap applies to unshare (bob is not notified when his access is revoked).

The _shares write emits a change event, but _shares is a Global entity so it broadcasts to $DB/_shares/events/..., which is admin-only by topic protection — a normal grantee never sees it.

Possible approach

On share/unshare, emit a synthetic event to the affected grantee's $DB/u/{grantee}/events/# namespace so clients can react without polling.

Relates to phase 4 (#79) and cluster parity (#75). Follow-up from PR #83 review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions