1
0
Fork 0
mirror of synced 2024-07-02 05:00:33 +12:00

Merge pull request #6349 from appwrite/fix-empty-fulltext-search

Fix empty fulltext search
This commit is contained in:
Christy Jacob 2023-09-28 15:42:07 -04:00 committed by GitHub
commit 583f8dbc54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 7 deletions

14
composer.lock generated
View file

@ -2152,16 +2152,16 @@
},
{
"name": "utopia-php/database",
"version": "0.43.2",
"version": "0.43.3",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/database.git",
"reference": "f2626acd42665a9987c94af1c93bf20c28d55c9d"
"reference": "58d33c8d1216212edfba5d080e2f698487612aca"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/database/zipball/f2626acd42665a9987c94af1c93bf20c28d55c9d",
"reference": "f2626acd42665a9987c94af1c93bf20c28d55c9d",
"url": "https://api.github.com/repos/utopia-php/database/zipball/58d33c8d1216212edfba5d080e2f698487612aca",
"reference": "58d33c8d1216212edfba5d080e2f698487612aca",
"shasum": ""
},
"require": {
@ -2202,9 +2202,9 @@
],
"support": {
"issues": "https://github.com/utopia-php/database/issues",
"source": "https://github.com/utopia-php/database/tree/0.43.2"
"source": "https://github.com/utopia-php/database/tree/0.43.3"
},
"time": "2023-09-07T19:04:33+00:00"
"time": "2023-09-28T01:51:22+00:00"
},
{
"name": "utopia-php/domains",
@ -6019,5 +6019,5 @@
"platform-overrides": {
"php": "8.0"
},
"plugin-api-version": "2.6.0"
"plugin-api-version": "2.3.0"
}

View file

@ -595,6 +595,18 @@ trait UsersBase
$this->assertCount(1, $response['body']['users']);
$this->assertEquals($response['body']['users'][0]['$id'], $data['userId']);
$response = $this->client->call(Client::METHOD_GET, '/users', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [
'search' => '>',
]);
$this->assertEquals($response['headers']['status-code'], 200);
$this->assertNotEmpty($response['body']);
$this->assertEmpty($response['body']['users']);
$this->assertCount(0, $response['body']['users']);
/**
* Test for FAILURE
*/