Commit graph

352 commits

Author SHA1 Message Date
Damodar Lohani
343d443903 Fix realtime 2025-11-05 05:31:17 +00:00
Damodar Lohani
dff7aa6ce0 format 2025-11-04 07:12:42 +00:00
Damodar Lohani
df1f14c853 Refactor realtime 2025-11-04 05:25:20 +00:00
Damodar Lohani
68cce71527 refactor realtime 2025-11-04 05:22:18 +00:00
shimon
9e79d883a0 Refactor authorization retrieval in realtime and update imports in migration files; clean up whitespace in tests 2025-10-28 14:16:26 +02:00
shimon
33f88fa5e0 Refactor authorization handling across multiple modules to use the new getAuthorization() method. Update CHANGES.md to reflect the change in usage worker authorization. Adjust composer.json to specify the correct version for utopia-php/database. Update plugin-api-version in composer.lock. 2025-10-22 16:35:48 +03:00
Jake Barnby
ddde13a78f
Revert "Merge pull request #10468 from appwrite/feat-apps-module-dl"
This reverts commit 9dd1939d1f, reversing
changes made to 8dfdfcb522.

# Conflicts:
#	app/config/collections/common.php
#	app/controllers/api/users.php
#	app/init/resources.php
#	composer.lock
2025-10-21 14:59:30 +13:00
Damodar Lohani
d56dff954f Merge remote-tracking branch 'origin/1.8.x' into feat-apps-module-dl 2025-10-12 00:34:07 +00:00
Darshan
1c6b56385c fix: code 0 from databases. 2025-10-10 18:26:00 +05:30
Darshan
02b982f3a1 update: code fallback! 2025-10-06 09:57:54 +05:30
Darshan
236585c20b fix: sanitize 5xx errors on realtime when running in production. 2025-10-04 18:38:35 +05:30
Damodar Lohani
2be8895dfd Merge remote-tracking branch 'origin/1.8.x' into feat-apps-module-dl 2025-09-10 03:56:34 +00:00
Chirag Aggarwal
db56361ad9 fix: add back empty checks 2025-06-30 19:48:05 +05:30
Chirag Aggarwal
8a2ccd32b4 fix: remove redundant check 2025-06-30 19:09:15 +05:30
Chirag Aggarwal
dbc58655b2 Merge branch '1.7.x' into feat-exp-scheme 2025-06-25 07:53:28 +05:30
Christy Jacob
b5c5f76acc Merge branch '1.7.x' of github.com:appwrite/appwrite into feat-apps-module 2025-06-20 17:39:28 +04:00
Jake Barnby
3729c6b1c2
Cast sequence 2025-06-16 13:24:48 -04:00
Jake Barnby
86f7489640
Internal ID -> sequence 2025-05-26 17:42:11 +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
c759f9ec11
Revert "Feat pool adapter" 2025-04-30 23:24:54 +12:00
Jake Barnby
6e59859f5c
AI review fixes 2025-04-30 21:18: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
100870557b
Use cache pool adapter 2025-04-17 16:50:13 +12:00
loks0n
2427f950b5 fix: realtime 2025-04-14 14:34:22 +01:00
Jake Barnby
5b843015b0
Realtime scope pool use 2025-03-28 16:43:17 +13:00
Eldad Fux
b2b20c48b3 Fixed tests 2025-03-18 22:12:03 +01:00
Eldad Fux
8cb85cafbd Fixes realtime tests 2025-03-18 20:24:38 +01:00
Eldad Fux
afb40218d7 Fixed tests 2025-03-18 16:12:13 +01:00
Eldad Fux
a5e57a9a67 Work in progress, moving to instance based auth 2025-03-16 18:54:55 +01:00
Fabian Gruber
1bc419b6a1 feat(swoole): allow configuration override of available cpus 2025-01-06 13:48:01 +01:00
Christy Jacob
50601bd454 chore: use redis adapter for abuse 2024-12-20 20:14:50 +05:30
Christy Jacob
b97dea7996
Revert "chore: initial commit" 2024-12-19 20:27:54 +05:30
Christy Jacob
5a9dbe9c80 chore: fix realtime test 2024-12-18 20:06:24 +05:30
Christy Jacob
599cc5e19a chore: review comments 2024-12-18 15:57:04 +05:30
Christy Jacob
77a8c27153 chore: fix realtime tests 2024-12-18 13:26:31 +05:30
Christy Jacob
01393faf0b feat: update abuse library 2024-12-18 11:58:34 +05:30
Christy Jacob
ed918e1748 Merge branch '1.6.x' of github.com:appwrite/appwrite into migrate-to-redis-abuse 2024-12-17 10:09:00 +05:30
Christy Jacob
801f311faf feat: cleanup 2024-12-17 10:08:16 +05:30
Christy Jacob
ee05f3d3bc feat: migrate to redis abuse 2024-12-17 09:49:31 +05:30
Christy Jacob
396faa56c2 chore: initial commit 2024-12-17 08:21:38 +05:30
Fabian Gruber
6e4b365992 fix(realtime): decrement connectionCounter only if connection is known 2024-12-02 10:39:38 +01:00
Fabian Gruber
f0b6c729c9 feat: add more tags to sentry 2024-11-26 16:13:55 +01:00
Christy Jacob
f490d4edaf
Merge pull request #8797 from appwrite/feat-migration
Feat migration
# Conflicts:
#	composer.lock
2024-11-21 14:08:20 +13:00
Fabian Gruber
8124f6998e feat: add telemetry 2024-11-13 13:52:41 +01:00
Torsten Dittmann
cddd16b753 Merge branch '1.6.x' of https://github.com/appwrite/appwrite into feat-realtime-ping-pong 2024-11-07 13:10:23 +01:00
Torsten Dittmann
f91f382baf style: remove unnecessary comment 2024-11-07 12:08:11 +01:00
Torsten Dittmann
4ee9e9730f feat: realtime ping pong 2024-11-07 12:05:37 +01:00
Fabian Gruber
b410b17ba6 feat: redis-cluster support 2024-11-06 12:27:03 +01:00
Jake Barnby
8bc37026cd
Revert "Feat adding coroutines" 2024-10-08 20:54:40 +13:00
Binyamin Yawitz
16835f96bf
chore: merge 2024-10-07 11:02:18 -04:00
fogelito
e1a772fd3e Merge branch '1.6.x' of https://github.com/appwrite/appwrite into migrations-backups 2024-10-01 21:45:10 +03:00
Binyamin Yawitz
d14edf4207
reverting: to set coroutines as head 2024-10-01 10:30:47 -04:00
Damodar Lohani
d4b480b014
catch error pushing error logs everywhere 2024-09-26 16:36:51 +05:45
Jake Barnby
c4b742ac0d
Allow overriding realtime instance 2024-09-09 20:52:37 +12:00
fogelito
d8148c5491 Change TimeLimit namespace 2024-08-25 11:19:25 +03:00
Jake Barnby
d2c7be19d0
Update database stack 2024-08-21 17:31:13 +12:00
Steven Nguyen
80769a0b65
fix(realtime): unsubscribe before resubscribing on permission change
Unsubcribe to remove subscriptions related to the old permissions.
2024-07-19 00:06:14 +00:00
Jake Barnby
e74a5cbf6e
Remove detailed trace from error logs 2024-07-09 15:15:03 +12:00
Jake Barnby
9e487b8ccf
Revert "Merge pull request #8237 from appwrite/revert-8193-feat-remove-random-shared-tables"
This reverts commit 930ae6ded0, reversing
changes made to 1f6417b156.
2024-06-06 20:11:19 +12:00
Christy Jacob
ff6efc2855
Revert "Feat remove random shared tables" 2024-06-06 00:11:56 +05:30
Jake Barnby
e19b465ce2
Move shared tables db to env var from const 2024-05-24 20:10:47 +12:00
Jake Barnby
75d6a7e2a0
Wrap realtime stats in an edition check 2024-05-24 16:34:43 +12:00
Steven Nguyen
e5f49b420c
fix(realtime): handle SQL error code 'HY000'
SQL can throw an error where the code is a string like 'HY000', but
$server->close() expects an integer. This change ensures we only pass
an integer into $server->close().
2024-05-09 05:55:34 +00:00
Steven Nguyen
fa78ae078f
fix(realtime): disable sending realtime stats
Disable sending realtime stats because the $database->find('realtime')
is throwing:

> Cannot execute queries while other unbuffered queries are active.

In addition, the realtime stats are not being collected so there's no
point in having this enabled.
2024-05-08 21:37:46 +00:00
Jake Barnby
912e3b01dc
Add clarifying comments 2024-05-07 14:07:04 +12:00
Jake Barnby
52c52fa519
Add scheme to DSN on fail 2024-05-06 18:13:41 +12:00
Jake Barnby
db94070162
Use DSN for project database 2024-05-06 17:33:36 +12:00
Jake Barnby
c4deb0ba93
Allow shared tables namespace override 2024-05-03 21:30:38 +12:00
Jake Barnby
b2e956a14d
Merge remote-tracking branch 'origin/refactor-usage-sn' into feat-isolation-modes
# Conflicts:
#	.gitignore
#	app/cli.php
#	app/controllers/api/account.php
#	app/controllers/api/databases.php
#	app/controllers/api/projects.php
#	app/controllers/general.php
#	app/controllers/shared/api.php
#	app/init.php
#	app/realtime.php
#	app/worker.php
#	composer.json
#	composer.lock
#	src/Appwrite/Platform/Tasks/DeleteOrphanedProjects.php
#	src/Appwrite/Platform/Tasks/GetMigrationStats.php
#	src/Appwrite/Platform/Workers/Databases.php
#	src/Appwrite/Platform/Workers/Deletes.php
#	src/Appwrite/Platform/Workers/Hamster.php
#	tests/e2e/General/HTTPTest.php
#	tests/e2e/Services/Databases/DatabasesCustomServerTest.php
#	tests/e2e/Services/Projects/ProjectsConsoleClientTest.php
2024-04-30 19:40:47 +12:00
Matej Bačo
2551cf6fb1 Merge branch 'refactor-usage-sn' into refactor-usage-sn-1.5.x 2024-04-17 17:56:31 +02:00
Jake Barnby
f95800de73
Revert connection changes 2024-04-12 14:37:15 +12:00
Jake Barnby
4bef6125f7
Use on worker stop to properly reclaim realtime redis connections and unsubscribe 2024-04-09 17:05:44 +12:00
Jake Barnby
899bba64d1
Add try/catch/reclaim around sending stats 2024-04-08 14:55:41 +12:00
Jake Barnby
fc4cbb8174
Move getConsole tick inside try/catch 2024-04-08 14:40:51 +12:00
Jake Barnby
293d85525c
Fix on message db resource fetch 2024-04-08 13:43:53 +12:00
Jake Barnby
2452d3a479
Reclaim only the used connection for realtime 2024-04-04 18:57:33 +13:00
Khushboo Verma
f66a65f27b Comment timer tick 2024-04-03 22:54:14 +05:30
Matej Bačo
d091b37a15 Merge branch 'refactor-usage-sn' into refactor-usage-sn-1.5.x 2024-04-02 18:42:17 +02:00
Eldad Fux
beda5293b4 Fix format 2024-04-01 13:08:46 +02:00
Eldad Fux
8ed1da4ea8 Updated getEnv to use system lib 2024-04-01 13:02:47 +02:00
Christy Jacob
f8c44c8a50 chore: linter 2024-03-29 10:18:33 +00:00
Matej Bačo
440d924518 Allow getCache override 2024-03-20 14:14:23 +01:00
Matej Bačo
2ae9d0b710 Make realtime resources configurable 2024-03-20 13:47:20 +01:00
Torsten Dittmann
fc028b953e fix: formatter 2024-03-08 00:30:23 +01:00
Torsten Dittmann
f51c39cd2b Merge branch 'main' of https://github.com/appwrite/appwrite into 1.5.x 2024-03-08 00:30:02 +01:00
Jake Barnby
664df69a5f
Fix method refs 2024-03-07 17:49:59 +01:00
Jake Barnby
8a73203635
Revert debugs 2024-03-07 14:52:13 +01:00
Jake Barnby
1ffb80f2f7
Fix realtime db 2024-03-07 10:37:57 +01:00
Torsten Dittmann
0a1d572c72 chore: run formatter 2024-03-06 18:34:21 +01:00
Khushboo Verma
d3b0b00917 Allow users to disable APIs 2024-03-04 23:12:54 +01:00
Matej Bačo
39997c817f Fix failing tests 2024-01-15 14:37:47 +00:00
Jake Barnby
cb03ad1a15
Merge pull request #7003 from appwrite/feat-query-metadata
Feat query metadata
2023-10-27 12:52:34 +13:00
Jake Barnby
89236955fb
Fix setting metadata 2023-10-26 22:28:23 +13:00
Torsten Dittmann
fbcbd0d430 feat: realtime error handling 2023-10-24 14:32:22 +02:00
Jake Barnby
bb0744842d
Set metadata for all database instantiations 2023-10-18 16:21:10 +13:00
Steven Nguyen
a13b7606a2
Fix console db namespace 2023-08-21 15:53:30 -07:00
Damodar Lohani
171f30adb1 Merge remote-tracking branch 'origin/master' into feat-db-pools-master-sync 2023-02-16 00:29:37 +00:00
Jake Barnby
f6fc9a8d8c
Merge remote-tracking branch 'origin/master' into feat-technical-debt-2
# Conflicts:
#	composer.lock
2023-02-14 14:22:08 +13:00
Damodar Lohani
e70408094a Merge remote-tracking branch 'origin/master' into feat-db-pools-master-sync 2023-01-25 10:38:29 +00:00