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

[Fleet] Fix hide enrollment key tooltip #123188

Merged

Conversation

nchaulet
Copy link
Member

Summary

Resolve #120874

In the enrollment list page with multiple enrollment tokens when clicking on show enrollment token of multiple tokens we were keeping the "hide token" tooltip for all the previous tokens.

This was due to the fact that we were disabling the button and react is not triggering the blur event to hide the tooltip, that PR fix that by removing the button disablement.

Also fix the loading state to wait for the agent policies too otherwise the UI was blink and showing no enrollment tokens for an instant.

Before

Screen Shot 2022-01-17 at 4 46 04 PM

After

Screen Shot 2022-01-17 at 4 48 59 PM

@nchaulet nchaulet added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team auto-backport Deprecated - use backport:version if exact versions are needed v8.1.0 v7.17.0 labels Jan 17, 2022
@nchaulet nchaulet requested a review from a team as a code owner January 17, 2022 21:51
@nchaulet nchaulet self-assigned this Jan 17, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@nchaulet nchaulet changed the title [Fleet] Fix hide key tooltip [Fleet] Fix hide enrollment key tooltip Jan 18, 2022
hasActions={true}
noItemsMessage={
enrollmentAPIKeysRequest.isLoading && enrollmentAPIKeysRequest.isInitialRequest ? (
(enrollmentAPIKeysRequest.isLoading && enrollmentAPIKeysRequest.isInitialRequest) ||
(agentPoliciesRequest.isLoading && agentPoliciesRequest.isInitialRequest) ? (
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this condition is used twice, could be extracted to a const

Copy link
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

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

LGTM

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

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
fleet 644.1KB 644.1KB -18.0B

History

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

cc @nchaulet

@nchaulet nchaulet merged commit 8ac8d69 into elastic:main Jan 18, 2022
@nchaulet nchaulet deleted the fix-120874-enrollment-list-page-tooltip branch January 18, 2022 16:19
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 18, 2022
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 18, 2022
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.0
7.17

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 Jan 18, 2022
(cherry picked from commit 8ac8d69)

Co-authored-by: Nicolas Chaulet <[email protected]>
kibanamachine added a commit that referenced this pull request Jan 18, 2022
(cherry picked from commit 8ac8d69)

Co-authored-by: Nicolas Chaulet <[email protected]>
@dikshachauhan-qasource
Copy link

Hi @nchaulet

We have validated this fix on 7.17 BC5 on cloud-qa environment and found it fixed and working fine. Build details:

BUILD 46534
COMMIT 60a9838d21b6420bbdb5a4d07099111b74c68ceb
  • Now, hide token gets removed when clicked on any other place on enrollment token tab.

Screenshot:
image

Thanks
QAS

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 release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.17.0 v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet]: Hide token hover over doesn't disappear when clicked anywhere on screen
6 participants