-
Notifications
You must be signed in to change notification settings - Fork 919
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] After change url of saved query, new url go to saved query without chages #2126
Comments
@CCongWang Did you saved query after 3rd step? It's necessary, to reproduce this bug. Also reproduce this bug on: OpenSearch/Dashboards 2.2.0 |
@smakaravets got it, I think you might need to save the new change to actually update saved query, please see attached screen recording.
saved_query_720.mov |
@CCongWang but if I don't want to save newest query. I want to share my query with some changes. Is it possible without saving changes and just share url? |
@CCongWang any updates about this bug? |
@abbyhu2000 Do you mind taking a look at this? I think your recent investigation means you can either provide an explanation or suggested fix. |
@smakaravets Hi, sorry for the wait and i was able to understand and reproduce your issue. However, after investigation, i think this is the intended functionality because if there is a saved query applied, the saved query is gonna take precedent over the other unsaved changes. If you want to share your changes with the saved query, you can either clear your saved query or updated the saved query with those new changes. |
@KrooshalUX @ahopp Should we consider adding this feature? |
also FYI @vagimeli to follow up with @rednaksi91 on including this type of feature request in doc roadmap |
@abbyhu2000 The main problem is that while working, I can create a basic template and then use it as a starting point when working. If I want to share the results, I will have to save new requests each time, although they will be interesting only at the current moment. It also makes it harder to share search results between team members during an active investigation. I think it would be quite a logical function. |
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:
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):
The text was updated successfully, but these errors were encountered: