-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Observability RAC] Remove indexing of rule evaluation documents #104970
[Observability RAC] Remove indexing of rule evaluation documents #104970
Conversation
jenkins, test this (had to abort for Jenkins upgrade) |
2243989
to
d1fa059
Compare
d1fa059
to
3aeb120
Compare
Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui) |
@@ -188,44 +188,6 @@ describe('createLifecycleRuleTypeFactory', () => { | |||
|
|||
expect(documents.map((doc) => omit(doc, 'kibana.rac.alert.uuid'))).toMatchInlineSnapshot(` | |||
Array [ | |||
Object { | |||
"@timestamp": "2021-06-16T09:01:00.000Z", | |||
"event.action": "open", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More like a general comment. event.action
is basically the status of the document, right? Action sounds confusing at least to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is ECS defined: https://www.elastic.co/guide/en/ecs/current/ecs-event.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok thanks makes more sense now. Felix wrote a test as part of this PR and looks like event.action is different from event.status.
LGTM! You covered it with tests and works as expected |
elasticsearchServiceMock, | ||
savedObjectsClientMock, | ||
} from '../../../../../src/core/server/mocks'; | ||
import { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move this import after the mock imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The imports are sorted automatically by the typescript language server.
@elasticmachine merge upstream |
merge conflict between base and head |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: cc @weltenwort |
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…y-show-migrate-to-authzd-users * 'master' of github.com:elastic/kibana: (187 commits) Space management page UX improvements (elastic#100448) [Reporting] Unskip flaky test when downloading CSV with "no data" (elastic#105252) Update dependency @elastic/charts to v33 (master) (elastic#105633) [Observability RAC] Improve alerts table columns (elastic#105446) Introduce `preboot` lifecycle stage (elastic#103636) [Security Solution] Invalid kql query timeline refresh bug (elastic#105525) skip flaky suite (elastic#106121) [Security Solution][Endpoint] Fix UI inconsistency between isolation forms and remove display of Pending isolation statuses (elastic#106118) docs: APM RUM Source map API (elastic#105332) [CTI] Adds indicator match rule improvements (elastic#97310) [Security Solution] update text for Isolation action submissions (elastic#105956) EP Meta Telemetry Perf (elastic#104396) [Metrics UI] Drop partial buckets from ALL Metrics UI queries (elastic#104784) Remove beta admonitions for Fleet docs (elastic#106010) [Observability RAC] Remove indexing of rule evaluation documents (elastic#104970) Parameterize migration test for kibana version (elastic#105417) [Alerting] Allow rule to execute if the value is 0 and that mets the condition (elastic#105626) [ML] Fix Index data visualizer sometimes shows wrong doc count for saved searches (elastic#106007) [Security Solution] UX fixes for Policy page and Case Host Isolation comment (elastic#106027) [Security Solution]Memory protection configuration card for policies integration. (elastic#101365) ... # Conflicts: # x-pack/plugins/reporting/public/management/report_listing.test.tsx # x-pack/plugins/reporting/public/management/report_listing.tsx
📝 Summary
This removes the indexing of evaluation documents in the lifecycle executor helper until the the requirements and schema have been specified.
closes #104671
🕵️ Testing notes
event.kind: "event"
should be indexed in the respective alerts-as-data indices even if thewrite
flag is enabled.