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] Sample visualization based on saved search could not find correct index pattern when added via add sample data page #6857

Closed
Tracked by #6600
BionIT opened this issue May 29, 2024 · 2 comments
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
Index pattern id is prefixed with data source id when added via add sample data page, see https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/src/plugins/home/server/services/sample_data/data_sets/util.ts#L70, however, only dashboards' reference is changed to use the new index pattern id, visualization reference is unchanged causing broken visualization with error in finding the index pattern which lacks the prefix

Screenshot 2024-05-29 at 4 21 45 PM

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
Visualization added via add sample data should not break

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.

@BionIT BionIT added bug Something isn't working untriaged labels May 29, 2024
@kavilla
Copy link
Member

kavilla commented May 30, 2024

Watch out when addressing this.

Index pattern ids can be custom as well

@zhongnansu
Copy link
Member

zhongnansu commented Jun 6, 2024

multiple type of sample visualizations, in different sample data set are not working, create the issue for each of them for tracking, since they each requires different fix

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

3 participants