-
Notifications
You must be signed in to change notification settings - Fork 8.3k
[8.x] [ResponseOps][Alerts] Remove fieldsForAad attribute from rule type registry (#215767) #217649
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
[8.x] [ResponseOps][Alerts] Remove fieldsForAad attribute from rule type registry (#215767) #217649
Conversation
…gistry (elastic#215767) ## Summary Implements elastic#215338 This PR removes `fieldsForAAD ` and `hasFieldsForAAD ` from the rule type registry and all corresponding rule types. It uses existing `getBrowserFieldsByFeatureId ` route to fetch fields from [field_caps](https://www.elastic.co/guide/en/elasticsearch/reference/8.17/search-field-caps.html) API. It also updates `getBrowserFieldsByFeatureId` route - to use `include_empty_fields: false` query param to fetch only non empty fields to have limited number of fields - to use `index filter` to fetch fields only from last 90 days for better performance ``` const indexFilter = { range: { '@timestamp': { gte: 'now-90d', }, }, }; ``` ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [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 ### Flaky Test runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8151 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit adbc6d9) # Conflicts: # x-pack/test/observability_functional/apps/observability/pages/alerts/index.ts
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
History
|
Backport
This will backport the following commits from
main
to8.x
:Questions ?
Please refer to the Backport tool documentation