Commit graph

111 commits

Author SHA1 Message Date
ArnabChatterjee20k
6afb5ccf10 updated the comments 2026-02-09 13:08:02 +05:30
ArnabChatterjee20k
4b3c4323ee Enhance reserved parameter handling in Realtime adapter and update related tests 2026-02-09 13:07:11 +05:30
ArnabChatterjee20k
81f4d10ad6 Enhance Realtime channel handling for project queries and improve test coverage 2026-02-09 11:48:04 +05:30
Jake Barnby
1d94e60a37
Merge branch '1.8.x' into fix-realtime-performance 2026-02-05 09:54:42 +00:00
Jake Barnby
765d334674 fix: Return null instead of empty array for non-matching queries
RuntimeQuery::filter() now returns null when the query doesn't match,
instead of an empty array. This distinguishes between "no match" and
"match with empty payload", fixing the issue where subscriptions with
empty payloads weren't being delivered.

Updated Realtime::getSubscribers() to check for null instead of using
!empty(), and updated all tests to expect null for non-matches.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 22:08:43 +13:00
Jake Barnby
3e31094e1e fix: Fix unit test failures for RuntimeQuery and Messaging tests
- Add missing isSelectAll() method to RuntimeQuery class
- Update RuntimeQueryTest to use compile() before filter() since filter()
  expects pre-compiled query arrays, not Query objects
- Remove incorrect break statement in Realtime::getSubscribers() that was
  stopping iteration after the first matching channel, causing subscribers
  to not be found for subsequent channels
- Use local variable $subscriptionsByChannel to avoid unused variable warning

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 21:57:00 +13:00
ArnabChatterjee20k
96ea3391d3
Merge branch '1.8.x' into realtime-query-subscriptions 2026-02-05 13:01:28 +05:30
Jake Barnby
ecf0a1ec67 Avoid closures on hot path 2026-02-05 18:47:49 +13:00
Chirag Aggarwal
ce49b8ecb8
Merge pull request #11239 from appwrite/upgrade-utopia-queue 2026-02-04 15:25:56 +05:30
Chirag Aggarwal
579f07f8bb fix unit test 2026-02-04 14:30:24 +05:30
Jake Barnby
cdd2be175f Pre-parse queries 2026-02-04 19:27:57 +13:00
Jake Barnby
2f5e5d384f Array push on hot loop 2026-02-04 19:27:18 +13:00
ArnabChatterjee20k
f82662e84e added dot escaping fix for channel names 2026-02-03 18:33:35 +05:30
Jake Barnby
952f209a44
Merge pull request #11202 from appwrite/realtime-query-subscriptions 2026-02-03 11:44:13 +00:00
ArnabChatterjee20k
0528c0d693 updated the case for select all and empty payload 2026-02-03 14:29:34 +05:30
ArnabChatterjee20k
4319612358 updated unit tests 2026-02-03 14:16:35 +05:30
ArnabChatterjee20k
a10fbc64c7 updated subscription after permission change 2026-02-03 13:46:05 +05:30
ArnabChatterjee20k
d18d4d8263 updated subscription process 2026-02-03 11:43:23 +05:30
ArnabChatterjee20k
10e971aded updated tests and empty subscriptionsid issue 2026-02-03 10:46:01 +05:30
Chirag Aggarwal
6c4394947f Fix Safe PHP deprecation warnings 2026-02-03 10:11:12 +05:30
ArnabChatterjee20k
3c2f0cc982 updated to new slot based filtering for realtime 2026-02-02 21:50:23 +05:30
ArnabChatterjee20k
6e576b5140 added realtime query new channel and channel wise filters 2026-02-02 19:45:21 +05:30
ArnabChatterjee20k
cbe13d71f1 removed redundant key 2026-01-28 19:04:42 +05:30
ArnabChatterjee20k
b785dea7ac added query per subscription and queryKeys along with the messages 2026-01-28 18:40:30 +05:30
ArnabChatterjee20k
b9c7c172ad updated query conversion for nested query 2026-01-16 18:18:24 +05:30
ArnabChatterjee20k
da871635d9 Fix namespace import for RuntimeQuery class and update test file accordingly 2026-01-16 16:16:03 +05:30
ArnabChatterjee20k
3b4196735a refactor: simplify query handling in Realtime adapter and enhance error messaging for unsupported queries 2025-12-24 21:02:03 +05:30
ArnabChatterjee20k
7e315f79cc refactor: improve query handling in Realtime adapter and update RuntimeQuery filter logic 2025-12-24 20:50:05 +05:30
ArnabChatterjee20k
336bd44826 fixed payload in adapter 2025-12-24 20:10:00 +05:30
ArnabChatterjee20k
b7e2606b9f Enhance Realtime functionality with query support and improve tests
- Updated Realtime adapter to handle queries during subscription.
- Added query filtering capabilities in RuntimeQuery class.
- Modified RealtimeBase and RealtimeCustomClientTest to support query parameters in WebSocket connections.
- Improved test coverage for account and database channels with queries.
2025-12-22 18:01:00 +05:30
ArnabChatterjee20k
eeebea1dbb added both collection and table id in the realtime 2025-10-06 20:13:36 +05:30
Darshan
1ac22c0ae0 Merge branch '1.8.x' into 'database-aliases'. 2025-06-11 12:36:33 +05:30
Darshan
fcdddf7bf0 address comments. 2025-06-11 12:21:48 +05:30
Jake Barnby
3ec0f08db1
Merge remote-tracking branch 'origin/1.6.x' into feat-sync-1.6.x
# Conflicts:
#	composer.lock
#	src/Appwrite/Messaging/Adapter/Realtime.php
#	src/Appwrite/Platform/Workers/Deletes.php
2025-05-21 20:15:08 +12:00
Jake Barnby
16b2449787
Revert "Merge pull request #9703 from appwrite/revert-9659-feat-pool-adapter"
This reverts commit bf9deb09f5, reversing
changes made to d312fe22ff.

# Conflicts:
#	app/cli.php
#	app/init/registers.php
#	composer.lock
#	src/Appwrite/Messaging/Adapter/Realtime.php
#	src/Appwrite/Platform/Tasks/ScheduleBase.php
#	src/Appwrite/Platform/Tasks/ScheduleExecutions.php
#	src/Appwrite/Platform/Tasks/ScheduleFunctions.php
#	src/Appwrite/Platform/Tasks/ScheduleMessages.php
2025-05-14 18:14:07 +12:00
Jake Barnby
3e914a4f1b
Revert name merge issue 2025-05-14 16:42:36 +12:00
Darshan
a807dd97d9 fix: realtime events. 2025-05-09 14:47:01 +05:30
Darshan
f2f23be648 update: events, errors, realtime. 2025-05-07 14:11:28 +05:30
Darshan
ee117b816a manage: events and channels. 2025-05-07 10:33:54 +05:30
Darshan
d70d001f5a add: backported channels. 2025-05-06 12:52:05 +05:30
Darshan
3a8f097c17 fix: realtime channels; update: row model. 2025-05-06 11:31:05 +05:30
Jake Barnby
c759f9ec11
Revert "Feat pool adapter" 2025-04-30 23:24:54 +12:00
Jake Barnby
5fc2c1ceb8
Fix registry ref 2025-04-30 10:34:24 +12:00
Jake Barnby
e643e7a406
Lint 2025-04-29 21:33:51 +12:00
Jake Barnby
4d92af5ba6
Realtime pool adapters 2025-04-29 21:28:40 +12:00
Jake Barnby
a9e953d840
Lint 2025-04-28 22:02:31 +12:00
Jake Barnby
6caa347b26
Merge remote-tracking branch 'origin/1.6.x' into feat-pool-adapter
# Conflicts:
#	composer.lock
#	src/Appwrite/Messaging/Adapter/Realtime.php
2025-04-28 21:56:45 +12:00
Darshan
949f58522d change: events system. 2025-04-27 10:33:44 +05:30
Matej Bačo
d8103cb57e Merge branch '1.7.x' into 1.6.x 2025-04-25 12:18:04 +02:00
Fabian Gruber
fe28af292b feat: allow non-critical events to ignore exceptions when enqueuing the message 2025-04-23 16:48:09 +02:00