Skip to content
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

[Security Solution] Update rule link in cases activities #198836

Merged
merged 4 commits into from
Nov 6, 2024

Conversation

christineweng
Copy link
Contributor

@christineweng christineweng commented Nov 4, 2024

Summary

As a follow up to #191764, this PR updates rule names in Activity tab in cases to open a rule flyout instead of going to rule details page.

Security solution changes: replace rule page navigation with a openFlyout call
Cases plugin changes: update the rules link component to accept either href or onClick.

image

Checklist

@christineweng christineweng marked this pull request as ready for review November 4, 2024 21:02
@christineweng christineweng requested review from a team as code owners November 4, 2024 21:02
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@semd semd left a comment

Choose a reason for hiding this comment

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

LGTM! 💯

Copy link
Contributor

@js-jankisalvi js-jankisalvi left a comment

Choose a reason for hiding this comment

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

Verified locally, works as expected in Security > Cases 👍
image

Also verified the alert behaviour is same as before in Observability 👍

@christineweng christineweng enabled auto-merge (squash) November 6, 2024 22:19
@christineweng christineweng merged commit 09dd66d into elastic:main Nov 6, 2024
45 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #76 / serverless observability UI Dataset Quality Degraded fields flyout testing root cause for ignored fields current field limit issues should validate and show error callout when API call fails

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
cases 492.2KB 492.2KB +39.0B
securitySolution 21.0MB 21.0MB -121.0B
total -82.0B

History

cc @christineweng

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 6, 2024
)

## Summary

As a follow up to elastic#191764, this PR
updates rule names in `Activity` tab in cases to open a rule flyout
instead of going to rule details page.

**Security solution changes**: replace rule page navigation with a
`openFlyout` call
**Cases plugin changes**: update the rules link component to accept
either `href` or `onClick`.

![image](https://github.com/user-attachments/assets/c5dca885-61b8-4481-adfa-f9e615a01265)

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

(cherry picked from commit 09dd66d)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Nov 7, 2024
…) (#199242)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] Update rule link in cases activities
(#198836)](#198836)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT
[{"author":{"name":"christineweng","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-06T22:57:55Z","message":"[Security
Solution] Update rule link in cases activities (#198836)\n\n##
Summary\r\n\r\nAs a follow up to
#191764, this PR\r\nupdates rule
names in `Activity` tab in cases to open a rule flyout\r\ninstead of
going to rule details page.\r\n\r\n**Security solution changes**:
replace rule page navigation with a\r\n`openFlyout` call\r\n**Cases
plugin changes**: update the rules link component to accept\r\neither
`href` or
`onClick`.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/c5dca885-61b8-4481-adfa-f9e615a01265)\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"09dd66d355fbb32fa0090e36945819a9509138c6","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","backport","v9.0.0","Team:Threat
Hunting","v8.17.0"],"title":"[Security Solution] Update rule link in
cases
activities","number":198836,"url":"https://github.com/elastic/kibana/pull/198836","mergeCommit":{"message":"[Security
Solution] Update rule link in cases activities (#198836)\n\n##
Summary\r\n\r\nAs a follow up to
#191764, this PR\r\nupdates rule
names in `Activity` tab in cases to open a rule flyout\r\ninstead of
going to rule details page.\r\n\r\n**Security solution changes**:
replace rule page navigation with a\r\n`openFlyout` call\r\n**Cases
plugin changes**: update the rules link component to accept\r\neither
`href` or
`onClick`.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/c5dca885-61b8-4481-adfa-f9e615a01265)\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"09dd66d355fbb32fa0090e36945819a9509138c6"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198836","number":198836,"mergeCommit":{"message":"[Security
Solution] Update rule link in cases activities (#198836)\n\n##
Summary\r\n\r\nAs a follow up to
#191764, this PR\r\nupdates rule
names in `Activity` tab in cases to open a rule flyout\r\ninstead of
going to rule details page.\r\n\r\n**Security solution changes**:
replace rule page navigation with a\r\n`openFlyout` call\r\n**Cases
plugin changes**: update the rules link component to accept\r\neither
`href` or
`onClick`.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/c5dca885-61b8-4481-adfa-f9e615a01265)\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"09dd66d355fbb32fa0090e36945819a9509138c6"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: christineweng <[email protected]>
mgadewoll pushed a commit to mgadewoll/kibana that referenced this pull request Nov 7, 2024
)

## Summary

As a follow up to elastic#191764, this PR
updates rule names in `Activity` tab in cases to open a rule flyout
instead of going to rule details page.

**Security solution changes**: replace rule page navigation with a
`openFlyout` call
**Cases plugin changes**: update the rules link component to accept
either `href` or `onClick`.


![image](https://github.com/user-attachments/assets/c5dca885-61b8-4481-adfa-f9e615a01265)


### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants