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] New navigation panel bottom padding fix #132951

Merged
merged 5 commits into from
May 26, 2022

Conversation

semd
Copy link
Contributor

@semd semd commented May 25, 2022

Summary

issue: #130023
The bug appears when the instance is new and the timeline indices do not yet exist.

before:
before

after:
after

The padding was added to the navigation panel based on the location path flag defined in the static config, but the timeline bottom bar is also hidden if the index does not exist, which was not checked by the showTimeline hook.

I just moved the logic of checking the dataView values from the bottom_bar to the showTimeline hook, so the navigation will also consider this case when adding the padding.

Checklist

@semd semd added bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting Security Solution Threat Hunting Team Team:Threat Hunting:Explore v8.3.0 labels May 25, 2022
@semd semd self-assigned this May 25, 2022
@semd semd requested a review from a team as a code owner May 25, 2022 15:39
@elasticmachine
Copy link
Contributor

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

Comment on lines +36 to +38
const wrapper = mount(Component);
await waitFor(() => wrapper.find('[data-test-subj="queryInput"]').exists()); // check for presence of query input
return wrapper;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unrelated, just fixing a flaky test that was failing randomly

Copy link
Contributor

@YulNaumenko YulNaumenko left a comment

Choose a reason for hiding this comment

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

LGTM!

@semd
Copy link
Contributor Author

semd commented May 26, 2022

@elasticmachine merge upstream

@semd
Copy link
Contributor Author

semd commented May 26, 2022

@elasticmachine merge upstream

@semd semd added the auto-backport Deprecated - use backport:version if exact versions are needed label May 26, 2022
@semd semd merged commit 159fe79 into elastic:main May 26, 2022
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.3

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine pushed a commit that referenced this pull request May 26, 2022
* fix panel nav bottom padding when index does not exist

* fix unrelated flacky test

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 159fe79)
@kibana-ci
Copy link
Collaborator

kibana-ci commented May 26, 2022

💔 Build Failed

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 5.0MB 5.0MB +33.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @semd

kibanamachine added a commit that referenced this pull request May 26, 2022
…#133006)

* fix panel nav bottom padding when index does not exist

* fix unrelated flacky test

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 159fe79)

Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co>
Co-authored-by: Spencer <spencer@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting:Explore Team:Threat Hunting Security Solution Threat Hunting Team v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants