-
Notifications
You must be signed in to change notification settings - Fork 8.3k
[Security Solution][Alert/Event Flyout] Add pinning and settings to table tab #218686
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
Conversation
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
...curity_solution/public/flyout/document_details/right/components/table_tab_setting_button.tsx
Outdated
Show resolved
Hide resolved
...s/security/plugins/security_solution/public/flyout/document_details/right/tabs/table_tab.tsx
Outdated
Show resolved
Hide resolved
...s/security/plugins/security_solution/public/flyout/document_details/right/tabs/table_tab.tsx
Outdated
Show resolved
Hide resolved
iconType={isPinned ? 'pinFilled' : 'pin'} | ||
color="text" | ||
iconSize="m" | ||
onClick={() => { |
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.
useCallback
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.
@michaelolo24 useCallback
is not allowed within render
.. the columns are memoized in the table tab, that should give us some coverage?
...lugins/security_solution/public/flyout/document_details/right/utils/table_tab_utils.test.tsx
Outdated
Show resolved
Hide resolved
...ity/plugins/security_solution/public/flyout/document_details/right/utils/table_tab_utils.tsx
Outdated
Show resolved
Hide resolved
...ity/plugins/security_solution/public/flyout/document_details/right/utils/table_tab_utils.tsx
Outdated
Show resolved
Hide resolved
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.
Nice work 💪🏾 ! Pulled it down and tested and it works great, just had some nits around memoization.
fc7557d
to
ec1e817
Compare
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.
This new functionality is really cool! Great job on the code and adding so many tests. Desk tested and code LGTM!
Awesome job @christineweng!!
Starting backport for target branches: 8.19 |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Unknown metric groupsReferences to deprecated APIs
History
|
…able tab (elastic#218686) ## Summary This PR added enhancements to the table tab: - User can now pin fields - Highlighted fields have a highlighted background - Added settings to: - Filter table to only show highlighted fields - Hide empty values - Hide alert fields (`kibana.alert.*` and `signal.*`) ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit f15c96d)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…gs to table tab (#218686) (#219018) # Backport This will backport the following commits from `main` to `8.19`: - [[Security Solution][Alert/Event Flyout] Add pinning and settings to table tab (#218686)](#218686) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"christineweng","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-04-23T20:20:34Z","message":"[Security Solution][Alert/Event Flyout] Add pinning and settings to table tab (#218686)\n\n## Summary\n\nThis PR added enhancements to the table tab:\n- User can now pin fields\n- Highlighted fields have a highlighted background\n- Added settings to:\n - Filter table to only show highlighted fields\n - Hide empty values\n - Hide alert fields (`kibana.alert.*` and `signal.*`)\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"f15c96d6e811c7a1c1b206c1a0b98c24187ddecf","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","Team:Threat Hunting:Investigations","backport:version","v9.1.0","v8.19.0"],"title":"[Security Solution][Alert/Event Flyout] Add pinning and settings to table tab","number":218686,"url":"https://github.com/elastic/kibana/pull/218686","mergeCommit":{"message":"[Security Solution][Alert/Event Flyout] Add pinning and settings to table tab (#218686)\n\n## Summary\n\nThis PR added enhancements to the table tab:\n- User can now pin fields\n- Highlighted fields have a highlighted background\n- Added settings to:\n - Filter table to only show highlighted fields\n - Hide empty values\n - Hide alert fields (`kibana.alert.*` and `signal.*`)\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"f15c96d6e811c7a1c1b206c1a0b98c24187ddecf"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/218686","number":218686,"mergeCommit":{"message":"[Security Solution][Alert/Event Flyout] Add pinning and settings to table tab (#218686)\n\n## Summary\n\nThis PR added enhancements to the table tab:\n- User can now pin fields\n- Highlighted fields have a highlighted background\n- Added settings to:\n - Filter table to only show highlighted fields\n - Hide empty values\n - Hide alert fields (`kibana.alert.*` and `signal.*`)\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"f15c96d6e811c7a1c1b206c1a0b98c24187ddecf"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: christineweng <[email protected]>
Summary
This PR added enhancements to the table tab:
kibana.alert.*
andsignal.*
)Checklist
release_note:*
label is applied per the guidelines