Merge pull request #6349 from appwrite/fix-empty-fulltext-search
Fix empty fulltext search
This commit is contained in:
commit
583f8dbc54
2 changed files with 19 additions and 7 deletions
14
composer.lock
generated
14
composer.lock
generated
|
@ -2152,16 +2152,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "utopia-php/database",
|
"name": "utopia-php/database",
|
||||||
"version": "0.43.2",
|
"version": "0.43.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/utopia-php/database.git",
|
"url": "https://github.com/utopia-php/database.git",
|
||||||
"reference": "f2626acd42665a9987c94af1c93bf20c28d55c9d"
|
"reference": "58d33c8d1216212edfba5d080e2f698487612aca"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/utopia-php/database/zipball/f2626acd42665a9987c94af1c93bf20c28d55c9d",
|
"url": "https://api.github.com/repos/utopia-php/database/zipball/58d33c8d1216212edfba5d080e2f698487612aca",
|
||||||
"reference": "f2626acd42665a9987c94af1c93bf20c28d55c9d",
|
"reference": "58d33c8d1216212edfba5d080e2f698487612aca",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -2202,9 +2202,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.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",
|
"name": "utopia-php/domains",
|
||||||
|
@ -6019,5 +6019,5 @@
|
||||||
"platform-overrides": {
|
"platform-overrides": {
|
||||||
"php": "8.0"
|
"php": "8.0"
|
||||||
},
|
},
|
||||||
"plugin-api-version": "2.6.0"
|
"plugin-api-version": "2.3.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -595,6 +595,18 @@ trait UsersBase
|
||||||
$this->assertCount(1, $response['body']['users']);
|
$this->assertCount(1, $response['body']['users']);
|
||||||
$this->assertEquals($response['body']['users'][0]['$id'], $data['userId']);
|
$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
|
* Test for FAILURE
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue