-
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
[Cloud Security] Fix first item flyout wont open in vuln table #165214
Conversation
Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security) |
💚 Build Succeeded
Metrics [docs]Async chunks
To update your PR or re-run it, just comment with: cc @JordanSh |
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.
Tested, it fixes the problem. @JordanSh what was the problem you were trying to solve with this change yesterday btw?
problem is that the 0 is also a falsy type and thats why the flyout didnt open. the most correct solution would be const showVulnerabilityFlyout = flyoutVulnerabilityIndex !== undefined
? flyoutVulnerabilityIndex > invalidIndex
: undefined; but again, its a fix that meant to be backported. i prefer it to be as slim as possible and since the current implementation was sitting in our code forever and didnt made problems i prefer to just revert it to what it was |
…ic#165214) (cherry picked from commit b88547c)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…#165214) (#165236) # Backport This will backport the following commits from `main` to `8.10`: - [[Cloud Security] Fix first item flyout wont open in vuln table (#165214)](#165214) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Jordan","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-30T13:14:58Z","message":"[Cloud Security] Fix first item flyout wont open in vuln table (#165214)","sha":"b88547c323fb97dac9e08c4ccdf12ac4e5f0899d","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Cloud Security","v8.10.0","v8.11.0"],"number":165214,"url":"https://github.com/elastic/kibana/pull/165214","mergeCommit":{"message":"[Cloud Security] Fix first item flyout wont open in vuln table (#165214)","sha":"b88547c323fb97dac9e08c4ccdf12ac4e5f0899d"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/165214","number":165214,"mergeCommit":{"message":"[Cloud Security] Fix first item flyout wont open in vuln table (#165214)","sha":"b88547c323fb97dac9e08c4ccdf12ac4e5f0899d"}}]}] BACKPORT--> Co-authored-by: Jordan <[email protected]>
Reverted the logic change for the function that opens the flyout
Screen.Recording.2023-08-30.at.14.07.55.mov