This commit is contained in:
Timothy J. Baek
2024-10-02 06:19:09 -07:00
parent 7f51ef1838
commit 4aca1e86ad
3 changed files with 31 additions and 13 deletions

View File

@@ -80,7 +80,7 @@
name: 'All Documents',
legacy: true,
type: 'collection',
description: 'Deprecated (legacy collection), please use the new knowledge base.',
description: 'Deprecated (legacy collection), please create a new knowledge base.',
title: $i18n.t('All Documents'),
collection_names: legacy_documents.map((item) => item.id)
},
@@ -93,7 +93,7 @@
name: tag,
legacy: true,
type: 'collection',
description: 'Deprecated (legacy collection), please use the new knowledge base.',
description: 'Deprecated (legacy collection), please create a new knowledge base.',
collection_names: legacy_documents
.filter((item) => (item?.meta?.tags ?? []).map((tag) => tag.name).includes(tag))
.map((item) => item.id)

View File

@@ -21,7 +21,8 @@
name: 'All Documents',
legacy: true,
type: 'collection',
description: 'Deprecated (legacy collection), please use the new knowledge base.',
description: 'Deprecated (legacy collection), please create a new knowledge base.',
title: $i18n.t('All Documents'),
collection_names: legacy_documents.map((item) => item.id)
},
@@ -34,7 +35,8 @@
name: tag,
legacy: true,
type: 'collection',
description: 'Deprecated (legacy collection), please use the new knowledge base.',
description: 'Deprecated (legacy collection), please create a new knowledge base.',
collection_names: legacy_documents
.filter((item) => (item?.meta?.tags ?? []).map((tag) => tag.name).includes(tag))
.map((item) => item.id)