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

[Custom threshold] Respect query:allowLeadingWildcards in optional query filter #189488

Merged

Conversation

maryam-saeidi
Copy link
Member

@maryam-saeidi maryam-saeidi commented Jul 30, 2024

Partially fixes. #189072

Summary

In this PR, we pass the query:allowLeadingWildcards for the optional filter to the custom threshold (specifically getSearchConfigurationBoolQuery function that generates the related ES Query).

Before After
image image

Rule

@maryam-saeidi maryam-saeidi added bug Fixes for quality problems that affect the customer experience release_note:fix backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Feature: Custom threshold Observability custom threshold rule type labels Jul 30, 2024
@maryam-saeidi maryam-saeidi self-assigned this Jul 30, 2024
@maryam-saeidi maryam-saeidi requested a review from a team as a code owner July 30, 2024 10:28
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-management Observability Management User Experience Team labels Jul 30, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@maryam-saeidi maryam-saeidi changed the title [Custom threhsold] Respect query:allowLeadingWildcards in optional filter [Custom threhsold] Respect query:allowLeadingWildcards in optional query filter Jul 30, 2024
@maryam-saeidi maryam-saeidi changed the title [Custom threhsold] Respect query:allowLeadingWildcards in optional query filter [Custom threshold] Respect query:allowLeadingWildcards in optional query filter Jul 30, 2024
Copy link
Contributor

@mgiota mgiota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did code review only. LGTM!

@kibana-ci
Copy link
Collaborator

kibana-ci commented Jul 31, 2024

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @maryam-saeidi

@maryam-saeidi maryam-saeidi merged commit 5219a1f into elastic:main Jul 31, 2024
23 checks passed
@maryam-saeidi maryam-saeidi deleted the 189072-ct-fix-leading-wildcard branch July 31, 2024 13:29
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.15 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 189488

Questions ?

Please refer to the Backport tool documentation

@maryam-saeidi
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
8.15

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

maryam-saeidi added a commit to maryam-saeidi/kibana that referenced this pull request Aug 1, 2024
…ery filter (elastic#189488)

Partially fixes.   elastic#189072

In this PR, we pass the `query:allowLeadingWildcards` for the optional
filter to the custom threshold (specifically
`getSearchConfigurationBoolQuery` function that generates the related ES
Query).

|Before|After|
|----|---|

|![image](https://github.com/user-attachments/assets/74f25ffe-516d-437f-90eb-a9a4c1dfc184)|![image](https://github.com/user-attachments/assets/a0190f81-d137-4b75-95f2-7358ece99468)|

<img
src="https://github.com/user-attachments/assets/70d2de37-2285-450f-88bf-45aa88954019"
width=500 />

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit 5219a1f)
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Aug 1, 2024
@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

maryam-saeidi added a commit that referenced this pull request Aug 2, 2024
…onal query filter (#189488) (#189705)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[Custom threshold] Respect query:allowLeadingWildcards in optional
query filter (#189488)](#189488)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Maryam
Saeidi","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-07-31T13:29:04Z","message":"[Custom
threshold] Respect query:allowLeadingWildcards in optional query filter
(#189488)\n\nPartially fixes. #189072\r\n\r\n## Summary\r\n\r\nIn this
PR, we pass the `query:allowLeadingWildcards` for the optional\r\nfilter
to the custom threshold
(specifically\r\n`getSearchConfigurationBoolQuery` function that
generates the related
ES\r\nQuery).\r\n\r\n|Before|After|\r\n|----|---|\r\n\r\n|![image](https://github.com/user-attachments/assets/74f25ffe-516d-437f-90eb-a9a4c1dfc184)|![image](https://github.com/user-attachments/assets/a0190f81-d137-4b75-95f2-7358ece99468)|\r\n\r\n####
Rule\r\n\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/70d2de37-2285-450f-88bf-45aa88954019\"\r\nwidth=500
/>\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>","sha":"5219a1f14d1af812624282e59170503d8a071bd4","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management","Feature:
Custom
threshold","v8.16.0"],"number":189488,"url":"https://github.com/elastic/kibana/pull/189488","mergeCommit":{"message":"[Custom
threshold] Respect query:allowLeadingWildcards in optional query filter
(#189488)\n\nPartially fixes. #189072\r\n\r\n## Summary\r\n\r\nIn this
PR, we pass the `query:allowLeadingWildcards` for the optional\r\nfilter
to the custom threshold
(specifically\r\n`getSearchConfigurationBoolQuery` function that
generates the related
ES\r\nQuery).\r\n\r\n|Before|After|\r\n|----|---|\r\n\r\n|![image](https://github.com/user-attachments/assets/74f25ffe-516d-437f-90eb-a9a4c1dfc184)|![image](https://github.com/user-attachments/assets/a0190f81-d137-4b75-95f2-7358ece99468)|\r\n\r\n####
Rule\r\n\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/70d2de37-2285-450f-88bf-45aa88954019\"\r\nwidth=500
/>\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>","sha":"5219a1f14d1af812624282e59170503d8a071bd4"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/189488","number":189488,"mergeCommit":{"message":"[Custom
threshold] Respect query:allowLeadingWildcards in optional query filter
(#189488)\n\nPartially fixes. #189072\r\n\r\n## Summary\r\n\r\nIn this
PR, we pass the `query:allowLeadingWildcards` for the optional\r\nfilter
to the custom threshold
(specifically\r\n`getSearchConfigurationBoolQuery` function that
generates the related
ES\r\nQuery).\r\n\r\n|Before|After|\r\n|----|---|\r\n\r\n|![image](https://github.com/user-attachments/assets/74f25ffe-516d-437f-90eb-a9a4c1dfc184)|![image](https://github.com/user-attachments/assets/a0190f81-d137-4b75-95f2-7358ece99468)|\r\n\r\n####
Rule\r\n\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/70d2de37-2285-450f-88bf-45aa88954019\"\r\nwidth=500
/>\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>","sha":"5219a1f14d1af812624282e59170503d8a071bd4"}}]}]
BACKPORT-->
@kibanamachine kibanamachine added v8.15.0 and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) bug Fixes for quality problems that affect the customer experience ci:project-deploy-observability Create an Observability project Feature: Custom threshold Observability custom threshold rule type release_note:fix Team:obs-ux-management Observability Management User Experience Team v8.15.0 v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants