feat(elasticsearch): show index aliases on sidebar rows
This commit is contained in:
1 parent
6299d62125
commit
61bd3cdf62
22 files changed
+432
-51
No files matched your search
@@ -3863,7 +3863,7 @@ export async function mongoCloneCollection(connectionId: string, database: strin
|
||||
|
||||
export async function elasticsearchListIndices(connectionId: string): Promise<string[]> {
|
||||
const collections = await documentListCollections(connectionId, "default");
|
||||
return collections.map((c) => c.name);
|
||||
return [...new Set(collections.flatMap((collection) => [collection.name, ...(collection.aliases ?? [])].filter((name) => name.trim())))];
|
||||
}
|
||||
|
||||
/** Lists every Meilisearch index visible to the current connection credentials. */
|
||||
|
||||
@@ -3951,7 +3951,7 @@ export async function vectorRenameCollection(connectionId: string, database: str
|
||||
|
||||
export async function elasticsearchListIndices(connectionId: string): Promise<string[]> {
|
||||
const collections = await documentListCollections(connectionId, "default");
|
||||
return collections.map((c) => c.name);
|
||||
return [...new Set(collections.flatMap((collection) => [collection.name, ...(collection.aliases ?? [])].filter((name) => name.trim())))];
|
||||
}
|
||||
|
||||
/** Lists every Meilisearch index visible to the current connection credentials. */
|
||||
|
||||
Reference in new issue
Block a user