appwrite / appwrite

Your backend, minus the hassle.
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
45.17k stars 4k forks source link

šŸ› Bug Report: Realtime event not getting send when child relation is updated/established #5451

Open PaulDotterer opened 1 year ago

PaulDotterer commented 1 year ago

šŸ‘Ÿ Reproduction steps

I have two collections, chats and messages, with two way relation attributes between them. One Chat can contain many messages, one message can contain one chat.

When subscribing to a chat document no event gets send to the client when a message with a relation to that chat is created. The relation gets updated inside the chat document.

I don't know if this is expected behaiviour, i cloud now find anything related to that inside docs.

šŸ‘ Expected behavior

Fire a realtime update event when a message gets added to the chat document via relation

šŸ‘Ž Actual Behavior

Realtime event only gets triggerd when message is created without a relation to a chat document and then chat is updated to establish the relation with the message

šŸŽ² Appwrite version

Version 1.3.x

šŸ’» Operating system

MacOS

šŸ§± Your Environment

SvelteKit

šŸ‘€ Have you spent some time to check if this issue has been raised before?

šŸ¢ Have you read the Code of Conduct?

joeyouss commented 1 year ago

Hi - mentioning @abnegate here for feedback on this. This is a beta feature and we have more iterations planned!