-
Notifications
You must be signed in to change notification settings - Fork 916
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
[Draft][PoC] multiple OpenSearch data source PoC #1430
[Draft][PoC] multiple OpenSearch data source PoC #1430
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking to ensure stability for 2.0.0-rc-1.
@zengyan-amazon do we think we can convert this a draft PR?
@@ -0,0 +1,117 @@ | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use the simplified header for new files:
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
const dataSource = request.dataSource ? await context.core.savedObjects.client.get('data-source', request.dataSource) : undefined; | ||
logger.info(JSON.stringify(dataSource)); | ||
const dataSourceObj = dataSource!.attributes as any; | ||
const url = dataSourceObj.endpoint.url; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This throws an exception when dataSource
is undefined, right? Can we define the type for dataSourceObj
?
Any particular reason why this PR is targeting |
Oh, this is just a PoC PR that is meant for discussion, no plan to merge in, close it |
Description
This is the PoC of enabling OSD to support visualizations with multiple data sources
Issues Resolved
#1388
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr