Skip to content

Commit

Permalink
[MD] Fix view single document issue by updating low-level search call…
Browse files Browse the repository at this point in the history
… param (#2431)

* Add datasource param to low-level search call in Discover
* update change log

Signed-off-by: Su <szhongna@amazon.com>
(cherry picked from commit 1f639b0)
  • Loading branch information
zhongnansu authored and github-actions[bot] committed Oct 3, 2022
1 parent 679866e commit 0e95721
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
* [Vis Builder] Fixes auto bounds for timeseries bar chart visualization ([2401](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2401))
* [Vis Builder] Fixes visualization shift when editing agg ([2401](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2401))
* [Vis Builder] Renames "Histogram" to "Bar" in vis type picker ([2401](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2401))
* [MD] Add data source param to low-level search call in Discover ([#2431](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2431))

### 🚞 Infrastructure

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function useOpenSearchDocSearch({

const { rawResponse } = await getServices()
.data.search.search({
dataSourceId: indexPatternEntity.dataSourceRef?.id,
params: {
index,
body: buildSearchBody(id, indexPatternEntity),
Expand Down

0 comments on commit 0e95721

Please sign in to comment.