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] Remove confirm enrollment & confirm incoming data steps for standalone first integration flow #134474

Merged

Conversation

hop-dev
Copy link
Contributor

@hop-dev hop-dev commented Jun 15, 2022

Summary

Resolves #134337

The confirm enrollment and confirm incoming data steps don't work for standlone agents (this worked in dev as I had hacked the agent confirmation to allow me to move through the steps quickly 🤦 )

I do think we should look at adding this back in the future, I have created an issue for this #134476

Demo

reduced_standalone_flow.mp4

@hop-dev hop-dev requested a review from a team as a code owner June 15, 2022 15:18
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Jun 15, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@hop-dev hop-dev self-assigned this Jun 15, 2022
@hop-dev hop-dev added v8.3.0 v8.4.0 release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed labels Jun 15, 2022
iconType="download"
onClick={() => {
if (onCopy) onCopy();
window.location.href = downloadLink;
Copy link
Member

Choose a reason for hiding this comment

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

Can we put this in the href property of the component instead?

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.

Instead of removing confirm incoming data for standalone agents, we should keep it around. Currently the incoming data API requires specific enrolled agent IDs, but since we assume this to be the first agent the user adds, maybe we don't need exact IDs.

Could this requirement be removed from the API completely, or maybe the API can take a parameter to exclude ID for standalone case? My preference is the latter since we'll probably have to add it back in a future phase of this effort.

@nchaulet
Copy link
Member

nchaulet commented Jun 15, 2022

@jen-huang @kpollich I took a look on how to add back Incoming data to standalone and I have some concerns on how we should do it or if we should do it, (is seems to me that in standalone it’s okay to have less reporting feature in the UI and some limitations but it’s personal opinion here)

if we really want to do it I see two way to do this:

  • we introduce a new API that query fresh data for a package policy and if there is any data we preview this.
  • we go the way @hop-dev suggest here [Fleet] Confirm incoming data for standalone agents #134476 and we query all the new datastreams and check for new agent id inside that are not managed by Fleet, I am not sure if that solution can scale and will be maintainable neither

In both scenario it seems a not trivial task that probably need to be more specified.

@nchaulet
Copy link
Member

After discussing with @jen-huang and @kpollich it seems complicated to get preview data for standalone agents, I try to bring back the confirming data step with a static copy but I would love to have your thoughts on that @dborodyansky

demo.mov

@dborodyansky
Copy link
Contributor

@nchaulet, Looks like a reasonable trade off. Thank you.

Copy link
Member

@kpollich kpollich left a comment

Choose a reason for hiding this comment

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

Latest changes w/ callout and link to assets tab for standalone agents LGTM. Thanks for pushing this through @nchaulet 🚀

@hop-dev
Copy link
Contributor Author

hop-dev commented Jun 20, 2022

@elasticmachine merge upstream

@hop-dev
Copy link
Contributor Author

hop-dev commented Jun 20, 2022

Looks good to me 👍 Thanks for this @nchaulet

@hop-dev hop-dev requested a review from jen-huang June 20, 2022 08:57
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
fleet 668 669 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 752.3KB 753.7KB +1.3KB
Unknown metric groups

ESLint disabled line counts

id before after diff
fleet 52 54 +2

Total ESLint disabled count

id before after diff
fleet 60 62 +2

History

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

cc @hop-dev

@hop-dev hop-dev dismissed jen-huang’s stale review June 20, 2022 10:36

Jen is on leave and the comments have been addressed and re-reviewed by other Devs

@hop-dev hop-dev merged commit e3aa999 into elastic:main Jun 20, 2022
@hop-dev hop-dev deleted the 134337-remove-confirm-data-for-standalone-agent branch June 20, 2022 10:37
kibanamachine pushed a commit that referenced this pull request Jun 20, 2022
…tandalone first integration flow (#134474)

* remove data and agent confirmation steps from standalone flow

* bonus: downloading policy should set step as complete

* Bring confirm incoming data step for standalone agent

Co-authored-by: Nicolas Chaulet <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit e3aa999)
@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 added a commit that referenced this pull request Jun 20, 2022
…tandalone first integration flow (#134474) (#134733)

* remove data and agent confirmation steps from standalone flow

* bonus: downloading policy should set step as complete

* Bring confirm incoming data step for standalone agent

Co-authored-by: Nicolas Chaulet <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit e3aa999)

Co-authored-by: Mark Hopkin <[email protected]>
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 v8.3.0 v8.4.0
Projects
None yet
8 participants