{`${passingTests.length} tests`}
-{`${passingTests.length} tests`}
+{`${columnTestLength} tests`}
+ )} +onThreadLinkSelect?.(descriptionThread.entityLink) }> diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/FeedUtils.ts b/openmetadata-ui/src/main/resources/ui/src/utils/FeedUtils.ts index 0e870c0204d..45ab0bb791a 100644 --- a/openmetadata-ui/src/main/resources/ui/src/utils/FeedUtils.ts +++ b/openmetadata-ui/src/main/resources/ui/src/utils/FeedUtils.ts @@ -143,7 +143,7 @@ export async function suggestions(searchTerm: string, mentionChar: string) { return { id: hit._id, - value: `@${hit._source.display_name}`, + value: `@${hit._source.name ?? hit._source.display_name}`, link: `${document.location.protocol}//${document.location.host}/${ entityUrlMap[entityType as keyof typeof entityUrlMap] }/${hit._source.name}`, @@ -158,7 +158,7 @@ export async function suggestions(searchTerm: string, mentionChar: string) { return { id: hit._id, - value: `@${hit._source.display_name}`, + value: `@${hit._source.name ?? hit._source.display_name}`, link: `${document.location.protocol}//${document.location.host}/${ entityUrlMap[entityType as keyof typeof entityUrlMap] }/${hit._source.name}`, @@ -174,10 +174,12 @@ export async function suggestions(searchTerm: string, mentionChar: string) { const hits = data.data.hits.hits; // eslint-disable-next-line @typescript-eslint/no-explicit-any hashValues = hits.map((hit: any) => { + const entityType = hit._source.entity_type; + return { id: hit._id, - value: `#${hit._source.name}`, - link: `${document.location.protocol}//${document.location.host}/${hit._source.entity_type}/${hit._source.fqdn}`, + value: `#${entityType}/${hit._source.name}`, + link: `${document.location.protocol}//${document.location.host}/${entityType}/${hit._source.fqdn}`, }; }); } else { @@ -185,10 +187,12 @@ export async function suggestions(searchTerm: string, mentionChar: string) { const hits = data.data.suggest['table-suggest'][0]['options']; // eslint-disable-next-line @typescript-eslint/no-explicit-any hashValues = hits.map((hit: any) => { + const entityType = hit._source.entity_type; + return { id: hit._id, - value: `#${hit._source.name}`, - link: `${document.location.protocol}//${document.location.host}/${hit._source.entity_type}/${hit._source.fqdn}`, + value: `#${entityType}/${hit._source.name}`, + link: `${document.location.protocol}//${document.location.host}/${entityType}/${hit._source.fqdn}`, }; }); } diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/TableUtils.tsx b/openmetadata-ui/src/main/resources/ui/src/utils/TableUtils.tsx index dd886d537ec..7cf64c1aee4 100644 --- a/openmetadata-ui/src/main/resources/ui/src/utils/TableUtils.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/utils/TableUtils.tsx @@ -315,12 +315,18 @@ export const getTableTestsValue = (tableTestCase: TableTest[]) => {
{`${failingTests.length}/${tableTestLength} tests failing`}
{`${passingTests.length} tests`}
-{`${passingTests.length} tests`}
+{`${tableTestLength} tests`}
+ )} +