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

[Data Explorer][Discover 2.0] Shared permalink/snapshot URL does not keep filters #5248

Closed
karel-m opened this issue Oct 9, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@karel-m
Copy link

karel-m commented Oct 9, 2023

Describe the bug

URLs shared as permalink/snapshot does not keep filters

To Reproduce

  1. Go to - OpenSearch Dashboards >> Discover
  2. Choose some columns (in my example: application,instanceName,message)
  3. At this point the URL is:

https://example.com/app/data-explorer/discover#?_a=(discover:(columns:!(application,instanceName,message),isDirty:!f,sort:!()),metadata:(indexPattern:'28a2fb90-2b97-11ee-8687-533761682be5',view:discover))&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-24h,to:now))&_q=(filters:!(),query:(language:kuery,query:''))

  1. Add filter e.g. instanceName = 123456
  2. Now the URL looks like this (seems fine as it contains the filter query):

https://example.com/app/data-explorer/discover#?_a=(discover:(columns:!(application,instanceName,message),isDirty:!f,sort:!()),metadata:(indexPattern:'28a2fb90-2b97-11ee-8687-533761682be5',view:discover))&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-24h,to:now))&_q=(filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'28a2fb90-2b97-11ee-8687-533761682be5',key:instanceName,negate:!f,params:(query:123456),type:phrase),query:(match_phrase:(instanceName:123456)))),query:(language:kuery,query:''))

  1. Go to menu >> Share >> Snapshot >> Copy link (the URL value is exactly the same in the previous bullet)

  2. Open new browser windows + paste the "shared" URL - the view opens but the filter is missing

Expected behavior

I expect the filter should be applied after opening permalink/snapshot URL which was taken with an active filter.

OpenSearch Version

v2.10.0 (installed from RPM opensearch-2.10.0-1.x86_64)

Dashboards Version

v2.10.0 (installed from RPM opensearch-dashboards-2.10.0-1.x86_64)

Host/Environment

  • Server - Oracle Linux 8
  • Desktop - Browser and version: Chrome 117.0.5938.149 (Windows 10)
@karel-m karel-m added bug Something isn't working untriaged labels Oct 9, 2023
@ananzh
Copy link
Member

ananzh commented Oct 9, 2023

@karel-m Thanks for opening this issue. I also noticed this bug in our experimental discover 2.0 in 2.10 release. This is a duplicate issue of #5179 and we have resolved this issue with this PR #5206 in 2.11. I have verified again that this bug is gone. Though 2.11 is not officially released, we have cut a 2.11 branch in github. You could try it out. If the issue persists, feel free to re-open the issue.

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