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

[Ingest Manager] Fix enrollment key selection #73062

Merged
merged 5 commits into from
Jul 28, 2020

Conversation

nchaulet
Copy link
Member

@nchaulet nchaulet commented Jul 23, 2020

Summary

Resolves #72717 #72531

Fix enrollment key selection in the agent enrollment flyout.

Also I named all the useEffect function to act as documentation as it started to be hard to understand all the dependencies and what effect is doing what.

How to reproduce the bug

  • setup fleet
  • Create 3 agent configuration
  • go to fleet
  • click on add agent
  • select another configration -> the enrollment key is not refreshed the first time.

UI Change

2020-07-23 10-47-46 2020-07-23 10_52_02

@nchaulet nchaulet added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.10.0 v7.9.0 Team:Fleet Team label for Observability Data Collection Fleet team labels Jul 23, 2020
@nchaulet nchaulet requested review from jen-huang and a team July 23, 2020 14:52
@nchaulet nchaulet self-assigned this Jul 23, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@@ -536,9 +536,9 @@ export const AgentListPage: React.FunctionComponent<{}> = () => {
),
}}
/>
) : !isLoading && totalAgents === 0 ? (
) : (
Copy link
Member Author

Choose a reason for hiding this comment

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

This fix a blinking on the agent list page when there is no agents

@nchaulet
Copy link
Member Author

@elasticmachine merge upstream

@nchaulet nchaulet added the bug Fixes for quality problems that affect the customer experience label Jul 27, 2020
@nchaulet
Copy link
Member Author

@elasticmachine merge upstream

@nchaulet nchaulet removed the request for review from jen-huang July 28, 2020 17:49
@nchaulet
Copy link
Member Author

@elasticmachine merge upstream

Copy link
Contributor

@jen-huang jen-huang left a comment

Choose a reason for hiding this comment

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

Tested locally, works as described 👍

@nchaulet
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
ingestManager 1.1MB +473.0B 1.1MB

History

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

@nchaulet nchaulet merged commit 87010a6 into elastic:master Jul 28, 2020
@nchaulet nchaulet deleted the fix-enrollment-api-key-selection branch July 28, 2020 21:13
nchaulet added a commit to nchaulet/kibana that referenced this pull request Jul 28, 2020
nchaulet added a commit to nchaulet/kibana that referenced this pull request Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.9.0 v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Ingest Management] Add Agent Flyout Does Not Always Display the Right Enrollment Token in Commands
4 participants