Skip to content

[8.19] [Security Solution] Rename isPreview prop to isRulePreview (#214639)#223583

Merged
christineweng merged 6 commits intoelastic:8.19from
christineweng:backport/8.19/pr-214639
Jun 18, 2025
Merged

[8.19] [Security Solution] Rename isPreview prop to isRulePreview (#214639)#223583
christineweng merged 6 commits intoelastic:8.19from
christineweng:backport/8.19/pr-214639

Conversation

@christineweng
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

…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
@christineweng christineweng added the backport This PR is a backport of another PR label Jun 12, 2025
@christineweng christineweng enabled auto-merge (squash) June 12, 2025 15:40
@elasticmachine
Copy link
Contributor

elasticmachine commented Jun 17, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

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.4MB 9.4MB +265.0B

History

@christineweng christineweng merged commit 8d86068 into elastic:8.19 Jun 18, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants