From c303aa57ced124a31c233533d11b2e7f5ea0860b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Mon, 3 Mar 2025 12:59:36 +0100 Subject: [PATCH 1/2] Fix template CORS --- src/Appwrite/Platform/Modules/Functions/Http/Templates/Get.php | 1 + src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php | 1 + src/Appwrite/Platform/Modules/Sites/Http/Templates/Get.php | 1 + src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php | 1 + 4 files changed, 4 insertions(+) diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Templates/Get.php b/src/Appwrite/Platform/Modules/Functions/Http/Templates/Get.php index e624b26de6..6819f6693c 100644 --- a/src/Appwrite/Platform/Modules/Functions/Http/Templates/Get.php +++ b/src/Appwrite/Platform/Modules/Functions/Http/Templates/Get.php @@ -30,6 +30,7 @@ class Get extends Base ->setHttpPath('/v1/functions/templates/:templateId') ->desc('Get function template') ->label('scope', 'public') + ->groups(['api', 'functions']) ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('sdk', new Method( namespace: 'functions', diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php b/src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php index 310ed89fdf..3250874ac5 100644 --- a/src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php +++ b/src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php @@ -31,6 +31,7 @@ class XList extends Base ->setHttpPath('/v1/functions/templates') ->desc('List function templates') ->label('scope', 'public') + ->groups(['api', 'functions']) ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('sdk', new Method( namespace: 'functions', diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Templates/Get.php b/src/Appwrite/Platform/Modules/Sites/Http/Templates/Get.php index 9d2991bce9..b994dd2172 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Templates/Get.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Templates/Get.php @@ -30,6 +30,7 @@ class Get extends Base ->setHttpPath('/v1/sites/templates/:templateId') ->desc('Get site template') ->label('scope', 'public') + ->groups(['api', 'sites']) ->label('sdk', new Method( namespace: 'sites', name: 'getTemplate', diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php b/src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php index 3c27b75578..00ece7f68b 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php @@ -31,6 +31,7 @@ class XList extends Base ->setHttpPath('/v1/sites/templates') ->desc('List templates') ->label('scope', 'public') + ->groups(['api', 'sites']) ->label('sdk', new Method( namespace: 'sites', name: 'listTemplates', From 084dcdffd918233cb89567deb852c65aeaaec0e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Mon, 3 Mar 2025 15:52:11 +0100 Subject: [PATCH 2/2] Fix tests --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 394505aeb4..8349c14ccb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -962,7 +962,7 @@ services: hostname: exc1 <<: *x-logging stop_signal: SIGINT - image: openruntimes/executor:0.7.5 + image: openruntimes/executor:0.7.6 restart: unless-stopped networks: - appwrite