mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge remote-tracking branch 'upstream/documents-db-api' into vector-db-api
This commit is contained in:
@@ -68,6 +68,7 @@ class StatsUsage extends Action
|
||||
METRIC_COLLECTIONS => true,
|
||||
METRIC_DOCUMENTS => true,
|
||||
METRIC_DATABASES_STORAGE => true,
|
||||
METRIC_DATABASES_STORAGE_DOCUMENTSDB => true,
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -501,7 +502,7 @@ class StatsUsage extends Action
|
||||
foreach ($this->skipParentIdMetrics as $skipMetric) {
|
||||
$metricParts = explode('.', $stat->getAttribute('metric'));
|
||||
$metric = implode('.', in_array($metricParts[0], self::DATABASE_PREFIXES) ? array_slice($metricParts, 1) : $metricParts);
|
||||
if (str_ends_with($metric, $metric)) {
|
||||
if (str_ends_with($metric, $skipMetric)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1362,12 +1362,7 @@ trait DatabasesBase
|
||||
|
||||
$this->assertEquals(400, $fulltextArray['headers']['status-code']);
|
||||
|
||||
// MongoDB only allows one fulltext index per collection, so it returns a different error
|
||||
if ($this->isMongoDB()) {
|
||||
$this->assertEquals('There is already a fulltext index in the collection', $fulltextArray['body']['message']);
|
||||
} else {
|
||||
$this->assertEquals('Creating indexes on array attributes is not currently supported.', $fulltextArray['body']['message']);
|
||||
}
|
||||
$this->assertEquals('Creating indexes on array attributes is not currently supported.', $fulltextArray['body']['message']);
|
||||
|
||||
$actorsArray = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $data['moviesId'] . '/indexes', array_merge([
|
||||
'content-type' => 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user