OpenSearch-Dashboards icon indicating copy to clipboard operation
OpenSearch-Dashboards copied to clipboard

[BUG] After change url of saved query, new url go to saved query without chages

Open smakaravets opened this issue 3 years ago • 0 comments

Describe the bug

I set up a saved request. After that, I made changes to the filter, I got the expected result. After that, I did a page refresh and returned to the saved request without the changed filters.

URL with saved query: https://opensearch.company.in/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-5m,to:now))&_a=(columns:!(_source),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'2fc77980-ba98-11ec-a90f-abda54a0cc40',key:kubernetes.namespace_name,negate:!f,params:(query:ingress-nginx),type:phrase),query:(match_phrase:(kubernetes.namespace_name:ingress-nginx))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'2fc77980-ba98-11ec-a90f-abda54a0cc40',key:kubernetes.labels.app.kubernetes.io%2Fname,negate:!f,params:(query:ingress-nginx),type:phrase),query:(match_phrase:(kubernetes.labels.app.kubernetes.io%2Fname:ingress-nginx))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'2fc77980-ba98-11ec-a90f-abda54a0cc40',key:MESSAGE,negate:!f,params:(query:error),type:phrase),query:(match_phrase:(MESSAGE:error)))),index:'2fc77980-ba98-11ec-a90f-abda54a0cc40',interval:auto,query:(language:kuery,query:''),savedQuery:ingress-errors,sort:!())

URL with saved query and some changes: https://opensearch.company.in/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-1m,to:now))&_a=(columns:!(_source),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'2fc77980-ba98-11ec-a90f-abda54a0cc40',key:kubernetes.namespace_name,negate:!f,params:(query:ingress-nginx),type:phrase),query:(match_phrase:(kubernetes.namespace_name:ingress-nginx))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'2fc77980-ba98-11ec-a90f-abda54a0cc40',key:kubernetes.labels.app.kubernetes.io%2Fname,negate:!f,params:(query:ingress-nginx),type:phrase),query:(match_phrase:(kubernetes.labels.app.kubernetes.io%2Fname:ingress-nginx)))),index:'2fc77980-ba98-11ec-a90f-abda54a0cc40',interval:auto,query:(language:kuery,query:''),savedQuery:ingress-errors,sort:!())

Second url redirects to first url.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://opensearch.company.in/app/discover
  2. Create query
  3. Save query in saved queries (change period, add filters)
  4. Change query(edit filters, time period or something else)
  5. Refresh the page
  6. You will see saved query, without previous changes

Expected behavior I want to see page with edited filters in saved query.

OpenSearch Version 2.0.0

Dashboards Version 2.0.1

Plugins

opensearch-alerting 2.0.0.0 opensearch-anomaly-detection 2.0.0.0 opensearch-asynchronous-search 2.0.0.0 opensearch-cross-cluster-replication 2.0.0.0 opensearch-index-management 2.0.0.0 opensearch-job-scheduler 2.0.0.0 opensearch-knn 2.0.0.0 opensearch-ml 2.0.0.0 opensearch-notifications 2.0.0.0 opensearch-notifications-core 2.0.0.0 opensearch-observability 2.0.0.0 opensearch-performance-analyzer 2.0.0.0 opensearch-reports-scheduler 2.0.0.0 opensearch-security 2.0.0.0 opensearch-sql 2.0.0.0

Host/Environment (please complete the following information):

  • k8s - 1.19
  • Chrome Version 103.0.5060.134 (Official Build) (arm64)

smakaravets avatar Aug 11 '22 12:08 smakaravets