From 2443266ac5eceb8749b859c383ffb1bdf0999fd0 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 20 Nov 2025 17:10:47 +1300 Subject: [PATCH 01/12] Set downloadUrl on realtime event --- src/Appwrite/Platform/Workers/Migrations.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index 0bd5c50e04..59cb3c5f16 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -411,7 +411,7 @@ class Migrations extends Action $source?->success(); if ($migration->getAttribute('destination') === DestinationCSV::getName()) { - $this->handleCSVExportComplete($project, $migration, $queueForMails); + $this->handleCSVExportComplete($project, $migration, $queueForMails, $queueForRealtime); } } } @@ -432,7 +432,8 @@ class Migrations extends Action protected function handleCSVExportComplete( Document $project, Document $migration, - Mail $queueForMails + Mail $queueForMails, + Realtime $queueForRealtime, ): void { $options = $migration->getAttribute('options', []); $bucketId = 'default'; // Always use platform default bucket @@ -530,6 +531,9 @@ class Migrations extends Action $endpoint = System::getEnv('_APP_DOMAIN', ''); $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS', 'disabled') === 'enabled' ? 'https' : 'http'; $downloadUrl = "{$protocol}://{$endpoint}/v1/storage/buckets/{$bucketId}/files/{$fileId}/push?project={$project->getId()}&jwt={$jwt}"; + $options['downloadUrl'] = $downloadUrl; + $migration->setAttribute('options', $options); + $this->updateMigrationDocument($migration, $project, $queueForRealtime); $this->sendCSVEmail( success: true, From fcce6f8d34378327d500c9273496b5536455fc78 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 20 Nov 2025 10:32:56 +0530 Subject: [PATCH 02/12] fix: override template deployment type enum name --- app/config/specs/open-api3-1.8.x-console.json | 2 +- app/config/specs/open-api3-1.8.x-server.json | 2 +- app/config/specs/open-api3-latest-console.json | 2 +- app/config/specs/open-api3-latest-server.json | 2 +- app/config/specs/swagger2-1.8.x-console.json | 2 +- app/config/specs/swagger2-1.8.x-server.json | 2 +- app/config/specs/swagger2-latest-console.json | 2 +- app/config/specs/swagger2-latest-server.json | 2 +- src/Appwrite/SDK/Specification/Format.php | 6 ++++++ 9 files changed, 14 insertions(+), 8 deletions(-) diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index fded6c46b0..79ecfaf8ff 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -32337,7 +32337,7 @@ "commit", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index 2cb6a74853..b83c1ca2c5 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -22861,7 +22861,7 @@ "commit", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index fded6c46b0..79ecfaf8ff 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -32337,7 +32337,7 @@ "commit", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index 2cb6a74853..b83c1ca2c5 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -22861,7 +22861,7 @@ "commit", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index 28a4f76c61..55bdb0f091 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -32441,7 +32441,7 @@ "commit", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index e760c1bb7d..eeee655d84 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -23014,7 +23014,7 @@ "commit", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 28a4f76c61..55bdb0f091 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -32441,7 +32441,7 @@ "commit", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index e760c1bb7d..eeee655d84 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -23014,7 +23014,7 @@ "commit", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/src/Appwrite/SDK/Specification/Format.php b/src/Appwrite/SDK/Specification/Format.php index c687df143a..c2e97f7f89 100644 --- a/src/Appwrite/SDK/Specification/Format.php +++ b/src/Appwrite/SDK/Specification/Format.php @@ -289,6 +289,12 @@ abstract class Format return 'VCSDeploymentType'; } break; + case 'createTemplateDeployment': + switch ($param) { + case 'type': + return 'TemplateDeploymentType'; + } + break; } break; case 'vcs': From 4b752c15e8743dddadc12ca59518e38560c3186e Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 20 Nov 2025 10:42:13 +0530 Subject: [PATCH 03/12] functions too --- app/config/specs/open-api3-1.8.x-console.json | 2 +- app/config/specs/open-api3-1.8.x-server.json | 2 +- app/config/specs/open-api3-latest-console.json | 2 +- app/config/specs/open-api3-latest-server.json | 2 +- app/config/specs/swagger2-1.8.x-console.json | 2 +- app/config/specs/swagger2-1.8.x-server.json | 2 +- app/config/specs/swagger2-latest-console.json | 2 +- app/config/specs/swagger2-latest-server.json | 2 +- src/Appwrite/SDK/Specification/Format.php | 6 ++++++ 9 files changed, 14 insertions(+), 8 deletions(-) diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index 79ecfaf8ff..e95f24ffcb 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -14424,7 +14424,7 @@ "branch", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index b83c1ca2c5..d9ebbda085 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -13213,7 +13213,7 @@ "branch", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index 79ecfaf8ff..e95f24ffcb 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -14424,7 +14424,7 @@ "branch", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index b83c1ca2c5..d9ebbda085 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -13213,7 +13213,7 @@ "branch", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index 55bdb0f091..845f55d5fd 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -14366,7 +14366,7 @@ "branch", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index eeee655d84..e58fa32c1f 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -13182,7 +13182,7 @@ "branch", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 55bdb0f091..845f55d5fd 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -14366,7 +14366,7 @@ "branch", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index eeee655d84..e58fa32c1f 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -13182,7 +13182,7 @@ "branch", "tag" ], - "x-enum-name": null, + "x-enum-name": "TemplateDeploymentType", "x-enum-keys": [] }, "reference": { diff --git a/src/Appwrite/SDK/Specification/Format.php b/src/Appwrite/SDK/Specification/Format.php index c2e97f7f89..11be265644 100644 --- a/src/Appwrite/SDK/Specification/Format.php +++ b/src/Appwrite/SDK/Specification/Format.php @@ -266,6 +266,12 @@ abstract class Format return 'VCSDeploymentType'; } break; + case 'createTemplateDeployment': + switch ($param) { + case 'type': + return 'TemplateDeploymentType'; + } + break; } break; case 'sites': From a2463f8cc34f3eb54fa01b8a6a9e7f5480d36687 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 20 Nov 2025 15:23:16 +0530 Subject: [PATCH 04/12] fix naming --- app/config/specs/open-api3-1.8.x-console.json | 4 ++-- app/config/specs/open-api3-1.8.x-server.json | 4 ++-- app/config/specs/open-api3-latest-console.json | 4 ++-- app/config/specs/open-api3-latest-server.json | 4 ++-- app/config/specs/swagger2-1.8.x-console.json | 4 ++-- app/config/specs/swagger2-1.8.x-server.json | 4 ++-- app/config/specs/swagger2-latest-console.json | 4 ++-- app/config/specs/swagger2-latest-server.json | 4 ++-- src/Appwrite/SDK/Specification/Format.php | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index e95f24ffcb..c56bb92c3a 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -14424,7 +14424,7 @@ "branch", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { @@ -32337,7 +32337,7 @@ "commit", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index d9ebbda085..84af70dd5d 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -13213,7 +13213,7 @@ "branch", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { @@ -22861,7 +22861,7 @@ "commit", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index e95f24ffcb..c56bb92c3a 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -14424,7 +14424,7 @@ "branch", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { @@ -32337,7 +32337,7 @@ "commit", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index d9ebbda085..84af70dd5d 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -13213,7 +13213,7 @@ "branch", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { @@ -22861,7 +22861,7 @@ "commit", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index 845f55d5fd..84b6060e1e 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -14366,7 +14366,7 @@ "branch", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { @@ -32441,7 +32441,7 @@ "commit", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index e58fa32c1f..b23d0d2fce 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -13182,7 +13182,7 @@ "branch", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { @@ -23014,7 +23014,7 @@ "commit", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 845f55d5fd..84b6060e1e 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -14366,7 +14366,7 @@ "branch", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { @@ -32441,7 +32441,7 @@ "commit", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index e58fa32c1f..b23d0d2fce 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -13182,7 +13182,7 @@ "branch", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { @@ -23014,7 +23014,7 @@ "commit", "tag" ], - "x-enum-name": "TemplateDeploymentType", + "x-enum-name": "TemplateReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/src/Appwrite/SDK/Specification/Format.php b/src/Appwrite/SDK/Specification/Format.php index 11be265644..ac318a39d4 100644 --- a/src/Appwrite/SDK/Specification/Format.php +++ b/src/Appwrite/SDK/Specification/Format.php @@ -269,7 +269,7 @@ abstract class Format case 'createTemplateDeployment': switch ($param) { case 'type': - return 'TemplateDeploymentType'; + return 'TemplateReferenceType'; } break; } @@ -298,7 +298,7 @@ abstract class Format case 'createTemplateDeployment': switch ($param) { case 'type': - return 'TemplateDeploymentType'; + return 'TemplateReferenceType'; } break; } From e2979410da0b19bdad1fafd71b5f65d5d5dcf2cf Mon Sep 17 00:00:00 2001 From: Steven Nguyen <1477010+stnguyen90@users.noreply.github.com> Date: Thu, 20 Nov 2025 18:34:45 -0800 Subject: [PATCH 05/12] chore: update index descriptions to reflect table terminology Updated descriptions for indexes to refer to tables instead of collections. --- app/config/scopes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/config/scopes.php b/app/config/scopes.php index d90ca2eabf..a6ad98e4e0 100644 --- a/app/config/scopes.php +++ b/app/config/scopes.php @@ -47,10 +47,10 @@ return [ // List of publicly visible scopes 'description' => 'Access to create, update, and delete your project\'s database table\'s columns', ], 'indexes.read' => [ - 'description' => 'Access to read your project\'s database collection\'s indexes', + 'description' => 'Access to read your project\'s database table\'s indexes', ], 'indexes.write' => [ - 'description' => 'Access to create, update, and delete your project\'s database collection\'s indexes', + 'description' => 'Access to create, update, and delete your project\'s database table\'s indexes', ], 'documents.read' => [ 'description' => 'Access to read your project\'s database documents', From ba10bed27117a9718d0c5ef88d3714adf906f6d7 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 21 Nov 2025 09:56:26 +0530 Subject: [PATCH 06/12] chore: change VCSDeploymentType enum to VCSReferenceType --- app/config/specs/open-api3-1.8.x-console.json | 4 ++-- app/config/specs/open-api3-1.8.x-server.json | 4 ++-- app/config/specs/open-api3-latest-console.json | 4 ++-- app/config/specs/open-api3-latest-server.json | 4 ++-- app/config/specs/swagger2-1.8.x-console.json | 4 ++-- app/config/specs/swagger2-1.8.x-server.json | 4 ++-- app/config/specs/swagger2-latest-console.json | 4 ++-- app/config/specs/swagger2-latest-server.json | 4 ++-- src/Appwrite/SDK/Specification/Format.php | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index c56bb92c3a..365f926685 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -14524,7 +14524,7 @@ "branch", "commit" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { @@ -32438,7 +32438,7 @@ "commit", "tag" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index 84af70dd5d..a2a97c046e 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -13314,7 +13314,7 @@ "branch", "commit" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { @@ -22963,7 +22963,7 @@ "commit", "tag" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index c56bb92c3a..365f926685 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -14524,7 +14524,7 @@ "branch", "commit" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { @@ -32438,7 +32438,7 @@ "commit", "tag" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index 84af70dd5d..a2a97c046e 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -13314,7 +13314,7 @@ "branch", "commit" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { @@ -22963,7 +22963,7 @@ "commit", "tag" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index 84b6060e1e..5d2334764e 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -14467,7 +14467,7 @@ "branch", "commit" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { @@ -32543,7 +32543,7 @@ "commit", "tag" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index b23d0d2fce..b37aaac8e2 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -13284,7 +13284,7 @@ "branch", "commit" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { @@ -23117,7 +23117,7 @@ "commit", "tag" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 84b6060e1e..5d2334764e 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -14467,7 +14467,7 @@ "branch", "commit" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { @@ -32543,7 +32543,7 @@ "commit", "tag" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index b23d0d2fce..b37aaac8e2 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -13284,7 +13284,7 @@ "branch", "commit" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { @@ -23117,7 +23117,7 @@ "commit", "tag" ], - "x-enum-name": "VCSDeploymentType", + "x-enum-name": "VCSReferenceType", "x-enum-keys": [] }, "reference": { diff --git a/src/Appwrite/SDK/Specification/Format.php b/src/Appwrite/SDK/Specification/Format.php index ac318a39d4..b9e1c3b4ed 100644 --- a/src/Appwrite/SDK/Specification/Format.php +++ b/src/Appwrite/SDK/Specification/Format.php @@ -263,7 +263,7 @@ abstract class Format case 'createVcsDeployment': switch ($param) { case 'type': - return 'VCSDeploymentType'; + return 'VCSReferenceType'; } break; case 'createTemplateDeployment': @@ -292,7 +292,7 @@ abstract class Format case 'createVcsDeployment': switch ($param) { case 'type': - return 'VCSDeploymentType'; + return 'VCSReferenceType'; } break; case 'createTemplateDeployment': From ceb11e039f3b1a64a29cbc064388402c7312d950 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 21 Nov 2025 10:25:14 +0530 Subject: [PATCH 07/12] chore: release cli 12.0.0 --- app/config/platforms.php | 2 +- docs/sdks/cli/CHANGELOG.md | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/config/platforms.php b/app/config/platforms.php index ce60b2f6c2..1ac111b29d 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -226,7 +226,7 @@ return [ [ 'key' => 'cli', 'name' => 'Command Line', - 'version' => '11.1.1', + 'version' => '11.1.2', 'url' => 'https://github.com/appwrite/sdk-for-cli', 'package' => 'https://www.npmjs.com/package/appwrite-cli', 'enabled' => true, diff --git a/docs/sdks/cli/CHANGELOG.md b/docs/sdks/cli/CHANGELOG.md index 8e50441769..9835edb604 100644 --- a/docs/sdks/cli/CHANGELOG.md +++ b/docs/sdks/cli/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 12.0.0 + +* Change `create-deloyment-template`'s `version` parameter to `type` and `reference`. eg. usage - `create-deployment-template --type tag --reference 1.0.0` +* Remove `bucket-id` parameter from `create-csv-export` command +* Allow enabling or disabling of image `transformations` in a bucket +* Fix type generation for `point`, `lineString` and `polygon` columns + ## 11.1.1 * Fix duplicate `enums` during type generation by prefixing them with table name. For example, `enum MyEnum` will now be generated as `enum MyTableMyEnum` to avoid conflicts. From ad43be5dabd99bc696e66a657756ada629f8a7cb Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 21 Nov 2025 10:26:38 +0530 Subject: [PATCH 08/12] fix version --- app/config/platforms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config/platforms.php b/app/config/platforms.php index 1ac111b29d..ceb05235d3 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -226,7 +226,7 @@ return [ [ 'key' => 'cli', 'name' => 'Command Line', - 'version' => '11.1.2', + 'version' => '12.0.0', 'url' => 'https://github.com/appwrite/sdk-for-cli', 'package' => 'https://www.npmjs.com/package/appwrite-cli', 'enabled' => true, From b905686c0ee9524143308a327ea862f288ae2959 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 21 Nov 2025 10:28:02 +0530 Subject: [PATCH 09/12] fix typo --- docs/sdks/cli/CHANGELOG.md | 2 +- tests/e2e/Services/Sites/SitesCustomServerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sdks/cli/CHANGELOG.md b/docs/sdks/cli/CHANGELOG.md index 9835edb604..3c2e7ef709 100644 --- a/docs/sdks/cli/CHANGELOG.md +++ b/docs/sdks/cli/CHANGELOG.md @@ -2,7 +2,7 @@ ## 12.0.0 -* Change `create-deloyment-template`'s `version` parameter to `type` and `reference`. eg. usage - `create-deployment-template --type tag --reference 1.0.0` +* Change `create-deployment-template`'s `version` parameter to `type` and `reference`. eg. usage - `create-deployment-template --type tag --reference 1.0.0` * Remove `bucket-id` parameter from `create-csv-export` command * Allow enabling or disabling of image `transformations` in a bucket * Fix type generation for `point`, `lineString` and `polygon` columns diff --git a/tests/e2e/Services/Sites/SitesCustomServerTest.php b/tests/e2e/Services/Sites/SitesCustomServerTest.php index 8c03ec7649..b7dc9e7334 100644 --- a/tests/e2e/Services/Sites/SitesCustomServerTest.php +++ b/tests/e2e/Services/Sites/SitesCustomServerTest.php @@ -2552,7 +2552,7 @@ class SitesCustomServerTest extends Scope $this->cleanupSite($siteId); } - public function testDomainForFailedDeloyment(): void + public function testDomainForFailedDeployment(): void { $siteId = $this->setupSite([ 'siteId' => ID::unique(), From 34e9c69a62a3ae7a491c6d0f1d335b14f6d6b854 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Fri, 21 Nov 2025 19:08:35 +0530 Subject: [PATCH 10/12] updated tests condition --- .../Services/Databases/Legacy/DatabasesBase.php | 14 +++++++++++--- .../Services/Databases/TablesDB/DatabasesBase.php | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/e2e/Services/Databases/Legacy/DatabasesBase.php b/tests/e2e/Services/Databases/Legacy/DatabasesBase.php index e7ad75d03b..e61f84f183 100644 --- a/tests/e2e/Services/Databases/Legacy/DatabasesBase.php +++ b/tests/e2e/Services/Databases/Legacy/DatabasesBase.php @@ -493,9 +493,17 @@ trait DatabasesBase $this->assertEquals(400, $attribute['headers']['status-code']); - $maxLength = $this->isMongoDB() ? 1024 : 768; - - $this->assertStringContainsString('Index length is longer than the maximum: '.$maxLength, $attribute['body']['message']); + $message = $attribute['body']['message']; + if ($this->MongoDB()) { + $this->assertStringContainsString('Index length is longer than the maximum: 1024', $message); + } else { + // length depends on the shared table + $this->assertTrue( + str_contains($message, 'Index length is longer than the maximum: 767') || + str_contains($message, 'Index length is longer than the maximum: 768'), + "Message does not contain expected max length" + ); + } } public function testUpdateAttributeEnum(): void diff --git a/tests/e2e/Services/Databases/TablesDB/DatabasesBase.php b/tests/e2e/Services/Databases/TablesDB/DatabasesBase.php index 9757b525df..da11582158 100644 --- a/tests/e2e/Services/Databases/TablesDB/DatabasesBase.php +++ b/tests/e2e/Services/Databases/TablesDB/DatabasesBase.php @@ -8663,7 +8663,7 @@ trait DatabasesBase '$id' => 'row1', 'name' => 'Test Row 1', 'pointAttr' => [6.0, 6.0], - 'lineAttr' => [[1.0, 1.0], [2.0, 2.0]], + 'lineAttr' => [[1.0, 1.0], [1.1,1.1] , [2.0, 2.0]], 'polyAttr' => [[[0.0, 0.0], [10.0, 0.0], [10.0, 10.0], [0.0, 10.0], [0.0, 0.0]]] ], [ From 33aab0357f055502c0dedc889e528f7c4c746ce5 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Fri, 21 Nov 2025 17:22:19 +0530 Subject: [PATCH 11/12] updated tests --- tests/e2e/Services/Databases/Legacy/DatabasesBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/Services/Databases/Legacy/DatabasesBase.php b/tests/e2e/Services/Databases/Legacy/DatabasesBase.php index e61f84f183..02867c7761 100644 --- a/tests/e2e/Services/Databases/Legacy/DatabasesBase.php +++ b/tests/e2e/Services/Databases/Legacy/DatabasesBase.php @@ -494,7 +494,7 @@ trait DatabasesBase $this->assertEquals(400, $attribute['headers']['status-code']); $message = $attribute['body']['message']; - if ($this->MongoDB()) { + if ($this->isMongoDB()) { $this->assertStringContainsString('Index length is longer than the maximum: 1024', $message); } else { // length depends on the shared table From 3db22fd2db27c9299695e47866ecda5b604c42e7 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Fri, 21 Nov 2025 20:03:44 +0530 Subject: [PATCH 12/12] fixed enum route --- .../Http/Databases/Collections/Attributes/Enum/Create.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php index fec378d7e9..f3d9d66672 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php @@ -62,9 +62,9 @@ class Create extends Action replaceWith: 'tablesDB.createEnumColumn', ), )) - ->param('databaseId', '', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Database ID.', true, ['dbForProject']) - ->param('collectionId', '', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Collection ID.', true, ['dbForProject']) - ->param('key', '', fn (Database $dbForProject) => new Key(false, $dbForProject->getAdapter()->getMaxUIDLength()), 'Attribute Key.', true, ['dbForProject']) + ->param('databaseId', '', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Database ID.', false, ['dbForProject']) + ->param('collectionId', '', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Collection ID.', false, ['dbForProject']) + ->param('key', '', fn (Database $dbForProject) => new Key(false, $dbForProject->getAdapter()->getMaxUIDLength()), 'Attribute Key.', false, ['dbForProject']) ->param('elements', [], new ArrayList(new Text(Database::LENGTH_KEY), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of enum values.') ->param('required', null, new Boolean(), 'Is attribute required?') ->param('default', null, new Nullable(new Text(0)), 'Default value for attribute when not provided. Cannot be set when attribute is required.', true)