Skip to content

[Core][UA] Forward-port 8.18 changes into main#214996

Merged
Bamieh merged 19 commits intoelastic:mainfrom
Bamieh:port_ua_from_8_18
Mar 21, 2025
Merged

[Core][UA] Forward-port 8.18 changes into main#214996
Bamieh merged 19 commits intoelastic:mainfrom
Bamieh:port_ua_from_8_18

Conversation

@Bamieh
Copy link
Contributor

@Bamieh Bamieh commented Mar 18, 2025

Summary

We've done a lot of UA changes against 8.18 and 8.x but we did not port them to main. The reason we did not do the active development against main is because UA is disabled on main and we need those features in 8.last not on 9.0 initially. This port is to keep the codebase consistent and to be able to use these new UA features in the future post 9.0.

Any issues that that are caused from this port we should wrap them in a config and disabled them on main and enable this new flag on 8.x.

What is being ported?

  • Upgrade assistant plugin (x-pack/platform/plugins/private/upgrade_assistant)
  • Integration test changes (x-pack/test/upgrade_assistant_integration)
  • new UA doc links (src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts)
  • localization files sync (x-pack/platform/plugins/private/translations/translations/*.json)
  • Unfreeze is no longer supported after 8.x. So removed it from data streams readonly migration step and throw an error for regular indices migration.

Closes #210490

@Bamieh Bamieh added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting v9.0.0 labels Mar 18, 2025
@Bamieh Bamieh marked this pull request as ready for review March 18, 2025 16:37
@Bamieh Bamieh requested review from a team as code owners March 18, 2025 16:37
@Bamieh
Copy link
Contributor Author

Bamieh commented Mar 18, 2025

@elasticmachine merge upstream

@Bamieh
Copy link
Contributor Author

Bamieh commented Mar 19, 2025

@elasticmachine merge upstream

@Bamieh Bamieh requested a review from a team as a code owner March 19, 2025 05:23
Copy link
Contributor

@jloleysens jloleysens left a comment

Choose a reason for hiding this comment

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

Left a comment about enterprise_search, otherwise looking good! We should probably get someone from @elastic/kibana-management to also take a look!

Copy link
Contributor

Choose a reason for hiding this comment

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

We should exclude this whole enterprise_search folder

Copy link
Contributor Author

Choose a reason for hiding this comment

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

why?

Copy link
Contributor

Choose a reason for hiding this comment

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

We are removing enterprise search nodes at the end of 8 and so I think it won't be necessary to address again... but I don't think keeping this logic will cause harm. So I'll leave it up to you!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahh correct. It'll need some code rewiring as well not just file deletions. I created an issue for kibana management to handle later on #215495

Copy link
Contributor

@ryankeairns ryankeairns left a comment

Choose a reason for hiding this comment

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

CSS

values={{
learnMoreHtml: (
<EuiLink
href={`${links.elasticsearch.docsBase}data-stream-reindex-api.html#reindex-data-stream-api-settings`}
Copy link
Contributor

Choose a reason for hiding this comment

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

             href={`${links.elasticsearch.docsBase}data-stream-reindex-api.html#reindex-data-stream-api-settings`}

Instead of putting the URL together like this, can you please create a new keyword in get_doc_links.ts with the full URL? This URL will break when we shift (imminently) to the new style of links for V9+

Copy link
Contributor Author

@Bamieh Bamieh Mar 19, 2025

Choose a reason for hiding this comment

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

This needs to be fixed in a separate PR since the fix needs to also be backported to 8.18 and 8.x. I created an issue to tackle it next. I created the issue #215227 and please take another look on this PR disregarding this one

Copy link
Contributor

@lcawl lcawl left a comment

Choose a reason for hiding this comment

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

The additions in get_doc_links.ts LGTM. Thanks for opening #215227

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
upgradeAssistant 177 194 +17

Async chunks

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

id before after diff
aiAssistantManagementSelection 92.8KB 92.9KB +103.0B
lists 136.8KB 136.9KB +103.0B
upgradeAssistant 171.4KB 207.8KB +36.4KB
total +36.6KB

Page load bundle

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

id before after diff
core 430.8KB 430.9KB +103.0B
upgradeAssistant 23.4KB 23.8KB +400.0B
total +503.0B

History

cc @jloleysens @gsoldevila

@Bamieh Bamieh assigned Bamieh and unassigned jloleysens and gsoldevila Mar 20, 2025
Copy link
Contributor

@jloleysens jloleysens left a comment

Choose a reason for hiding this comment

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

Did not test locally but changes lgtm. Thanks for taking this on! Approving to unblock progress

@Bamieh Bamieh enabled auto-merge (squash) March 21, 2025 13:19
@Bamieh Bamieh merged commit f83612f into elastic:main Mar 21, 2025
10 checks passed
@Bamieh Bamieh deleted the port_ua_from_8_18 branch March 21, 2025 17:03
@Bamieh Bamieh restored the port_ua_from_8_18 branch March 21, 2025 17:03
@Bamieh Bamieh deleted the port_ua_from_8_18 branch March 21, 2025 17:04
JoseLuisGJ pushed a commit to JoseLuisGJ/kibana that referenced this pull request Mar 24, 2025
## Summary

We've done a lot of UA changes against 8.18 and 8.x but we did not port
them to `main`. The reason we did not do the active development against
`main` is because UA is disabled on main and we need those features in
8.last not on `9.0` initially. This port is to keep the codebase
consistent and to be able to use these new UA features in the future
post `9.0`.

Any issues that that are caused from this port we should wrap them in a
config and disabled them on main and enable this new flag on `8.x`.

What is being ported?
- [x] Upgrade assistant plugin
(`x-pack/platform/plugins/private/upgrade_assistant`)
- [x] Integration test changes
(`x-pack/test/upgrade_assistant_integration`)
- [x] new UA doc links
(`src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts`)
- [x] localization files sync
(`x-pack/platform/plugins/private/translations/translations/*.json`)
- [x] Unfreeze is no longer supported after `8.x`. So removed it from
data streams readonly migration step and throw an error for regular
indices migration.

Closes elastic#210490

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
cqliu1 pushed a commit to cqliu1/kibana that referenced this pull request Mar 31, 2025
## Summary

We've done a lot of UA changes against 8.18 and 8.x but we did not port
them to `main`. The reason we did not do the active development against
`main` is because UA is disabled on main and we need those features in
8.last not on `9.0` initially. This port is to keep the codebase
consistent and to be able to use these new UA features in the future
post `9.0`.

Any issues that that are caused from this port we should wrap them in a
config and disabled them on main and enable this new flag on `8.x`.

What is being ported?
- [x] Upgrade assistant plugin
(`x-pack/platform/plugins/private/upgrade_assistant`)
- [x] Integration test changes
(`x-pack/test/upgrade_assistant_integration`)
- [x] new UA doc links
(`src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts`)
- [x] localization files sync
(`x-pack/platform/plugins/private/translations/translations/*.json`)
- [x] Unfreeze is no longer supported after `8.x`. So removed it from
data streams readonly migration step and throw an error for regular
indices migration.

Closes elastic#210490

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UA] Forward port all UA changes to main

7 participants