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

Fix data source info is missing in default query when click Discover from other pages #8583

Merged
merged 15 commits into from
Nov 1, 2024

Conversation

gaobinlong
Copy link
Contributor

@gaobinlong gaobinlong commented Oct 14, 2024

Description

When we click Discover sidebar from other pages, we don't fetch the data source info and enrich the default dataset, so that some unexpected behavior happens.

Issues Resolved

#8582

Screenshot

No UI change.

The direct impact is that when click Discover from other pages, the selected default dataset always shows the data source prefix, and makes other components work.

image

Testing the changes

  1. Create an index pattern in an external data source, and set it as the default dataset.
  2. Click Discover from other pages, check if the selected dataset shows the data source prefix, and also check if the url contains data source info.

Changelog

Check List

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

Copy link
Contributor

ℹ️ Manual Changeset Creation Reminder

Please ensure manual commit for changeset file 8583.yml under folder changelogs/fragments to complete this PR.

If you want to use the available OpenSearch Changeset Bot App to avoid manual creation of changeset file you can install it in your forked repository following this link.

For more information about formatting of changeset files, please visit OpenSearch Auto Changeset and Release Notes Tool.

Signed-off-by: Gao Binlong <[email protected]>

Add changelog

Signed-off-by: gaobinlong <[email protected]>

Modify changelog

Signed-off-by: gaobinlong <[email protected]>
@gaobinlong
Copy link
Contributor Author

@SuZhou-Joe @ruanyl could you help to review this PR, thank you!

@ashwin-pc
Copy link
Member

@gaobinlong we have merged ina few fixes since you raised this PR. IS this still needed?

@gaobinlong
Copy link
Contributor Author

@gaobinlong we have merged ina few fixes since you raised this PR. IS this still needed?

@ashwin-pc I've tested the newest main branch, the issue still exists, so this PR is still needed.

@ashwin-pc
Copy link
Member

@gaobinlong Im not able to reproduce the issue originally linked in the PR. I do see the daatsource name missing, but the data itself is correct. Is that what you are seeing as well?

@kavilla
Copy link
Member

kavilla commented Nov 1, 2024

Great catch! Thank you @gaobinlong, going to merge in. Any feedback on the current dataset type config? Was it straight forward? Or any issues you had while implementing.

@kavilla kavilla merged commit 97f4734 into opensearch-project:main Nov 1, 2024
80 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 1, 2024
…from other pages (#8583)

When we click Discover sidebar from other pages, we don't fetch the data source info and enrich the default dataset, so that some unexpected behavior happens.
Issues Resolved

#8582

Signed-off-by: gaobinlong <[email protected]>
(cherry picked from commit 97f4734)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 1, 2024
…from other pages (#8583)

When we click Discover sidebar from other pages, we don't fetch the data source info and enrich the default dataset, so that some unexpected behavior happens.
Issues Resolved

#8582

Signed-off-by: gaobinlong <[email protected]>
(cherry picked from commit 97f4734)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@kavilla
Copy link
Member

kavilla commented Nov 1, 2024

One thing to note: recent datasets could be stale so best way to recreate the original issue was to start in a fresh session set a default index to point to a remote cluster then navigate to Discover

abbyhu2000 pushed a commit that referenced this pull request Nov 12, 2024
…from other pages (#8583) (#8793)

When we click Discover sidebar from other pages, we don't fetch the data source info and enrich the default dataset, so that some unexpected behavior happens.
Issues Resolved

#8582


(cherry picked from commit 97f4734)

Signed-off-by: gaobinlong <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
abbyhu2000 pushed a commit that referenced this pull request Nov 12, 2024
…from other pages (#8583) (#8794)

When we click Discover sidebar from other pages, we don't fetch the data source info and enrich the default dataset, so that some unexpected behavior happens.
Issues Resolved

#8582


(cherry picked from commit 97f4734)

Signed-off-by: gaobinlong <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants