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] Some search labels are lost when you use "Back" from "Visualize" #6643

Closed
ssantichaivekin opened this issue Apr 25, 2024 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@ssantichaivekin
Copy link

Describe the bug

In OpenSearch Dashboard Discover, when I use my browser's back button after using the "Visualize" feature, some search labels are lost.

To Reproduce
Steps to reproduce the behavior:

  1. Go to OpenSearch Dashboard PlayGround, go to Discover, and choose the sample_data_ecommerce example (link)
  2. Click on + on a specific _id to use that specific id as a filter
  3. On the left side, hover over _index selected fields so a button appear, click on that button and then click Visualize
  4. Use the browser's "back" button to go the the previous URL
  5. The filter on Step 2 disappear

Expected behavior
The filter on Step 2 stays the same.

OpenSearch Version
The reproduction was in v2.13.0, but I also saw this problem in v2.11.0 on OpenSearch_2_11_R20231113-P4 (AWS OSS)

Screenshots
I have a screen recording here Link (not sure why I couldn't upload the video to github)

Host/Environment (please complete the following information):

  • OS: macOS
  • Browser and version: Chrome Version 124.0.6367.62 (Official Build) (arm64)
@ssantichaivekin ssantichaivekin added bug Something isn't working untriaged labels Apr 25, 2024
@ssantichaivekin
Copy link
Author

This may be related to #5206

@abbyhu2000
Copy link
Member

abbyhu2000 commented May 14, 2024

This is the expected behavior.

You can select pin filters across apps to pin the filter so the filter will not disappear when going back to discover page from visualize page. Please reopen if there are further issues.

@ssantichaivekin
Copy link
Author

I tried enabling pin filters across apps but it did not fix the issue. It seems like this only occurs when you press "back" from "visualize" and not when, say, you go to google.com and press back. It also seems that if you go to Browser history and click the second entry in reverse chronological order (the first being the current page you are on) -- it also redirects with the filters being populated correctly.

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

No branches or pull requests

2 participants