Skip to content

Verify Realtime For Nested Shared Folders #4845

Description

@shepilov

Goal

Ensure shared-drive realtime events are correctly delivered when shared folders are nested.

Related Endpoint

GET /sharings/drives/:id/realtime

Related Code

web/sharings/realtime.go
Ws
wsOwner
wsHijack
wsProxy
filterMapEvents

What we probably need

  1. Keep the existing realtime hub unchanged.
  2. Keep using the shared-drive realtime endpoint.
  3. Verify that filterMapEvents works correctly with nested shared folders.
  4. Add regression tests for parent/child shared-folder realtime delivery.
  5. Only change code if current filtering or authorization blocks a valid nested-sharing case.

Expected Behavior

parent shared folder subscriber:
receives events for files/folders inside the parent tree, including nested child shared folders

child shared folder subscriber:
receives events for files/folders inside the child shared folder

child-only recipient:
does not receive events from parent siblings or parent-only content

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions