Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update error message in timeline visualization when MDS disabled #7069

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/7069.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Update error message in timeline visualization when MDS disabled ([#7069](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7069))
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('fetchDataSourceIdByName()', () => {
await expect(
fetchDataSourceIdByName({ ...config, data_source_name: 'Some Data Source' }, client)
).rejects.toThrowError(
'To query from multiple data sources, first enable the data source feature'
'data_source_name is not supported. Contact your administrator to start using multiple data sources'
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export const fetchDataSourceIdByName = async (
}

if (!getDataSourceEnabled().enabled) {
throw new Error('To query from multiple data sources, first enable the data source feature');
throw new Error(
'data_source_name is not supported. Contact your administrator to start using multiple data sources'
);
}

const dataSources = await client.find<DataSourceAttributes>({
Expand Down
Loading