From 9e4e23ad3fa6eadee5967d523464811ee8d2de14 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sun, 21 Dec 2025 22:03:30 +0530 Subject: [PATCH 1/3] chore: update sdks script console log --- app/worker.php | 1 - src/Appwrite/Platform/Tasks/SDKs.php | 2 +- src/Appwrite/Platform/Tasks/Specs.php | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/worker.php b/app/worker.php index 76f3bb9e8a..5294a94c08 100644 --- a/app/worker.php +++ b/app/worker.php @@ -34,7 +34,6 @@ use Utopia\Database\Validator\Authorization; use Utopia\DSN\DSN; use Utopia\Logger\Log; use Utopia\Logger\Logger; -use Utopia\Platform\Service; use Utopia\Pools\Group; use Utopia\Queue\Broker\Pool as BrokerPool; use Utopia\Queue\Message; diff --git a/src/Appwrite/Platform/Tasks/SDKs.php b/src/Appwrite/Platform/Tasks/SDKs.php index 70def20328..798f40ebe7 100644 --- a/src/Appwrite/Platform/Tasks/SDKs.php +++ b/src/Appwrite/Platform/Tasks/SDKs.php @@ -55,7 +55,7 @@ class SDKs extends Action public function action(?string $selectedPlatform, ?string $selectedSDK, ?string $version, ?string $git, ?string $production, ?string $message, ?string $release, ?string $commit, ?string $sdks): void { if (!$sdks) { - $selectedPlatform ??= Console::confirm('Choose Platform ("' . APP_SDK_PLATFORM_CLIENT . '", "' . APP_SDK_PLATFORM_SERVER . '", "' . APP_SDK_PLATFORM_CONSOLE . '" or "*" for all):'); + $selectedPlatform ??= Console::confirm('Choose Platform ("' . implode('", "', Specs::getPlatforms()) . '" or "*" for all):'); $selectedSDK ??= \strtolower(Console::confirm('Choose SDK ("*" for all):')); } else { $sdks = explode(',', $sdks); diff --git a/src/Appwrite/Platform/Tasks/Specs.php b/src/Appwrite/Platform/Tasks/Specs.php index 7869c14471..96f29e08ad 100644 --- a/src/Appwrite/Platform/Tasks/Specs.php +++ b/src/Appwrite/Platform/Tasks/Specs.php @@ -66,7 +66,7 @@ class Specs extends Action * * @return array */ - protected function getPlatforms(): array + public static function getPlatforms(): array { return [ APP_SDK_PLATFORM_CLIENT, @@ -239,7 +239,7 @@ class Specs extends Action App::setResource('dbForPlatform', fn () => new Database(new MySQL(''), new Cache(new None()))); App::setResource('dbForProject', fn () => new Database(new MySQL(''), new Cache(new None()))); - $platforms = $this->getPlatforms(); + $platforms = self::getPlatforms(); $authCounts = $this->getAuthCounts(); $keys = $this->getKeys(); From 9f24cb4aa37b3036331b67d71300fb8fc4fcad02 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 22 Dec 2025 12:48:23 +0530 Subject: [PATCH 2/3] trigger ci From 3310d271bf4940250cbc9320aa90ddec78e5d8ee Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Tue, 23 Dec 2025 12:35:48 +0530 Subject: [PATCH 3/3] fix import --- app/worker.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/worker.php b/app/worker.php index 5294a94c08..76f3bb9e8a 100644 --- a/app/worker.php +++ b/app/worker.php @@ -34,6 +34,7 @@ use Utopia\Database\Validator\Authorization; use Utopia\DSN\DSN; use Utopia\Logger\Log; use Utopia\Logger\Logger; +use Utopia\Platform\Service; use Utopia\Pools\Group; use Utopia\Queue\Broker\Pool as BrokerPool; use Utopia\Queue\Message;