1
0
Fork 0
mirror of synced 2024-07-05 22:51:24 +12:00
Commit graph

239 commits

Author SHA1 Message Date
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
Christy Jacob 0a98ad6042 Merge branch 'master' of https://github.com/appwrite/appwrite into fix-4446-updated-timestamp-format-to-ISO-in-realtime-payload 2023-01-20 09:51:19 +00:00
fogelito 8ade726932 Changing Role + Permissions namespace 2022-12-14 18:04:06 +02:00
fogelito f96128e14f Changing Id 2022-12-14 17:42:25 +02:00
Christy Jacob 080abbbb79 Merge branch 'master' of github.com:appwrite/appwrite into feat-add-console 2022-11-17 20:26:10 +05:30
Jake Barnby c4bbf08d52
Revert realtime from workerPools -> pools 2022-11-16 20:20:08 +13:00
Jake Barnby 860f077787
Use separate registry entry for worker pools 2022-11-16 12:50:37 +13:00
Torsten Dittmann 7288520f38 fix: realtime console project 2022-11-15 13:30:18 +01:00
Jake Barnby cca33c6c5d
Remove redundant import 2022-11-15 20:39:41 +13:00
Bradley Schofield 0b883df5ec Fix Tests 2022-11-14 09:42:18 +00:00
Bradley Schofield 66b805829c Move authDuration into auths attribute in project 2022-11-14 09:30:45 +00:00
Jake Barnby 6d1ae05b64
Fix registry usages 2022-11-14 11:42:35 +13:00
Jake Barnby 702bb413dc
Merge remote-tracking branch 'origin/feat-mysql-test' into feat-realtime-dbpools
# Conflicts:
#	.env
#	app/config/variables.php
#	app/init.php
#	app/realtime.php
#	composer.lock
2022-11-14 11:21:58 +13:00
Jake Barnby ee69a306a9
Merge remote-tracking branch 'origin/fix-realtime-connections' into feat-cloud-jake 2022-11-10 13:26:19 +13:00