Skip to content

[Security Solution] Remove unneeded isPreview prop in highlighted fields#223321

Merged
christineweng merged 1 commit intoelastic:mainfrom
christineweng:hf-clean-up
Jun 11, 2025
Merged

[Security Solution] Remove unneeded isPreview prop in highlighted fields#223321
christineweng merged 1 commit intoelastic:mainfrom
christineweng:hf-clean-up

Conversation

@christineweng
Copy link
Contributor

@christineweng christineweng commented Jun 10, 2025

Summary

isPreview check is not used and no longer needed. No change to UI

Checklist

  • Unit or functional tests were updated or added to match the most common scenarios
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines

@christineweng christineweng self-assigned this Jun 10, 2025
@christineweng christineweng added release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting:Investigations Security Solution Threat Hunting Investigations Team backport:version Backport to applied version labels v9.1.0 v8.19.0 labels Jun 10, 2025
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 9.3MB 9.3MB -51.0B

History

cc @christineweng

@christineweng christineweng marked this pull request as ready for review June 11, 2025 14:47
@christineweng christineweng requested review from a team as code owners June 11, 2025 14:47
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations)

Copy link
Contributor

@PhilippeOberti PhilippeOberti left a comment

Choose a reason for hiding this comment

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

Desk tested and code LGTM. Thank you for this nice cleanup!

@christineweng christineweng merged commit 1ca1e79 into elastic:main Jun 11, 2025
10 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19

https://github.com/elastic/kibana/actions/runs/15590138017

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.19 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.19:
- [AI4DSOC] Alert flyout code cleanup (#219810)
- [AI4DSOC] Attack discovery widget follow ups (#219646)
- [AI4DSOC] Alert Flyout (#218018)

Manual backport

To create the backport manually run:

node scripts/backport --pr 223321

Questions ?

Please refer to the Backport tool documentation

@christineweng
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

christineweng added a commit to christineweng/kibana that referenced this pull request Jun 11, 2025
…lds (elastic#223321)

## Summary

`isPreview` check is not used and no longer needed. No change to UI

### 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
- [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 1ca1e79)
christineweng added a commit that referenced this pull request Jun 11, 2025
…ted fields (#223321) (#223469)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Security Solution] Remove unneeded isPreview prop in highlighted
fields (#223321)](#223321)

<!--- Backport version: 10.0.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT
[{"author":{"name":"christineweng","email":"18648970+christineweng@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-06-11T16:15:57Z","message":"[Security
Solution] Remove unneeded isPreview prop in highlighted fields
(#223321)\n\n## Summary\n\n`isPreview` check is not used and no longer
needed. No change to UI\n\n\n### Checklist\n\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":"1ca1e7981377524ef898f8ca77a69bd82ac90b9b","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Threat
Hunting:Investigations","backport:version","v9.1.0","v8.19.0"],"title":"[Security
Solution] Remove unneeded isPreview prop in highlighted
fields","number":223321,"url":"https://github.com/elastic/kibana/pull/223321","mergeCommit":{"message":"[Security
Solution] Remove unneeded isPreview prop in highlighted fields
(#223321)\n\n## Summary\n\n`isPreview` check is not used and no longer
needed. No change to UI\n\n\n### Checklist\n\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":"1ca1e7981377524ef898f8ca77a69bd82ac90b9b"}},"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/223321","number":223321,"mergeCommit":{"message":"[Security
Solution] Remove unneeded isPreview prop in highlighted fields
(#223321)\n\n## Summary\n\n`isPreview` check is not used and no longer
needed. No change to UI\n\n\n### Checklist\n\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":"1ca1e7981377524ef898f8ca77a69bd82ac90b9b"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
christineweng added a commit that referenced this pull request Jun 12, 2025
## Summary

Dependency: #223321 to be merged
first

This PR renamed `isPreview` to `isRulePreview` in the document details
code. A clearer distinction between `isPreview` and `isPreviewMode`
helps improve comprehensibility and avoid mixing them up.

In some UI components, rule preview is not part of any logic, they are
renamed to something more explicit.
- In `SuppressedAlerts`, `isPreview` is now `showInvestigateInTimeline`
- In `Assignee`, `isPreview` is now `showAssignees` (opposite check) 

### 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
- [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)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
christineweng added a commit to christineweng/kibana that referenced this pull request Jun 12, 2025
…14639)

## Summary

Dependency: elastic#223321 to be merged
first

This PR renamed `isPreview` to `isRulePreview` in the document details
code. A clearer distinction between `isPreview` and `isPreviewMode`
helps improve comprehensibility and avoid mixing them up.

In some UI components, rule preview is not part of any logic, they are
renamed to something more explicit.
- In `SuppressedAlerts`, `isPreview` is now `showInvestigateInTimeline`
- In `Assignee`, `isPreview` is now `showAssignees` (opposite check)

### 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
- [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)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 3a08e64)

# Conflicts:
#	x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/left/index.tsx
#	x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/analyzer_preview_container.test.tsx
#	x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/graph_preview_container.tsx
#	x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/components/session_preview_container.test.tsx
nickpeihl pushed a commit to nickpeihl/kibana that referenced this pull request Jun 12, 2025
…lds (elastic#223321)

## Summary

`isPreview` check is not used and no longer needed. No change to UI


### 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
- [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)
iblancof pushed a commit to iblancof/kibana that referenced this pull request Jun 16, 2025
…lds (elastic#223321)

## Summary

`isPreview` check is not used and no longer needed. No change to UI


### 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
- [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)
iblancof pushed a commit to iblancof/kibana that referenced this pull request Jun 16, 2025
…14639)

## Summary

Dependency: elastic#223321 to be merged
first

This PR renamed `isPreview` to `isRulePreview` in the document details
code. A clearer distinction between `isPreview` and `isPreviewMode`
helps improve comprehensibility and avoid mixing them up.

In some UI components, rule preview is not part of any logic, they are
renamed to something more explicit.
- In `SuppressedAlerts`, `isPreview` is now `showInvestigateInTimeline`
- In `Assignee`, `isPreview` is now `showAssignees` (opposite check) 

### 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
- [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)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
christineweng added a commit that referenced this pull request Jun 18, 2025
…14639) (#223583)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Security Solution] Rename isPreview prop to isRulePreview
(#214639)](#214639)

<!--- Backport version: 10.0.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT
[{"author":{"name":"christineweng","email":"18648970+christineweng@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-06-12T15:11:35Z","message":"[Security
Solution] Rename isPreview prop to isRulePreview (#214639)\n\n##
Summary\n\nDependency: #223321 to
be merged\nfirst\n\nThis PR renamed `isPreview` to `isRulePreview` in
the document details\ncode. A clearer distinction between `isPreview`
and `isPreviewMode`\nhelps improve comprehensibility and avoid mixing
them up.\n\nIn some UI components, rule preview is not part of any
logic, they are\nrenamed to something more explicit.\n- In
`SuppressedAlerts`, `isPreview` is now `showInvestigateInTimeline`\n- In
`Assignee`, `isPreview` is now `showAssignees` (opposite check) \n\n###
Checklist\n\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)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"3a08e64a543dc3831248f681575357a078ae6fee","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Threat
Hunting:Investigations","backport:version","v9.1.0","v8.19.0"],"title":"[Security
Solution] Rename isPreview prop to
isRulePreview","number":214639,"url":"https://github.com/elastic/kibana/pull/214639","mergeCommit":{"message":"[Security
Solution] Rename isPreview prop to isRulePreview (#214639)\n\n##
Summary\n\nDependency: #223321 to
be merged\nfirst\n\nThis PR renamed `isPreview` to `isRulePreview` in
the document details\ncode. A clearer distinction between `isPreview`
and `isPreviewMode`\nhelps improve comprehensibility and avoid mixing
them up.\n\nIn some UI components, rule preview is not part of any
logic, they are\nrenamed to something more explicit.\n- In
`SuppressedAlerts`, `isPreview` is now `showInvestigateInTimeline`\n- In
`Assignee`, `isPreview` is now `showAssignees` (opposite check) \n\n###
Checklist\n\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)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"3a08e64a543dc3831248f681575357a078ae6fee"}},"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/214639","number":214639,"mergeCommit":{"message":"[Security
Solution] Rename isPreview prop to isRulePreview (#214639)\n\n##
Summary\n\nDependency: #223321 to
be merged\nfirst\n\nThis PR renamed `isPreview` to `isRulePreview` in
the document details\ncode. A clearer distinction between `isPreview`
and `isPreviewMode`\nhelps improve comprehensibility and avoid mixing
them up.\n\nIn some UI components, rule preview is not part of any
logic, they are\nrenamed to something more explicit.\n- In
`SuppressedAlerts`, `isPreview` is now `showInvestigateInTimeline`\n- In
`Assignee`, `isPreview` is now `showAssignees` (opposite check) \n\n###
Checklist\n\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)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"3a08e64a543dc3831248f681575357a078ae6fee"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting:Investigations Security Solution Threat Hunting Investigations Team v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants