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] Cannot add data filter when creating monitor in alerting #558

Closed
kavilla opened this issue May 25, 2023 · 9 comments
Closed

[BUG] Cannot add data filter when creating monitor in alerting #558

kavilla opened this issue May 25, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@kavilla
Copy link
Member

kavilla commented May 25, 2023

@chengleqi commented on Thu May 25 2023

Describe the bug
There is no button to add a filter.

To Reproduce
Add monitor, use the visual editor and then add a data filter.

Expected behavior
There is a button that allows me to add a data filter.

OpenSearch Version
2.7.0

Dashboards Version
2.7.0

Plugins
image

Screenshots
1685005580959

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: Use docker compose commad method in quick start
  • Browser and version: Google Chrome/113.0.5672.127

Additional context

Add any other context about the problem here.

@chengleqi
Copy link

mark

@AWSHurneyt
Copy link
Collaborator

@chengleqi Could you clarify the issue you're experiencing? In the second screenshot, it looks like the UI component to add a data filter is present. Is that component not appearing under certain circumstances for you?

@chengleqi
Copy link

Hi @AWSHurneyt , I am in the same situation as this issue #545 , where I don't have a button to add a data filter.
image

@chengleqi
Copy link

When I click outside this popup, it doesn't add the data filter that I have configured, so I believe there should be a button in this area.

@AWSHurneyt
Copy link
Collaborator

@chengleqi Thank you for clarifying! I'll investigate.

@thomass4t
Copy link

Short question:
Will it be pushed to the apk packages in version 2.8?
https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/apt
I don't know about the release or update cycles.

@AWSHurneyt
Copy link
Collaborator

Hi @thomass4t,
Until we make a patch release, such as 2.8.1, this fix would not update the current release artifacts. We don't have a scheduled date for 2.8.1 at the moment. This fix is present in OpennSearch 2.9.
https://opensearch.org/releases.html

As a workaround, data filters can be configured using the extraction query editor UI. Here's an example of what it would look like if you wanted to add products.product_id is 123 and user is steph filters to the opensearch_dashboards_sample_data_ecommerce index.

{
  "size": 0,
  "aggregations": {
    "composite_agg": {
      "composite": {
        "sources": [
          {
            "user": {
              "terms": {
                "field": "user"
              }
            }
          }
        ]
      },
      "aggs": {}
    }
  },
  "query": {
    "bool": {
      "filter": [
        {
          "range": {
            "order_date": {
              "gte": "{{period_end}}||-1h",
              "lte": "{{period_end}}",
              "format": "epoch_millis"
            }
          }
        },
        {
          "term": {
            "products.product_id": 123
          }
        },
        {
          "term": {
            "user": "steph"
          }
        }
      ]
    }
  }
}

@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.

@thomass4t
Copy link

@AWSHurneyt
Thanks for the reply and the description about the workaround 👍

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

4 participants