-
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][Alert details] - fix timeline ES|QL flyout shown behind #182296
[Security Solution][Alert details] - fix timeline ES|QL flyout shown behind #182296
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.
Just left one comment.
src/plugins/discover/public/components/discover_grid_flyout/discover_grid_flyout.tsx
Outdated
Show resolved
Hide resolved
…t shown behind" This reverts commit 7fb53ed8a3b0d88141bbf0092fa66ee015f3423e.
…behind within SecuritySolution
7fb53ed
to
a1cf66f
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.
Thanks @PhilippeOberti for making these changes.
|
||
// TODO remember to remove the className added to discover/public/components/discover_grid_flyout/discover_grid_flyout.tsx when removing this | ||
export const TimelineESQLGlobalStyles = createGlobalStyle` | ||
body:has(.timeline-portal-overlay-mask) .DiscoverFlyout { |
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.
Thanks! I noticed it was .euiFlyout
before and was wondering how that affected the other flyouts 😅 . Nice work, tested and works great!
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.
Thanks for getting this fix in. LGTM! 🎉
💚 Build Succeeded
Metrics [docs]Async chunks
Saved Objects .kibana field count
History
To update your PR or re-run it, just comment with: |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…behind (elastic#182296) (cherry picked from commit 2c6d13e) # Conflicts: # src/plugins/discover/public/components/discover_grid_flyout/discover_grid_flyout.tsx
… shown behind (#182296) (#182529) # Backport This will backport the following commits from `main` to `8.14`: - [[Security Solution][Alert details] - fix timeline ES|QL flyout shown behind (#182296)](#182296) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Philippe Oberti","email":"philippe.oberti@elastic.co"},"sourceCommit":{"committedDate":"2024-05-02T21:51:52Z","message":"[Security Solution][Alert details] - fix timeline ES|QL flyout shown behind (#182296)","sha":"2c6d13e661db96988e51a355dbcbde5e6d04e1e1","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Threat Hunting:Investigations","v8.14.0","v8.15.0"],"number":182296,"url":"https://github.com/elastic/kibana/pull/182296","mergeCommit":{"message":"[Security Solution][Alert details] - fix timeline ES|QL flyout shown behind (#182296)","sha":"2c6d13e661db96988e51a355dbcbde5e6d04e1e1"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","labelRegex":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/182296","number":182296,"mergeCommit":{"message":"[Security Solution][Alert details] - fix timeline ES|QL flyout shown behind (#182296)","sha":"2c6d13e661db96988e51a355dbcbde5e6d04e1e1"}}]}] BACKPORT-->
Summary
This PR addresses an issue where the flyout for the unified data table used in the ES|QL tab of Timeline is shown behind timeline. This was most likely introduced when we merged this PR that introduced the expandable flyout to timeline, where we had to modify the
z-index
of timeline from1000
to1001
. Therefore all flyouts opened from timeline should have theirz-index
set to higher or equal to1002
.The solution proposed in the PR is not ideal. I wish there was a way to use our own flyout (as we should be using the expandable flyout for UI consistency in Security Solution).Or at least I wish we could pass some properties down to the flyout to render it differently from how it is done in Discover at the moment (maybe there is a way but I'm not aware of it).The code was updated to have the logic directly within the SecuritySolution plugin instead of within Discover. Therefore there aren't any impact on the Discover app!
As
8.14
is upon us, I felt like this was a simple, non-intrusive (hopefully) solution.Before fix (flyout is open but hidden behind timeline)
After fix
#180106