Skip to content

[8.19] [Fleet][Security & Observability Onboarding] Generalize and consolidate custom fleet onboarding logic (#215561)#221819

Merged
angorayc merged 1 commit intoelastic:8.19from
angorayc:backport/8.19/pr-215561
May 28, 2025
Merged

[8.19] [Fleet][Security & Observability Onboarding] Generalize and consolidate custom fleet onboarding logic (#215561)#221819
angorayc merged 1 commit intoelastic:8.19from
angorayc:backport/8.19/pr-215561

Conversation

@angorayc
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

…te custom fleet onboarding logic (elastic#215561)

## Summary

Updated fleet custom navigation logic to be more generic and consistent
between security and observability onboarding flows.

## Details

When attempting to start using the custom logic for routing back to
onboarding pages for another project, I noticed inconsistencies in how
we were linking back to the onboarding pages for the `Back to selection`
button on the Integrations overview page and the `Cancel` and `Save and
continue` on the Add integration page. Due to these inconsistencies,
both custom routing mechanisms couldn't both work at the same time. I
re-worked the implementation of the back button to match the cancel/save
buttons and utilize `navigateToApp` to fix.

Now instead of observability utilizing the `observabilityOnboardingLink`
query param, and security utilizing both `observabilityOnboardingLink`
and `onboardingAppId`, both solutions will use `returnAppId` and
`returnPath` (or different names if we don't love these) to route back
to their sourcing locations.

Note: Observability onboarding will also now inherit logic the security
onboarding team added where the same query parameters route back to the
source when a user cancels or saves from the Add integration page (item
3 from [this PR](elastic#194028))

## Screen recordings

Regular integrations page

https://github.com/user-attachments/assets/0f306bec-657f-4a7a-b2da-25557899b629

Security onboarding

https://github.com/user-attachments/assets/d2a161a0-62ee-40b1-9dd9-5165aea6a65a

Observability onboarding

https://github.com/user-attachments/assets/89f6b9a3-a348-4488-8688-1d5c96716185

Relates:
- elastic#181520
- elastic/security-team#11789

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 6967952)
@angorayc angorayc requested a review from kibanamachine as a code owner May 28, 2025 16:22
@angorayc angorayc added the backport This PR is a backport of another PR label May 28, 2025
@angorayc angorayc enabled auto-merge (squash) May 28, 2025 16:22
@botelastic botelastic Bot added the Team:Fleet Team label for Observability Data Collection Fleet team label May 28, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #9 / Security Solution - Telemetry Security Telemetry - Indices metadata task telemetry @ess @serverless indices metadata should publish data stream events
  • [job] [logs] Fleet Cypress Tests #1 / View agents list Agent status filter should filter on healthy (16 result)
  • [job] [logs] Fleet Cypress Tests #1 / View agents list Bulk actions should allow to bulk upgrade agents and cancel that upgrade

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 1.6MB 1.6MB +166.0B
observabilityOnboarding 113.8KB 113.7KB -91.0B
securitySolution 9.3MB 9.3MB -4.0B
total +71.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
observabilityOnboarding 11.2KB 11.2KB +1.0B

@angorayc angorayc merged commit 7340011 into elastic:8.19 May 28, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:Fleet Team label for Observability Data Collection Fleet team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants