Merge pull request #9752 from appwrite/fix-indexes

Fix indexes for `1.7.x`
This commit is contained in:
Matej Bačo 2025-05-13 17:49:52 +02:00 committed by GitHub
commit 39e083188c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 82 additions and 95 deletions

View file

@ -1420,7 +1420,7 @@ return [
[ [
'$id' => ID::custom('_key_piid_riid_rt'), '$id' => ID::custom('_key_piid_riid_rt'),
'type' => Database::INDEX_KEY, 'type' => Database::INDEX_KEY,
'attributes' => ['projectInternalId', 'resourceInternalId', 'resourceType'], 'attributes' => ['projectInternalId', 'deploymentInternalId', 'deploymentResourceType'],
'lengths' => [], 'lengths' => [],
'orders' => [], 'orders' => [],
], ],

View file

@ -2083,7 +2083,7 @@ return [
[ [
'$id' => ID::custom('_key_function_internal_id'), '$id' => ID::custom('_key_function_internal_id'),
'type' => Database::INDEX_KEY, 'type' => Database::INDEX_KEY,
'attributes' => ['functionInternalId'], 'attributes' => ['resourceInternalId'],
'lengths' => [], 'lengths' => [],
'orders' => [], 'orders' => [],
], ],

141
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "51959289a3f882160f5a9eeb605d41d7", "content-hash": "18d31817580d569f001c88d865dcbfc6",
"packages": [ "packages": [
{ {
"name": "adhocore/jwt", "name": "adhocore/jwt",
@ -1109,16 +1109,16 @@
}, },
{ {
"name": "open-telemetry/api", "name": "open-telemetry/api",
"version": "1.2.3", "version": "1.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/opentelemetry-php/api.git", "url": "https://github.com/opentelemetry-php/api.git",
"reference": "199d7ddda88f5f5619fa73463f1a5a7149ccd1f1" "reference": "4e3bb38e069876fb73c2ce85c89583bf2b28cd86"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/opentelemetry-php/api/zipball/199d7ddda88f5f5619fa73463f1a5a7149ccd1f1", "url": "https://api.github.com/repos/opentelemetry-php/api/zipball/4e3bb38e069876fb73c2ce85c89583bf2b28cd86",
"reference": "199d7ddda88f5f5619fa73463f1a5a7149ccd1f1", "reference": "4e3bb38e069876fb73c2ce85c89583bf2b28cd86",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1175,20 +1175,20 @@
"issues": "https://github.com/open-telemetry/opentelemetry-php/issues", "issues": "https://github.com/open-telemetry/opentelemetry-php/issues",
"source": "https://github.com/open-telemetry/opentelemetry-php" "source": "https://github.com/open-telemetry/opentelemetry-php"
}, },
"time": "2025-03-05T21:42:54+00:00" "time": "2025-05-07T12:32:21+00:00"
}, },
{ {
"name": "open-telemetry/context", "name": "open-telemetry/context",
"version": "1.2.0", "version": "1.2.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/opentelemetry-php/context.git", "url": "https://github.com/opentelemetry-php/context.git",
"reference": "5f553042b951d3fedf47925852c380159dfca801" "reference": "1eb2b837ee9362db064a6b65d5ecce15a9f9f020"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/opentelemetry-php/context/zipball/5f553042b951d3fedf47925852c380159dfca801", "url": "https://api.github.com/repos/opentelemetry-php/context/zipball/1eb2b837ee9362db064a6b65d5ecce15a9f9f020",
"reference": "5f553042b951d3fedf47925852c380159dfca801", "reference": "1eb2b837ee9362db064a6b65d5ecce15a9f9f020",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1234,20 +1234,20 @@
"issues": "https://github.com/open-telemetry/opentelemetry-php/issues", "issues": "https://github.com/open-telemetry/opentelemetry-php/issues",
"source": "https://github.com/open-telemetry/opentelemetry-php" "source": "https://github.com/open-telemetry/opentelemetry-php"
}, },
"time": "2025-05-02T01:57:57+00:00" "time": "2025-05-07T23:36:50+00:00"
}, },
{ {
"name": "open-telemetry/exporter-otlp", "name": "open-telemetry/exporter-otlp",
"version": "1.2.1", "version": "1.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/opentelemetry-php/exporter-otlp.git", "url": "https://github.com/opentelemetry-php/exporter-otlp.git",
"reference": "b7580440b7481a98da97aceabeb46e1b276c8747" "reference": "19adf03d2b0f91f9e9b1c7f93db6c755c737cf6c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/opentelemetry-php/exporter-otlp/zipball/b7580440b7481a98da97aceabeb46e1b276c8747", "url": "https://api.github.com/repos/opentelemetry-php/exporter-otlp/zipball/19adf03d2b0f91f9e9b1c7f93db6c755c737cf6c",
"reference": "b7580440b7481a98da97aceabeb46e1b276c8747", "reference": "19adf03d2b0f91f9e9b1c7f93db6c755c737cf6c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1298,7 +1298,7 @@
"issues": "https://github.com/open-telemetry/opentelemetry-php/issues", "issues": "https://github.com/open-telemetry/opentelemetry-php/issues",
"source": "https://github.com/open-telemetry/opentelemetry-php" "source": "https://github.com/open-telemetry/opentelemetry-php"
}, },
"time": "2025-03-06T23:21:56+00:00" "time": "2025-05-12T00:36:35+00:00"
}, },
{ {
"name": "open-telemetry/gen-otlp-protobuf", "name": "open-telemetry/gen-otlp-protobuf",
@ -1365,16 +1365,16 @@
}, },
{ {
"name": "open-telemetry/sdk", "name": "open-telemetry/sdk",
"version": "1.3.0", "version": "1.4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/opentelemetry-php/sdk.git", "url": "https://github.com/opentelemetry-php/sdk.git",
"reference": "05d9ceb6773b5bddcf485af6d4a6f543bbeb980b" "reference": "939d3a28395c249a763676458140dad44b3a8011"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/opentelemetry-php/sdk/zipball/05d9ceb6773b5bddcf485af6d4a6f543bbeb980b", "url": "https://api.github.com/repos/opentelemetry-php/sdk/zipball/939d3a28395c249a763676458140dad44b3a8011",
"reference": "05d9ceb6773b5bddcf485af6d4a6f543bbeb980b", "reference": "939d3a28395c249a763676458140dad44b3a8011",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1451,7 +1451,7 @@
"issues": "https://github.com/open-telemetry/opentelemetry-php/issues", "issues": "https://github.com/open-telemetry/opentelemetry-php/issues",
"source": "https://github.com/open-telemetry/opentelemetry-php" "source": "https://github.com/open-telemetry/opentelemetry-php"
}, },
"time": "2025-05-01T23:20:43+00:00" "time": "2025-05-07T12:32:21+00:00"
}, },
{ {
"name": "open-telemetry/sem-conv", "name": "open-telemetry/sem-conv",
@ -3301,16 +3301,16 @@
}, },
{ {
"name": "utopia-php/cache", "name": "utopia-php/cache",
"version": "0.12.0", "version": "0.13.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/utopia-php/cache.git", "url": "https://github.com/utopia-php/cache.git",
"reference": "646038f1d470b759c129348be8fc14da3c00bbd9" "reference": "97220cb3b3822b166ee016d1646e2ae2815dc540"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/utopia-php/cache/zipball/646038f1d470b759c129348be8fc14da3c00bbd9", "url": "https://api.github.com/repos/utopia-php/cache/zipball/97220cb3b3822b166ee016d1646e2ae2815dc540",
"reference": "646038f1d470b759c129348be8fc14da3c00bbd9", "reference": "97220cb3b3822b166ee016d1646e2ae2815dc540",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3318,6 +3318,7 @@
"ext-memcached": "*", "ext-memcached": "*",
"ext-redis": "*", "ext-redis": "*",
"php": ">=8.0", "php": ">=8.0",
"utopia-php/pools": "0.8.*",
"utopia-php/telemetry": "0.1.*" "utopia-php/telemetry": "0.1.*"
}, },
"require-dev": { "require-dev": {
@ -3346,9 +3347,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/utopia-php/cache/issues", "issues": "https://github.com/utopia-php/cache/issues",
"source": "https://github.com/utopia-php/cache/tree/0.12.0" "source": "https://github.com/utopia-php/cache/tree/0.13.1"
}, },
"time": "2025-02-25T09:09:21+00:00" "time": "2025-05-09T14:43:52+00:00"
}, },
{ {
"name": "utopia-php/cli", "name": "utopia-php/cli",
@ -3498,23 +3499,23 @@
}, },
{ {
"name": "utopia-php/database", "name": "utopia-php/database",
"version": "0.66.0", "version": "0.68.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/utopia-php/database.git", "url": "https://github.com/utopia-php/database.git",
"reference": "67d2ab418efba31dc76b3564cf043e2b3f98d027" "reference": "72b2e2c0b875028f7d9dd755f6d4524b693c6507"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/utopia-php/database/zipball/67d2ab418efba31dc76b3564cf043e2b3f98d027", "url": "https://api.github.com/repos/utopia-php/database/zipball/72b2e2c0b875028f7d9dd755f6d4524b693c6507",
"reference": "67d2ab418efba31dc76b3564cf043e2b3f98d027", "reference": "72b2e2c0b875028f7d9dd755f6d4524b693c6507",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-mbstring": "*", "ext-mbstring": "*",
"ext-pdo": "*", "ext-pdo": "*",
"php": ">=8.1", "php": ">=8.1",
"utopia-php/cache": "0.12.*", "utopia-php/cache": "0.13.*",
"utopia-php/framework": "0.33.*", "utopia-php/framework": "0.33.*",
"utopia-php/pools": "0.8.*" "utopia-php/pools": "0.8.*"
}, },
@ -3548,9 +3549,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/utopia-php/database/issues", "issues": "https://github.com/utopia-php/database/issues",
"source": "https://github.com/utopia-php/database/tree/0.66.0" "source": "https://github.com/utopia-php/database/tree/0.68.1"
}, },
"time": "2025-04-16T07:10:27+00:00" "time": "2025-05-09T10:08:53+00:00"
}, },
{ {
"name": "utopia-php/detector", "name": "utopia-php/detector",
@ -3997,16 +3998,16 @@
}, },
{ {
"name": "utopia-php/migration", "name": "utopia-php/migration",
"version": "0.9.1", "version": "0.9.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/utopia-php/migration.git", "url": "https://github.com/utopia-php/migration.git",
"reference": "f8b54727c7b0abe416a74a2a4c9fa4350c7a59a3" "reference": "e518d39eb550fde36bc5cf06c9bd7b2faf5dbedd"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/utopia-php/migration/zipball/f8b54727c7b0abe416a74a2a4c9fa4350c7a59a3", "url": "https://api.github.com/repos/utopia-php/migration/zipball/e518d39eb550fde36bc5cf06c9bd7b2faf5dbedd",
"reference": "f8b54727c7b0abe416a74a2a4c9fa4350c7a59a3", "reference": "e518d39eb550fde36bc5cf06c9bd7b2faf5dbedd",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4047,9 +4048,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/utopia-php/migration/issues", "issues": "https://github.com/utopia-php/migration/issues",
"source": "https://github.com/utopia-php/migration/tree/0.9.1" "source": "https://github.com/utopia-php/migration/tree/0.9.3"
}, },
"time": "2025-04-17T05:18:58+00:00" "time": "2025-05-01T05:41:26+00:00"
}, },
{ {
"name": "utopia-php/orchestration", "name": "utopia-php/orchestration",
@ -4589,28 +4590,28 @@
}, },
{ {
"name": "utopia-php/vcs", "name": "utopia-php/vcs",
"version": "0.10.1", "version": "0.10.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/utopia-php/vcs.git", "url": "https://github.com/utopia-php/vcs.git",
"reference": "6be02650cc361764900ade8c129f309df263eb74" "reference": "1f9823ebcb8fd098607de0074f18f48e28985012"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/utopia-php/vcs/zipball/6be02650cc361764900ade8c129f309df263eb74", "url": "https://api.github.com/repos/utopia-php/vcs/zipball/1f9823ebcb8fd098607de0074f18f48e28985012",
"reference": "6be02650cc361764900ade8c129f309df263eb74", "reference": "1f9823ebcb8fd098607de0074f18f48e28985012",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"adhocore/jwt": "^1.1", "adhocore/jwt": "^1.1",
"php": ">=8.0", "php": ">=8.0",
"utopia-php/cache": "0.12.*", "utopia-php/cache": "0.13.*",
"utopia-php/framework": "0.*.*", "utopia-php/framework": "0.*.*",
"utopia-php/system": "0.9.*" "utopia-php/system": "0.9.*"
}, },
"require-dev": { "require-dev": {
"laravel/pint": "1.2.*", "laravel/pint": "1.*.*",
"phpstan/phpstan": "1.8.*", "phpstan/phpstan": "1.*.*",
"phpunit/phpunit": "^9.4" "phpunit/phpunit": "^9.4"
}, },
"type": "library", "type": "library",
@ -4632,22 +4633,22 @@
], ],
"support": { "support": {
"issues": "https://github.com/utopia-php/vcs/issues", "issues": "https://github.com/utopia-php/vcs/issues",
"source": "https://github.com/utopia-php/vcs/tree/0.10.1" "source": "https://github.com/utopia-php/vcs/tree/0.10.2"
}, },
"time": "2025-03-18T11:44:09+00:00" "time": "2025-04-17T04:35:25+00:00"
}, },
{ {
"name": "utopia-php/websocket", "name": "utopia-php/websocket",
"version": "0.3.0", "version": "0.3.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/utopia-php/websocket.git", "url": "https://github.com/utopia-php/websocket.git",
"reference": "629e53640b108eab43c7cc9ab375efade8622d43" "reference": "77004ba9f66a0ab6eb840a85b2af332fca8f6bd9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/utopia-php/websocket/zipball/629e53640b108eab43c7cc9ab375efade8622d43", "url": "https://api.github.com/repos/utopia-php/websocket/zipball/77004ba9f66a0ab6eb840a85b2af332fca8f6bd9",
"reference": "629e53640b108eab43c7cc9ab375efade8622d43", "reference": "77004ba9f66a0ab6eb840a85b2af332fca8f6bd9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4681,9 +4682,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/utopia-php/websocket/issues", "issues": "https://github.com/utopia-php/websocket/issues",
"source": "https://github.com/utopia-php/websocket/tree/0.3.0" "source": "https://github.com/utopia-php/websocket/tree/0.3.1"
}, },
"time": "2025-03-28T01:11:13+00:00" "time": "2025-05-09T12:57:42+00:00"
}, },
{ {
"name": "webmozart/assert", "name": "webmozart/assert",
@ -4812,16 +4813,16 @@
"packages-dev": [ "packages-dev": [
{ {
"name": "appwrite/sdk-generator", "name": "appwrite/sdk-generator",
"version": "0.40.15", "version": "0.40.16",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/appwrite/sdk-generator.git", "url": "https://github.com/appwrite/sdk-generator.git",
"reference": "65c708b931b29b3e01c5cc7504a734ce2cc3dc95" "reference": "f1f506da74033f0cb5a11e3dffcfd1ee8daf237d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/65c708b931b29b3e01c5cc7504a734ce2cc3dc95", "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/f1f506da74033f0cb5a11e3dffcfd1ee8daf237d",
"reference": "65c708b931b29b3e01c5cc7504a734ce2cc3dc95", "reference": "f1f506da74033f0cb5a11e3dffcfd1ee8daf237d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4857,9 +4858,9 @@
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
"support": { "support": {
"issues": "https://github.com/appwrite/sdk-generator/issues", "issues": "https://github.com/appwrite/sdk-generator/issues",
"source": "https://github.com/appwrite/sdk-generator/tree/0.40.15" "source": "https://github.com/appwrite/sdk-generator/tree/0.40.16"
}, },
"time": "2025-04-25T08:50:44+00:00" "time": "2025-05-09T12:06:09+00:00"
}, },
{ {
"name": "doctrine/annotations", "name": "doctrine/annotations",
@ -5086,16 +5087,16 @@
}, },
{ {
"name": "laravel/pint", "name": "laravel/pint",
"version": "v1.22.0", "version": "v1.22.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/pint.git", "url": "https://github.com/laravel/pint.git",
"reference": "7ddfaa6523a675fae5c4123ee38fc6bfb8ee4f36" "reference": "941d1927c5ca420c22710e98420287169c7bcaf7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/7ddfaa6523a675fae5c4123ee38fc6bfb8ee4f36", "url": "https://api.github.com/repos/laravel/pint/zipball/941d1927c5ca420c22710e98420287169c7bcaf7",
"reference": "7ddfaa6523a675fae5c4123ee38fc6bfb8ee4f36", "reference": "941d1927c5ca420c22710e98420287169c7bcaf7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -5107,11 +5108,11 @@
}, },
"require-dev": { "require-dev": {
"friendsofphp/php-cs-fixer": "^3.75.0", "friendsofphp/php-cs-fixer": "^3.75.0",
"illuminate/view": "^11.44.2", "illuminate/view": "^11.44.7",
"larastan/larastan": "^3.3.1", "larastan/larastan": "^3.4.0",
"laravel-zero/framework": "^11.36.1", "laravel-zero/framework": "^11.36.1",
"mockery/mockery": "^1.6.12", "mockery/mockery": "^1.6.12",
"nunomaduro/termwind": "^2.3", "nunomaduro/termwind": "^2.3.1",
"pestphp/pest": "^2.36.0" "pestphp/pest": "^2.36.0"
}, },
"bin": [ "bin": [
@ -5148,7 +5149,7 @@
"issues": "https://github.com/laravel/pint/issues", "issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint" "source": "https://github.com/laravel/pint"
}, },
"time": "2025-04-08T22:11:45+00:00" "time": "2025-05-08T08:38:12+00:00"
}, },
{ {
"name": "matthiasmullie/minify", "name": "matthiasmullie/minify",
@ -8242,7 +8243,7 @@
"prefer-stable": false, "prefer-stable": false,
"prefer-lowest": false, "prefer-lowest": false,
"platform": { "platform": {
"php": ">=8.0.0", "php": ">=8.3.0",
"ext-curl": "*", "ext-curl": "*",
"ext-imagick": "*", "ext-imagick": "*",
"ext-mbstring": "*", "ext-mbstring": "*",

View file

@ -104,7 +104,6 @@ class Create extends Action
'totalSize' => $deployment->getAttribute('sourceSize', 0), 'totalSize' => $deployment->getAttribute('sourceSize', 0),
'entrypoint' => $function->getAttribute('entrypoint'), 'entrypoint' => $function->getAttribute('entrypoint'),
'buildCommands' => $function->getAttribute('commands', ''), 'buildCommands' => $function->getAttribute('commands', ''),
'search' => implode(' ', [$deploymentId, $function->getAttribute('entrypoint')]),
'buildStartedAt' => null, 'buildStartedAt' => null,
'buildEndedAt' => null, 'buildEndedAt' => null,
'buildDuration' => null, 'buildDuration' => null,

View file

@ -147,7 +147,6 @@ class Create extends Base
'entrypoint' => $function->getAttribute('entrypoint', ''), 'entrypoint' => $function->getAttribute('entrypoint', ''),
'buildCommands' => $function->getAttribute('commands', ''), 'buildCommands' => $function->getAttribute('commands', ''),
'type' => 'manual', 'type' => 'manual',
'search' => implode(' ', [$deploymentId, $function->getAttribute('entrypoint', '')]),
'activate' => $activate, 'activate' => $activate,
])); ]));

View file

@ -120,7 +120,6 @@ class Create extends Action
'buildOutput' => $site->getAttribute('outputDirectory', ''), 'buildOutput' => $site->getAttribute('outputDirectory', ''),
'adapter' => $site->getAttribute('adapter', ''), 'adapter' => $site->getAttribute('adapter', ''),
'fallbackFile' => $site->getAttribute('fallbackFile', ''), 'fallbackFile' => $site->getAttribute('fallbackFile', ''),
'search' => implode(' ', [$deploymentId]),
'screenshotLight' => '', 'screenshotLight' => '',
'screenshotDark' => '', 'screenshotDark' => '',
'buildStartedAt' => null, 'buildStartedAt' => null,
@ -162,7 +161,6 @@ class Create extends Action
'deploymentResourceInternalId' => $site->getInternalId(), 'deploymentResourceInternalId' => $site->getInternalId(),
'status' => 'verified', 'status' => 'verified',
'certificateId' => '', 'certificateId' => '',
'search' => implode(' ', [$ruleId, $domain]),
'owner' => 'Appwrite', 'owner' => 'Appwrite',
'region' => $project->getAttribute('region') 'region' => $project->getAttribute('region')
])) ]))

View file

@ -160,7 +160,6 @@ class Create extends Base
'adapter' => $site->getAttribute('adapter', ''), 'adapter' => $site->getAttribute('adapter', ''),
'fallbackFile' => $site->getAttribute('fallbackFile', ''), 'fallbackFile' => $site->getAttribute('fallbackFile', ''),
'type' => 'manual', 'type' => 'manual',
'search' => implode(' ', [$deploymentId]),
'activate' => $activate, 'activate' => $activate,
])); ]));
@ -192,7 +191,6 @@ class Create extends Base
'deploymentResourceInternalId' => $site->getInternalId(), 'deploymentResourceInternalId' => $site->getInternalId(),
'status' => 'verified', 'status' => 'verified',
'certificateId' => '', 'certificateId' => '',
'search' => implode(' ', [$ruleId, $domain]),
'owner' => 'Appwrite', 'owner' => 'Appwrite',
'region' => $project->getAttribute('region') 'region' => $project->getAttribute('region')
])) ]))

View file

@ -396,7 +396,7 @@ class FunctionsCustomServerTest extends Scope
$deployment = $this->createTemplateDeployment( $deployment = $this->createTemplateDeployment(
$functionId, $functionId,
[ [
'functionId' => ID::unique(), 'resourceId' => ID::unique(),
'activate' => true, 'activate' => true,
'repository' => $starterTemplate['body']['providerRepositoryId'], 'repository' => $starterTemplate['body']['providerRepositoryId'],
'owner' => $starterTemplate['body']['providerOwner'], 'owner' => $starterTemplate['body']['providerOwner'],
@ -728,18 +728,13 @@ class FunctionsCustomServerTest extends Scope
], ],
]); ]);
$this->assertEquals($deployments['headers']['status-code'], 200); $this->assertEquals(200, $deployments['headers']['status-code']);
$this->assertCount(2, $deployments['body']['deployments']); $this->assertCount(2, $deployments['body']['deployments']);
$deployments = $this->listDeployments($functionId, [ $deployments = $this->listDeployments($functionId);
'search' => 'php-8.0'
]);
$this->assertEquals($deployments['headers']['status-code'], 200);
$this->assertEquals(3, $deployments['body']['total']);
$this->assertIsArray($deployments['body']['deployments']); $this->assertIsArray($deployments['body']['deployments']);
$this->assertCount(3, $deployments['body']['deployments']); $this->assertEquals(200, $deployments['headers']['status-code']);
$this->assertEquals($deployments['body']['deployments'][0]['$id'], $data['deploymentId']);
$deployments = $this->listDeployments( $deployments = $this->listDeployments(
$functionId, $functionId,

View file

@ -4454,13 +4454,12 @@ class ProjectsConsoleClientTest extends Scope
$response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId . '/dev-keys', array_merge([ $response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId . '/dev-keys', array_merge([
'content-type' => 'application/json', 'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [ ], $this->getHeaders()));
'search' => 'Dev'
]);
$this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(200, $response['headers']['status-code']);
$this->assertEquals(1, $response['body']['total']); $this->assertEquals(2, $response['body']['total']);
$this->assertEquals('Dev Key Test', $response['body']['devKeys'][0]['name']); $this->assertEquals('Key Test', $response['body']['devKeys'][0]['name']);
$this->assertEquals('Dev Key Test', $response['body']['devKeys'][1]['name']);
/** List dev keys with querying `expire` */ /** List dev keys with querying `expire` */
$response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId . '/dev-keys', array_merge([ $response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId . '/dev-keys', array_merge([

View file

@ -638,9 +638,7 @@ class SitesCustomServerTest extends Scope
'siteId' => ID::unique() 'siteId' => ID::unique()
]); ]);
$sites = $this->listSites([ $sites = $this->listSites();
'search' => $siteId,
]);
$this->assertEquals($sites['headers']['status-code'], 200); $this->assertEquals($sites['headers']['status-code'], 200);
$this->assertCount(1, $sites['body']['sites']); $this->assertCount(1, $sites['body']['sites']);