Merge remote-tracking branch 'upstream/documents-db-api' into vector-db-api

This commit is contained in:
ArnabChatterjee20k
2025-12-08 20:31:07 +05:30
2 changed files with 3 additions and 7 deletions
+2 -1
View File
@@ -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',