[Security Solution] Remove index pattern field from Sourcerer#190113
[Security Solution] Remove index pattern field from Sourcerer#190113lgestc merged 6 commits intoelastic:mainfrom
Conversation
45f100c to
ffee9d9
Compare
0543a83 to
e6411d4
Compare
e6411d4 to
55dc5f5
Compare
ae938f0 to
2d72933
Compare
|
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
...k/plugins/security_solution/public/flyout/document_details/shared/hooks/use_event_details.ts
Outdated
Show resolved
Hide resolved
...ck/plugins/security_solution/public/timelines/components/timeline/search_or_filter/index.tsx
Outdated
Show resolved
Hide resolved
1eb35ba to
c747754
Compare
|
/ci |
|
Pinging @elastic/security-threat-hunting-explore (Team:Threat Hunting:Explore) |
x-pack/plugins/security_solution/public/overview/components/events_by_dataset/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/overview/components/event_counts/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/overview/components/event_counts/index.test.tsx
Outdated
Show resolved
Hide resolved
486d4d1 to
4bc6290
Compare
logeekal
left a comment
There was a problem hiding this comment.
Changes look good but it is a little confusing regarding the name indexPattern which is not renamed but equal to DataViewBase or DataViewSpec at multiple places.
| filters: globalFilters, | ||
| from: start, | ||
| indexPattern, | ||
| indexPattern: sourcererDataView, |
There was a problem hiding this comment.
I guess it makes sense to rename parameter as sourceDataView as well?
| config: esQueryConfig, | ||
| dataProviders, | ||
| indexPattern, | ||
| indexPattern: sourcererDataView, |
There was a problem hiding this comment.
Same as before regarding renaming parameter.
| config: EsQueryConfig; | ||
| dataProviders: DataProvider[]; | ||
| indexPattern: DataViewBase; | ||
| indexPattern?: DataViewSpec; |
There was a problem hiding this comment.
Same comment about renaming.
tiansivive
left a comment
There was a problem hiding this comment.
LGTM from Entity Analytics
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
|
…c#190113) ## Summary This PR removes index pattern field from the sourcerer model, replacing it with direct access to data view spec. The end goal for the sourcerer is to just utilize platform wide Data View Types, instead of some custom abstractions / containers such as indexPattern field which is effectively a DataViewSpec, just packed up differently.
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…c#190113) ## Summary This PR removes index pattern field from the sourcerer model, replacing it with direct access to data view spec. The end goal for the sourcerer is to just utilize platform wide Data View Types, instead of some custom abstractions / containers such as indexPattern field which is effectively a DataViewSpec, just packed up differently. (cherry picked from commit a8048dd) # Conflicts: # x-pack/plugins/security_solution/public/detections/components/alerts_table/index.tsx # x-pack/plugins/security_solution/public/detections/hooks/trigger_actions_alert_table/use_persistent_controls.tsx # x-pack/plugins/security_solution/public/entity_analytics/api/hooks/use_preview_risk_scores.ts # x-pack/plugins/security_solution/public/timelines/components/timeline/query_bar/eql/index.tsx # x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_details_ui/pages/rule_details/index.tsx # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_table/alerts_grouping.tsx # x-pack/solutions/security/plugins/security_solution/public/detections/components/detection_engine_filters/detection_engine_filters.tsx # x-pack/solutions/security/plugins/security_solution/public/detections/pages/alerts/detection_engine.tsx # x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/risk_score_preview_section.tsx # x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/top_risk_score_contributors_alerts/index.tsx # x-pack/solutions/security/plugins/security_solution/public/explore/users/pages/details/index.tsx # x-pack/solutions/security/plugins/security_solution/public/kubernetes/pages/utils/data_view_spec_to_index_pattern.ts # x-pack/solutions/security/plugins/security_solution/public/overview/components/event_counts/index.test.tsx # x-pack/solutions/security/plugins/security_solution/public/overview/components/events_by_dataset/index.tsx # x-pack/solutions/security/plugins/security_solution/public/timelines/components/timeline/tabs/eql/index.tsx # x-pack/solutions/security/plugins/security_solution/public/timelines/components/timeline/tabs/query/index.tsx
…c#190113) This PR removes index pattern field from the sourcerer model, replacing it with direct access to data view spec. The end goal for the sourcerer is to just utilize platform wide Data View Types, instead of some custom abstractions / containers such as indexPattern field which is effectively a DataViewSpec, just packed up differently.
…190113) And other sourcerer clean ups (#222889) # Backport This will backport the following commits from `main` to `8.19`: - [[Security Solution] Remove index pattern field from Sourcerer (#190113)](#190113) - [remove unused fields from the sourcerer hook result #206030](#206030) - [[Security Solution][Sourcerer] Rename index pattern props to data view #216542](#216542) <!--- Backport version: 10.0.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Luke Gmys","email":"11671118+lgestc@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-28T11:11:00Z","message":"[Security Solution] Remove index pattern field from Sourcerer (#190113)\n\n## Summary\r\n\r\nThis PR removes index pattern field from the sourcerer model, replacing\r\nit with direct access to data view spec.\r\n\r\nThe end goal for the sourcerer is to just utilize platform wide Data\r\nView Types, instead of some custom abstractions / containers such as\r\nindexPattern field which is effectively a DataViewSpec, just packed up\r\ndifferently.","sha":"a8048ddf6b3f6623c87236c875a0ef1506a39fe2","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","v9.0.0","Team:Threat Hunting:Investigations","Team:Threat Hunting:Explore"],"title":"[Security Solution] Remove index pattern field from Sourcerer","number":190113,"url":"https://github.com/elastic/kibana/pull/190113","mergeCommit":{"message":"[Security Solution] Remove index pattern field from Sourcerer (#190113)\n\n## Summary\r\n\r\nThis PR removes index pattern field from the sourcerer model, replacing\r\nit with direct access to data view spec.\r\n\r\nThe end goal for the sourcerer is to just utilize platform wide Data\r\nView Types, instead of some custom abstractions / containers such as\r\nindexPattern field which is effectively a DataViewSpec, just packed up\r\ndifferently.","sha":"a8048ddf6b3f6623c87236c875a0ef1506a39fe2"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/190113","number":190113,"mergeCommit":{"message":"[Security Solution] Remove index pattern field from Sourcerer (#190113)\n\n## Summary\r\n\r\nThis PR removes index pattern field from the sourcerer model, replacing\r\nit with direct access to data view spec.\r\n\r\nThe end goal for the sourcerer is to just utilize platform wide Data\r\nView Types, instead of some custom abstractions / containers such as\r\nindexPattern field which is effectively a DataViewSpec, just packed up\r\ndifferently.","sha":"a8048ddf6b3f6623c87236c875a0ef1506a39fe2"}}]}] BACKPORT--> --------- Co-authored-by: Luke Gmys <11671118+lgestc@users.noreply.github.com>
Summary
This PR removes index pattern field from the sourcerer model, replacing it with direct access to data view spec.
The end goal for the sourcerer is to just utilize platform wide Data View Types, instead of some custom abstractions / containers such as indexPattern field which is effectively a DataViewSpec, just packed up differently.