From 7104f9e2c840e07284a154d816f2c1e5a9125208 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 28 Nov 2023 02:08:04 +1300 Subject: [PATCH] Add comments marking `shareTables` project attributes + header overrides as temporary --- app/config/collections.php | 1 + app/controllers/api/projects.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/config/collections.php b/app/config/collections.php index 60eeaf40a8..ed5e94eb65 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -3269,6 +3269,7 @@ $consoleCollections = array_merge([ 'filters' => [], ], [ + // To be removed once all project are using shared tables '$id' => ID::custom('shareTables'), 'type' => Database::VAR_BOOLEAN, 'format' => '', diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 994f842184..330f89dffd 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -144,7 +144,7 @@ App::post('/v1/projects') // One in 20 projects use shared tables $shareTables = !\mt_rand(0, 19); - // Allow overriding in development mode + // Allow overriding in development mode, to be removed once all project are using shared tables if (App::isDevelopment()) { $shareTables = (bool) $request->getHeader('x-appwrite-share-tables', false); }