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] Not able to add data filters when creating a monitor #590

Closed
matthias-prog opened this issue Jul 6, 2023 · 4 comments
Closed

[BUG] Not able to add data filters when creating a monitor #590

matthias-prog opened this issue Jul 6, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@matthias-prog
Copy link

What is the bug?
Users are not able to save/add data filters when creating a per query monitor with the visual editor.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Go to 'Alerting' -> 'Monitors' -> 'Create Monitor'
  2. Leave 'Per query monitor' and 'Visual editor' as is
  3. Add any index and select a Time Field for it
  4. Click on 'Add filter' under 'Data filter'
  5. Try to add a Data Filter -> no way to that, nothing happens when you press enter, when you click outside the popup for creating the filter the pop-up just vanishes and the filter does not get added

What is the expected behavior?
Clicking outside the pop-up adds the filter or clicking a "save" button on the pop-up adds the filter

What is your host/environment?

  • OS: Red Hat Enterprise Linux release 8.8 (Ootpa) on amd64
  • Docker Image opensearchproject/opensearch:2.8.0 and opensearchproject/opensearch-dashboards:2.8.0 using podman 4.4.1
  • Google Chrome Version 114.0.5735.199 64-bit

Do you have any screenshots?
image

Do you have any additional context?
When trying to create the filter the browser console logs "Unknown query operator detected: is" or "Unknown query operator detected: is_less"
The filter can be added if you click once on the "entry"
image
which leads to the pop-up not vanishing anymore if click outside it. If you now switch to "anomaly detector" and then back to "visual editor" the filter is added, but this is not a usable workaround for our users.

@matthias-prog matthias-prog added bug Something isn't working untriaged labels Jul 6, 2023
@mattmooree
Copy link

mattmooree commented Jul 10, 2023

This is also reproducible in AWS OpenSearch 2.7.0 (OpenSearch_2_7_R20230706 (latest)), chrome version 114.0.5735.198.

Edit noticed this was a duplicate of #558

@lezzago lezzago removed the untriaged label Jul 12, 2023
@thomass4t
Copy link

Is there any workaround for this issue?
Also editing shows the same effect. Filter vanishes when closing popup.

@AWSHurneyt
Copy link
Collaborator

Hi @thomass4t,
I added a comment with a workaround using the extraction query editor here #558 (comment)

@AWSHurneyt
Copy link
Collaborator

Closing this issue as the fix in PR #574 has been merged and released with 2.9. Please feel free to reopen this issue if this issue persists.

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

5 participants