276 Commits

Author SHA1 Message Date
Binyamin Yawitz 5512340cdd Revert "Feat eldad4 coroutines" 2024-09-20 12:30:05 -04:00
Binyamin Yawitz fe7f39d7a5 fix: reviews 2024-09-19 13:48:15 -04:00
Binyamin Yawitz 557eefe2c4 review: addressing 2024-09-05 18:06:41 -04:00
Binyamin Yawitz fbb23b227b refactor: global to registry 2024-09-05 13:20:44 -04:00
Binyamin Yawitz 5d70884e6c chore: cleaning 2024-09-05 13:11:39 -04:00
Binyamin Yawitz cedf3cf28d chore: format 2024-09-03 19:32:30 -04:00
Binyamin Yawitz 7d6eac4ddb Merge branch '1.6.x' into feat-eldad4-coroutines
# Conflicts:
#	app/cli.php
#	app/controllers/api/account.php
#	app/controllers/api/functions.php
#	app/controllers/api/projects.php
#	app/controllers/general.php
#	app/controllers/shared/api.php
#	app/http.php
#	app/init.php
#	app/realtime.php
#	app/worker.php
#	composer.json
#	composer.lock
#	src/Appwrite/Migration/Migration.php
#	src/Appwrite/Platform/Tasks/Migrate.php
#	src/Appwrite/Platform/Tasks/ScheduleExecutions.php
#	src/Appwrite/Platform/Workers/Builds.php
#	src/Appwrite/Platform/Workers/Deletes.php
#	src/Appwrite/Specification/Format/Swagger2.php
#	src/Appwrite/Utopia/Response.php
2024-09-03 19:06:48 -04:00
Binyamin Yawitz 5cdb8388a1 chore: versions update 2024-08-23 13:02:54 -04:00
Matej Bačo d5db9253cd Fix breaking changes in lib 2024-08-16 11:25:01 +00:00
Binyamin Yawitz b884059ecd refactor: Making sure database names remains the same as previous versions 2024-07-29 12:29:21 -04:00
Binyamin Yawitz 2947d22392 chore: Updating workers 2024-07-22 14:45:39 -04:00
Binyamin Yawitz 916f58cd9d fixes: Logger and Abuse timelimit 2024-07-19 14:19:30 -04: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
Binyamin Yawitz 850c17dde1 tests: Ensure stability 2024-07-18 11:51:09 -04:00
Binyamin Yawitz 9b94a4a1ed chore: improvements 2024-07-12 18:11:43 -04:00
Jake Barnby e74a5cbf6e Remove detailed trace from error logs 2024-07-09 15:15:03 +12:00
Binyamin Yawitz 1217aee296 refactor: Connection pools 2024-07-04 15:04:36 -04:00
Binyamin Yawitz 77b593dae5 feat: Coroutine adjustments 2024-07-01 14:25:32 -04:00
Binyamin Yawitz 6f62f915d9 feat: Adding Authentication injection for user id and secret 2024-06-28 14:33:13 -04:00
Binyamin Yawitz dc47007566 test: Realtime tests 2024-06-07 15:36:45 -04:00
Binyamin Yawitz ea5d0fbaf2 refactor: Removing redundant injections 2024-06-06 20:54:39 -04: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
Binyamin Yawitz b5a241db8d merge: Main into Coroutines 2024-06-05 18:38:39 -04:00
Christy Jacob ff6efc2855 Revert "Feat remove random shared tables" 2024-06-06 00:11:56 +05:30
Binyamin Yawitz 6a7ee3df8a fix: realtime auth 2024-06-05 09:08:27 -04:00
Binyamin Yawitz c411aa2342 fix: Realtime auth 2024-06-04 15:23:08 -04:00
Binyamin Yawitz f7d9efc18e feat: Adding DI to realtime 2024-06-04 13:12:10 -04:00
Binyamin Yawitz 0093ad7799 Revert "wip: Starting realtime"
This reverts commit 7dfc654121.
2024-06-04 11:57:16 -04:00
Binyamin Yawitz 7dfc654121 wip: Starting realtime 2024-06-03 15:24:39 -04:00
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
Eldad Fux 525383c725 Updates to realtime 2024-05-08 21:01:07 +01: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
Eldad Fux d67df5feb1 Fixed formatting 2024-04-22 22:45:55 +02: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 5ce3de4933 Merge remote-tracking branch 'origin/main' into feat-eldad2-coroutines 2024-04-02 02:13:15 +02:00