question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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)

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
joshuarrrrcommented, Nov 21, 2022

@abbyhu2000 Do you mind taking a look at this? I think your recent investigation means you can either provide an explanation or suggested fix.

0reactions
kristenTiancommented, Dec 6, 2022

also FYI @vagimeli to follow up with @rednaksi91 on including this type of feature request in doc roadmap

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Modifying a query string without reloading the page
It will either add the URL parameter or, if a query param already exists with the same key, it will change that parameter...
Read more >
BigQuery Save Query: How to Save & Share ... - Hevo Data
To save with another name, click Save > Save query and provide the new name to the query.
Read more >
Issue 277885: DevTools: Workspace: Support urls ... - Monorail
i.e. you set a break point, reload the page and now your break point is gone because the script url has a different...
Read more >
Move a Website and Change URL | Google Search Central
Learn how to change the URLs of existing site pages, including domain name changes. Explore moving a website with little impact on search...
Read more >
Search saved queries - Product Documentation | ServiceNow
The CMDB Query Builder allows you to search for a specific saved query using any combination of search criteria based on the query's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found