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] DataSource info is missing in default query when click Discover from other pages #8582

Open
gaobinlong opened this issue Oct 14, 2024 · 0 comments
Labels
bug Something isn't working discover for discover reinvent v2.18.0

Comments

@gaobinlong
Copy link
Contributor

gaobinlong commented Oct 14, 2024

Describe the bug

When we click Discover sidebar from other pages, we fetch the default dataset to enrich the default query, but we don't fetch the data source info and enrich the default dataset, resulting in some unexpected behavior such as:

  1. The selected dataset doesn't show the dataSource prefix
  2. Some query enhancement like query_assistant_ppl doesn't show the banner because we cannot check feature flag in the correct data source.

To Reproduce
Steps to reproduce the behavior:

  1. Go to some other pages except the Discover.
  2. Click on 'Discover' link the sidebar
  3. We can see that the selected dataset doesn't show the datasource prefix.
  4. We can also check the url, dataSource field doesn't exist in the dataset field, but if we reselect that dataset, then everything is fine.

Expected behavior
As described above.

OpenSearch Version
3.0.0

Dashboards Version
3.0.0

Plugins

Anomaly detection
Observability
Workspace

Screenshots
URL: https://future.playground.opensearch.org/w/c0kZbl/app/data-explorer/discover#?_a=(discover:(columns:!(_source),isDirty:!f,sort:!()),metadata:(view:discover))&_q=(filters:!(),query:(dataset:(id:c0kZbl_c50be440-86dd-11ef-8943-bda9cabad8b1_90943e30-9a47-11e8-b64d-95841ca0b247,timeFieldName:timestamp,title:opensearch_dashboards_sample_data_logs,type:INDEX_PATTERN),language:PPL,query:'source%20%3D%20opensearch_dashboards_sample_data_logs'))&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))

image

URL: https://future.playground.opensearch.org/w/c0kZbl/app/data-explorer/discover#?_a=(discover:(columns:!(_source),isDirty:!f,sort:!()),metadata:(view:discover))&_q=(filters:!(),query:(dataset:(dataSource:(id:c50be440-86dd-11ef-8943-bda9cabad8b1,title:'Olly@2.17.1',type:OpenSearch),id:c0kZbl_c50be440-86dd-11ef-8943-bda9cabad8b1_90943e30-9a47-11e8-b64d-95841ca0b247,timeFieldName:timestamp,title:opensearch_dashboards_sample_data_logs,type:INDEX_PATTERN),language:PPL,query:'source%20%3D%20opensearch_dashboards_sample_data_logs'))&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))

image

Host/Environment (please complete the following information):

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

Additional context

bugfix.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working discover for discover reinvent v2.18.0
Projects
None yet
Development

No branches or pull requests

2 participants