Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Realtime Events #2626

Closed
2 tasks done
TheMardy opened this issue Jan 17, 2022 · 1 comment
Closed
2 tasks done

🐛 Bug Report: Realtime Events #2626

TheMardy opened this issue Jan 17, 2022 · 1 comment
Assignees
Labels
api / realtime Fixes and upgrades for the Appwrite Realtime API. bug Something isn't working product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services.

Comments

@TheMardy
Copy link
Contributor

👟 Reproduction steps

3 unexpected Results with realtime events, unsure if it is expected behavior:

  1. Have an active session and realtime subscription to teams, create a team.

  2. Have an active session and realtime subscription to memberships, update team membership status.

  3. Have an active session and realtime subscription to account, delete all sessions

👍 Expected behavior

  1. Realtime teams.create event is sent to the owner when he creates a team using the client SDK

  2. Realtime teams.memberships.update.status event is sent to the member updating the status, and the team owner(s) when the member updates his membership status using the client SDK

  3. Realtime account.session.delete event is sent to the user when he deletes all sessions using the client sdk (sdk.account.deleteSessions())

👎 Actual Behavior

  1. Realtime teams.create event is not sent to the owner when he creates a team using the client SDK (I could imagine this is expected as the owner is not yet in the team the moment it is created)

  2. Realtime teams.memberships.update.status event is not sent to the member updating the status, nor the team owner when the member updates his membership status using the client SDK

  3. Realtime account.session.delete event is not sent to the user when he deletes all sessions using the client sdk (sdk.account.deleteSessions()), but it is sent when deleting the single current session.

🎲 Appwrite version

Version 0.12.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@TheMardy TheMardy added the bug Something isn't working label Jan 17, 2022
@TorstenDittmann TorstenDittmann self-assigned this Feb 9, 2022
@stnguyen90 stnguyen90 added product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services. api / realtime Fixes and upgrades for the Appwrite Realtime API. labels Jan 19, 2023
@stnguyen90
Copy link
Contributor

I can confirm membership updates and creating a team works:
image

I can also confirm a session delete occurs:
image

That said, there is an improvement in progress to fire multiple events for the delete session endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api / realtime Fixes and upgrades for the Appwrite Realtime API. bug Something isn't working product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services.
Projects
None yet
Development

No branches or pull requests

3 participants