From b4a907447588870bd7378e89eb029bc09825a5b7 Mon Sep 17 00:00:00 2001 From: abbyhu2000 Date: Thu, 13 Jun 2024 22:02:18 +0000 Subject: [PATCH 1/2] highlight the anchor row Signed-off-by: abbyhu2000 --- .../components/default_discover_table/table_row.tsx | 2 +- .../discover/public/application/doc_views/doc_views_types.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/discover/public/application/components/default_discover_table/table_row.tsx b/src/plugins/discover/public/application/components/default_discover_table/table_row.tsx index 305af69a28ba..455230d33fda 100644 --- a/src/plugins/discover/public/application/components/default_discover_table/table_row.tsx +++ b/src/plugins/discover/public/application/components/default_discover_table/table_row.tsx @@ -48,7 +48,7 @@ const TableRowUI = ({ ]); const tableRow = ( - + = SearchResponse['hits']['hits'][number]; +export type OpenSearchSearchHit = SearchResponse['hits']['hits'][number] & { + isAnchor?: boolean; +}; export interface FieldMapping { filterable?: boolean; From 7b666db3cd770a1481583b6e7032a82139e96673 Mon Sep 17 00:00:00 2001 From: "opensearch-changeset-bot[bot]" <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Date: Thu, 13 Jun 2024 22:05:44 +0000 Subject: [PATCH 2/2] Changeset file for PR #7025 created/updated --- changelogs/fragments/7025.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/7025.yml diff --git a/changelogs/fragments/7025.yml b/changelogs/fragments/7025.yml new file mode 100644 index 000000000000..ab61343e7a2b --- /dev/null +++ b/changelogs/fragments/7025.yml @@ -0,0 +1,2 @@ +fix: +- Highlight the anchor row in surrounding doc view ([#7025](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7025)) \ No newline at end of file