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

[Draft][PoC] multiple OpenSearch data source PoC #1430

Conversation

zengyan-amazon
Copy link
Member

Description

This is the PoC of enabling OSD to support visualizations with multiple data sources

Issues Resolved

#1388

Check List

  • New functionality includes testing.
    • All tests pass
      • yarn test:jest
      • yarn test:jest_integration
      • yarn test:ftr
  • New functionality has been documented.
  • Commits are signed per the DCO using --signoff

Copy link
Member

@kavilla kavilla left a 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 @@
/*
Copy link
Contributor

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;
Copy link
Contributor

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?

@tmarkley
Copy link
Contributor

tmarkley commented May 3, 2022

Any particular reason why this PR is targeting 1.2 instead of main?

@zengyan-amazon
Copy link
Member Author

Oh, this is just a PoC PR that is meant for discussion, no plan to merge in, close it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC] Enable OpenSearch Dashboards to support multiple OpenSearch clusters
3 participants