Skip to content

[nit][pre-req] Split EPM Home into components#114431

Merged
clintandrewhall merged 5 commits intoelastic:masterfrom
clintandrewhall:fleet/pre-req-home-split
Oct 12, 2021
Merged

[nit][pre-req] Split EPM Home into components#114431
clintandrewhall merged 5 commits intoelastic:masterfrom
clintandrewhall:fleet/pre-req-home-split

Conversation

@clintandrewhall
Copy link
Copy Markdown
Contributor

@clintandrewhall clintandrewhall commented Oct 11, 2021

Summary

To make changes like #114432 easier to understand, I split the EPM Home Page into is disparate components. There are also some nominal performance tweaks, (like moving static i18n calls out of the render cycle to module-level consts, etc).

This makes the next PR easier to grok, but also makes the individual portions of the page easier to test.

Tech debt: split the new components into "connected" and "pure" components to make testing easier.

@clintandrewhall clintandrewhall added review loe:small Small Level of Effort v8.0.0 release_note:skip Skip the PR/issue when compiling release notes impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Fleet Team label for Observability Data Collection Fleet team auto-backport Deprecated - use backport:version if exact versions are needed v7.16.0 Feature:Unified Integrations Unified Integrations view feature labels Oct 11, 2021
@clintandrewhall clintandrewhall requested a review from a team as a code owner October 11, 2021 04:54
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

@clintandrewhall
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

OK for shipper change, but I would remove the change to categories. IntegrationCategory was already strongly typed, and this change adds a duplication of data-structures (basically, we would now require two lists now, once as an array and once as a map).

Copy link
Copy Markdown
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

fwiw - I'd unhook this change from that other strong-typing-for-shipper PR, it introduces a chain of dependencies, and they could be handled in parallel.

This will also create merge conflicts with #114429

@clintandrewhall clintandrewhall enabled auto-merge (squash) October 12, 2021 02:42
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
fleet 576 578 +2

Async chunks

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

id before after diff
fleet 625.7KB 625.7KB +9.0B

History

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

@clintandrewhall clintandrewhall merged commit ab5ecc4 into elastic:master Oct 12, 2021
@kibanamachine
Copy link
Copy Markdown
Contributor

💔 Backport failed

Status Branch Result
7.x Commit could not be cherrypicked due to conflicts

To backport manually run:
node scripts/backport --pr 114431

thomasneirynck pushed a commit to thomasneirynck/kibana that referenced this pull request Oct 13, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@thomasneirynck
Copy link
Copy Markdown
Contributor

New backport here #114828

thomasneirynck added a commit that referenced this pull request Oct 13, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@clintandrewhall clintandrewhall deleted the fleet/pre-req-home-split branch December 29, 2021 17:48
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 Feature:Unified Integrations Unified Integrations view feature impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes review Team:Fleet Team label for Observability Data Collection Fleet team v7.16.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants