-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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][Timeline] fix timeline favorite working for draft timeline #175161
[Security Solution][Timeline] fix timeline favorite working for draft timeline #175161
Conversation
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
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.
Great improvements!
f2f783a
to
3bfdc67
Compare
3bfdc67
to
9b95eae
Compare
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Summary
I discovered a bug today where users can click on the favorite button both in the bottom bar and in the timeline modal header even if the timeline hasn't been saved.
This PR fixes that while also doing small amount of refactor:
AddToFavoriteButton
component out of thehelpers.tsx
file and move theAddToFavoriteButton
component to its own folder at the root of thecomponents
folder as it's used in the bottom bar and the modal headerAddToFavoriteButton
component by removing the compact mode which isn't used, using a proper selector to retrieve data from the redux storetesting-library
instead ofenzyme
Screen.Recording.2024-01-18.at.4.43.32.PM.mov
Checklist