resgateio / resgate

A Realtime API Gateway used with NATS to build REST, real time, and RPC APIs, where all your clients are synchronized seamlessly.
https://resgate.io
MIT License
689 stars 67 forks source link

Referenced resource not included in response if unsubscribed while getting ready #241

Closed jirenius closed 5 months ago

jirenius commented 5 months ago

Issue

When subscribing (directly or indirectly, through a subscribe request or a resource event) to a resource (A) that indirectly references another resource (B) that is already directly or indirectly subscribed, that child resource (B) will not be included in the client response for the subscription of the parent resource (A) if it is unsubscribe while the parent resource (A) is still not ready due to it loading other references.

Example (Simplified without access requests) image

jirenius commented 5 months ago

Resolved in PR #242