Skip to content

Fix ES query rule for Lucene langauge#186217

Merged
lukasolson merged 3 commits intoelastic:mainfrom
lukasolson:fix_es_query_rule_lucene_frontport
Jun 14, 2024
Merged

Fix ES query rule for Lucene langauge#186217
lukasolson merged 3 commits intoelastic:mainfrom
lukasolson:fix_es_query_rule_lucene_frontport

Conversation

@lukasolson
Copy link
Copy Markdown
Contributor

Summary

Same as #186211, but to avoid conflicts after #186196.

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@lukasolson lukasolson added Feature:Data Views Data Views code and UI - index patterns before 8.0 release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// Team:Search labels Jun 13, 2024
@lukasolson lukasolson self-assigned this Jun 13, 2024
@lukasolson lukasolson requested review from a team as code owners June 13, 2024 20:26
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@lukasolson lukasolson requested a review from davismcphee June 13, 2024 20:26
Copy link
Copy Markdown
Contributor

@davismcphee davismcphee left a comment

Choose a reason for hiding this comment

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

And it still works after the frontport, LGTM 👍

@kibana-ci
Copy link
Copy Markdown

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
data 420.0KB 420.0KB +22.0B

History

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

cc @lukasolson

@lukasolson lukasolson merged commit e618abb into elastic:main Jun 14, 2024
@kibanamachine kibanamachine added v8.15.0 backport:skip This PR does not require backporting labels Jun 14, 2024
lukasolson added a commit that referenced this pull request Jun 18, 2024
## Summary

#184890 was reverted in
#186196 because it contained a bug
with alerts created using Lucene queries. The bug was fixed in
#186217. This PR un-reverts the
original changes and preserves the fix. It also adds unit tests to cover
the failed cases.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Data Views Data Views code and UI - index patterns before 8.0 release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// Team:Search v8.15.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants