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

[BUG] Data source reference is removed when adding sample data #6850

Closed
Tracked by #6600
BionIT opened this issue May 29, 2024 · 1 comment
Closed
Tracked by #6600

[BUG] Data source reference is removed when adding sample data #6850

BionIT opened this issue May 29, 2024 · 1 comment
Assignees
Labels
bug Something isn't working multiple datasource multiple datasource project v2.15.0

Comments

@BionIT
Copy link
Collaborator

BionIT commented May 29, 2024

Describe the bug

In add sample data page when data source feature is turned on, the data source is added as reference to the index pattern. However, the behavior is lost due to https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6105/files#diff-fcdd5446e0a0ea3950cf54e2c6b9fee8011c5429016a8992380c62339e4d051fL63

To Reproduce
Steps to reproduce the behavior:

  1. Turn on data source
  2. Go to add sample data
  3. select a data source from picker.
  4. click on import
  5. go to dashboard management, then index pattern, and the data source connection is lost

Expected behavior
Data source should be the reference of the index pattern

OpenSearch Version
Please list the version of OpenSearch being used.

Dashboards Version
Please list the version of OpenSearch Dashboards being used.

Plugins

Please list all plugins currently enabled.

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Browser and version [e.g. 22]

Additional context

Add any other context about the problem here.

@wanglam
Copy link
Contributor

wanglam commented May 29, 2024

Hi @BionIT , Thank you for reporting this bug. I think the root cause is removed the data source reference by accident in this PR. Will add it back and add some unit tests in these code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working multiple datasource multiple datasource project v2.15.0
Projects
None yet
Development

No branches or pull requests

2 participants