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] Discover Saved Search filters are not populated #8645

Open
atalakey4work opened this issue Oct 18, 2024 · 5 comments
Open

[BUG] Discover Saved Search filters are not populated #8645

atalakey4work opened this issue Oct 18, 2024 · 5 comments
Labels
bug Something isn't working discover for discover reinvent

Comments

@atalakey4work
Copy link

atalakey4work commented Oct 18, 2024

Describe the bug

When we open a previously created saved search the filters are not populated.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Discover'
  2. Select an index pattern.
  3. Add a filter.
  4. Save the search.
  5. Go into 'Discover' again
  6. Open the saved search created on step 4.

Expected behavior
Filters are present when a saved search is opened

OpenSearch Version
2.26.0

Dashboards Version
2.24.0

Plugins

opensearch-alerting 2.17.1.0
opensearch-anomaly-detection 2.17.1.0
opensearch-asynchronous-search 2.17.1.0
opensearch-cross-cluster-replication 2.17.1.0
opensearch-custom-codecs 2.17.1.0
opensearch-flow-framework 2.17.1.0
opensearch-geospatial 2.17.1.0
opensearch-index-management 2.17.1.0
opensearch-job-scheduler 2.17.1.0
opensearch-knn 2.17.1.0
opensearch-ml 2.17.1.0
opensearch-neural-search 2.17.1.0
opensearch-notifications 2.17.1.0
opensearch-notifications-core 2.17.1.0
opensearch-observability 2.17.1.0
opensearch-performance-analyzer 2.17.1.0
opensearch-reports-scheduler 2.17.1.0
opensearch-security 2.17.1.0
opensearch-security-analytics 2.17.1.0
opensearch-skills 2.17.1.0
opensearch-sql 2.17.1.0
opensearch-system-templates 2.17.1.0
query-insights 2.17.1.0

Screenshots

Screenshot 2024-10-18 at 9 14 44 AM Screenshot 2024-10-18 at 9 15 13 AM

Host/Environment (please complete the following information):

  • OS: Container image (opensearchproject/opensearch, opensearchproject/opensearch-dashboards)
  • Browser and version: Chrome v129.0.6668.101

Additional context

Copy of kibanaSavedObjectMeta.searchSourceJSON

{ "query": { "query": "", "language": "kuery" }, "highlightAll": true, "version": true, "aggs": { "2": { "date_histogram": { "field": "@timestamp", "fixed_interval": "30s", "time_zone": "Asia/Riyadh", "min_doc_count": 1 } } }, "filter": [ { "meta": { "alias": null, "negate": false, "disabled": false, "type": "phrase", "key": "kubernetes.namespace_name", "params": { "query": "nginx-ingress" }, "indexRefName": "kibanaSavedObjectMeta.searchSourceJSON.filter[0].meta.index" }, "query": { "match_phrase": { "kubernetes.namespace_name": "nginx-ingress" } }, "$state": { "store": "appState" } } ], "indexRefName": "kibanaSavedObjectMeta.searchSourceJSON.index" }

@atalakey4work atalakey4work added bug Something isn't working untriaged labels Oct 18, 2024
@coderjoe
Copy link

After upgrading opensearch and opensearch dashboards to 2.17.1 via helm chart versions 2.26.0 and 2.24.0 respectively we're experiencing something similar.

All existing saved searches do not load their filter criteria when opened in the user interface.
However exporting the saved searches still shows the criteria in the ndjson file.

Re-importing the search does not cause the filter criteria to show up.
Modifying the saved searches appears to cause all prior criteria to be lost.

This is causing a rather large user backlash so we're contemplating downgrading and restoring an old backup.

@pukarlamichhane
Copy link

what is the best or stable version to used for production of it

@zhyuanqi zhyuanqi added discover for discover reinvent and removed untriaged labels Oct 22, 2024
@zhyuanqi
Copy link
Collaborator

@abbyhu2000 Could you help?

@coderjoe
Copy link

Upon further review I believe my problem and possibly this bug is a duplicate of #8339

@atalakey4work
Copy link
Author

Downgrading Dashboards to v2.16 with OpenSearch 2.17 resolve the issue as a work around. Still waiting for a permanent fix.

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

No branches or pull requests

4 participants