From 83b7b4e5998b2e971abb47844a5068459bbb9fd8 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Mon, 23 Feb 2026 13:05:12 +0530 Subject: [PATCH] updated --- composer.json | 3 +- composer.lock | 84 ++++++++----------- .../Databases/DocumentsDB/DatabasesBase.php | 20 ----- 3 files changed, 38 insertions(+), 69 deletions(-) diff --git a/composer.json b/composer.json index 03ee732705..b75af0ec2b 100644 --- a/composer.json +++ b/composer.json @@ -57,7 +57,7 @@ "utopia-php/config": "1.*", "utopia-php/console": "0.1.*", "utopia-php/database": "5.*", - "utopia-php/agents": "dev-chore-bump-fetch as 0.4.7", + "utopia-php/agents": "1.*", "utopia-php/detector": "0.2.*", "utopia-php/domains": "1.*", "utopia-php/emails": "0.6.*", @@ -106,7 +106,6 @@ }, "config": { "platform": { - "php": "8.3" }, "allow-plugins": { "php-http/discovery": true, diff --git a/composer.lock b/composer.lock index 4d899ac3b0..4ba5f96947 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "cb4f326990fd366ab12fbede1bb15bbb", + "content-hash": "9982b1af032ade7b23f2aa5c4cf69432", "packages": [ { "name": "adhocore/jwt", @@ -3403,16 +3403,16 @@ }, { "name": "utopia-php/agents", - "version": "dev-chore-bump-fetch", + "version": "1.1.1", "source": { "type": "git", "url": "https://github.com/utopia-php/agents.git", - "reference": "02da80fe80cfa76cac2c2690ee4d8d933bd5c4ab" + "reference": "77ec73c02f91a571aabee3f72ac5cd49a1d1f39c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/agents/zipball/02da80fe80cfa76cac2c2690ee4d8d933bd5c4ab", - "reference": "02da80fe80cfa76cac2c2690ee4d8d933bd5c4ab", + "url": "https://api.github.com/repos/utopia-php/agents/zipball/77ec73c02f91a571aabee3f72ac5cd49a1d1f39c", + "reference": "77ec73c02f91a571aabee3f72ac5cd49a1d1f39c", "shasum": "" }, "require": { @@ -3451,9 +3451,9 @@ ], "support": { "issues": "https://github.com/utopia-php/agents/issues", - "source": "https://github.com/utopia-php/agents/tree/chore-bump-fetch" + "source": "https://github.com/utopia-php/agents/tree/1.1.1" }, - "time": "2026-01-21T08:07:23+00:00" + "time": "2026-02-19T08:42:23+00:00" }, { "name": "utopia-php/analytics", @@ -3851,16 +3851,16 @@ }, { "name": "utopia-php/database", - "version": "5.3.1", + "version": "5.3.2", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "e3305f6ca64eb5dd715e30212fd32d5d834a3a46" + "reference": "19305fc487df4f7b990350463914c1113cc6dab1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/e3305f6ca64eb5dd715e30212fd32d5d834a3a46", - "reference": "e3305f6ca64eb5dd715e30212fd32d5d834a3a46", + "url": "https://api.github.com/repos/utopia-php/database/zipball/19305fc487df4f7b990350463914c1113cc6dab1", + "reference": "19305fc487df4f7b990350463914c1113cc6dab1", "shasum": "" }, "require": { @@ -3903,9 +3903,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/5.3.1" + "source": "https://github.com/utopia-php/database/tree/5.3.2" }, - "time": "2026-02-18T07:15:40+00:00" + "time": "2026-02-18T11:59:15+00:00" }, { "name": "utopia-php/detector", @@ -4002,16 +4002,16 @@ }, { "name": "utopia-php/dns", - "version": "1.6.3", + "version": "1.6.5", "source": { "type": "git", "url": "https://github.com/utopia-php/dns.git", - "reference": "c46a13c42bc19365985264a6fdaaaf7d8e736d3e" + "reference": "574327f0f5fabefa7048030c5634cde33ad10640" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/dns/zipball/c46a13c42bc19365985264a6fdaaaf7d8e736d3e", - "reference": "c46a13c42bc19365985264a6fdaaaf7d8e736d3e", + "url": "https://api.github.com/repos/utopia-php/dns/zipball/574327f0f5fabefa7048030c5634cde33ad10640", + "reference": "574327f0f5fabefa7048030c5634cde33ad10640", "shasum": "" }, "require": { @@ -4053,9 +4053,9 @@ ], "support": { "issues": "https://github.com/utopia-php/dns/issues", - "source": "https://github.com/utopia-php/dns/tree/1.6.3" + "source": "https://github.com/utopia-php/dns/tree/1.6.5" }, - "time": "2026-02-17T10:45:46+00:00" + "time": "2026-02-19T16:06:46+00:00" }, { "name": "utopia-php/domains", @@ -4268,16 +4268,16 @@ }, { "name": "utopia-php/framework", - "version": "0.33.39", + "version": "0.33.40", "source": { "type": "git", "url": "https://github.com/utopia-php/http.git", - "reference": "409a258814d664d3a50fa2f48b6695679334d30b" + "reference": "0ba25e1282c6a2f849053f7ccf28d567c2c321b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/http/zipball/409a258814d664d3a50fa2f48b6695679334d30b", - "reference": "409a258814d664d3a50fa2f48b6695679334d30b", + "url": "https://api.github.com/repos/utopia-php/http/zipball/0ba25e1282c6a2f849053f7ccf28d567c2c321b1", + "reference": "0ba25e1282c6a2f849053f7ccf28d567c2c321b1", "shasum": "" }, "require": { @@ -4311,9 +4311,9 @@ ], "support": { "issues": "https://github.com/utopia-php/http/issues", - "source": "https://github.com/utopia-php/http/tree/0.33.39" + "source": "https://github.com/utopia-php/http/tree/0.33.40" }, - "time": "2026-02-11T06:33:42+00:00" + "time": "2026-02-19T13:00:08+00:00" }, { "name": "utopia-php/image", @@ -5007,16 +5007,16 @@ }, { "name": "utopia-php/storage", - "version": "1.0.0", + "version": "1.0.1", "source": { "type": "git", "url": "https://github.com/utopia-php/storage.git", - "reference": "f672e8865938e5d1d6dc3bd149ceba4e5582199e" + "reference": "f014be445f0baa635d0764e1673196f412511618" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/storage/zipball/f672e8865938e5d1d6dc3bd149ceba4e5582199e", - "reference": "f672e8865938e5d1d6dc3bd149ceba4e5582199e", + "url": "https://api.github.com/repos/utopia-php/storage/zipball/f014be445f0baa635d0764e1673196f412511618", + "reference": "f014be445f0baa635d0764e1673196f412511618", "shasum": "" }, "require": { @@ -5054,9 +5054,9 @@ ], "support": { "issues": "https://github.com/utopia-php/storage/issues", - "source": "https://github.com/utopia-php/storage/tree/1.0.0" + "source": "https://github.com/utopia-php/storage/tree/1.0.1" }, - "time": "2026-02-17T04:37:10+00:00" + "time": "2026-02-23T05:59:32+00:00" }, { "name": "utopia-php/system", @@ -5439,16 +5439,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "1.9.3", + "version": "1.10.2", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "5a8a304e404c84539f3ac6562c736f8c7ef2bef2" + "reference": "b31e6b4209ecad46d2fef509dc59f1945d0e83cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/5a8a304e404c84539f3ac6562c736f8c7ef2bef2", - "reference": "5a8a304e404c84539f3ac6562c736f8c7ef2bef2", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/b31e6b4209ecad46d2fef509dc59f1945d0e83cb", + "reference": "b31e6b4209ecad46d2fef509dc59f1945d0e83cb", "shasum": "" }, "require": { @@ -5484,9 +5484,9 @@ "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/1.9.3" + "source": "https://github.com/appwrite/sdk-generator/tree/1.10.2" }, - "time": "2026-02-17T11:48:05+00:00" + "time": "2026-02-23T04:04:15+00:00" }, { "name": "doctrine/annotations", @@ -8938,12 +8938,6 @@ } ], "aliases": [ - { - "package": "utopia-php/agents", - "version": "dev-chore-bump-fetch", - "alias": "0.4.7", - "alias_normalized": "0.4.7.0" - }, { "package": "utopia-php/migration", "version": "dev-improve-columns-setup", @@ -8953,7 +8947,6 @@ ], "minimum-stability": "dev", "stability-flags": { - "utopia-php/agents": 20, "utopia-php/migration": 20 }, "prefer-stable": true, @@ -8976,8 +8969,5 @@ "platform-dev": { "ext-fileinfo": "*" }, - "platform-overrides": { - "php": "8.3" - }, "plugin-api-version": "2.9.0" } diff --git a/tests/e2e/Services/Databases/DocumentsDB/DatabasesBase.php b/tests/e2e/Services/Databases/DocumentsDB/DatabasesBase.php index cf0f006d85..ddc7d2bce3 100644 --- a/tests/e2e/Services/Databases/DocumentsDB/DatabasesBase.php +++ b/tests/e2e/Services/Databases/DocumentsDB/DatabasesBase.php @@ -2626,26 +2626,6 @@ trait DatabasesBase ]); $this->assertEquals(400, $uniqueIndex['headers']['status-code']); - $this->client->call(Client::METHOD_POST, '/documentsdb/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'documentId' => ID::unique(), - 'data' => [ - 'movieTitle' => 'Captain America', - 'releaseYear' => 1944, - 'actors' => [ - 'Chris Evans', - 'Samuel Jackson', - ] - ], - 'permissions' => [ - Permission::read(Role::user(ID::custom($this->getUser()['$id']))), - Permission::update(Role::user(ID::custom($this->getUser()['$id']))), - Permission::delete(Role::user(ID::custom($this->getUser()['$id']))), - ] - ]); - // test for failure $this->assertEventually(function () use ($databaseId, $data) { $duplicate = $this->client->call(Client::METHOD_POST, '/documentsdb/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents', array_merge([