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

Move react controls into controls plugin #190166

Merged
merged 23 commits into from
Aug 9, 2024

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Aug 8, 2024

Move react_controls from examples plugin to controls plugin. This PR does not effect user facing features since it does not effect the legacy control group implementation or its usage. Future PRs will integrate the new control group with dashboard and ControlGroupRenderer and then remove the legacy control group implementation.

PR increases page load bundle size because of new action registration and the control group react embeddable registration. This will be a temporary increase as removing the legacy control group will remove the legacy embeddable factory registration, which is larger then react embeddable registration.

@nreese
Copy link
Contributor Author

nreese commented Aug 8, 2024

/ci

@nreese
Copy link
Contributor Author

nreese commented Aug 8, 2024

/ci

@nreese
Copy link
Contributor Author

nreese commented Aug 8, 2024

/ci

@nreese
Copy link
Contributor Author

nreese commented Aug 8, 2024

/ci

1 similar comment
@nreese
Copy link
Contributor Author

nreese commented Aug 9, 2024

/ci

@nreese
Copy link
Contributor Author

nreese commented Aug 9, 2024

@elasticmachine merge upstream

@nreese
Copy link
Contributor Author

nreese commented Aug 9, 2024

/ci

@nreese
Copy link
Contributor Author

nreese commented Aug 9, 2024

/ci

@nreese nreese force-pushed the move_react_controls_into_controls_plugin branch from 321359e to 7c497b1 Compare August 9, 2024 13:32
@nreese
Copy link
Contributor Author

nreese commented Aug 9, 2024

@elasticmachine merge upstream

@nreese
Copy link
Contributor Author

nreese commented Aug 9, 2024

/ci

@nreese nreese force-pushed the move_react_controls_into_controls_plugin branch from 3d50454 to 5b8c172 Compare August 9, 2024 14:16
@nreese
Copy link
Contributor Author

nreese commented Aug 9, 2024

/ci

@nreese nreese marked this pull request as ready for review August 9, 2024 14:58
@nreese nreese requested review from a team as code owners August 9, 2024 14:58
@nreese nreese added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas release_note:skip Skip the PR/issue when compiling release notes v8.16.0 labels Aug 9, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@nreese
Copy link
Contributor Author

nreese commented Aug 9, 2024

/ci

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #93 / serverless observability UI Observability Logs Explorer DataSourceSelector with installed integrations and uncategorized data streams when open on the integrations tab should display a list of installed integrations

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
controls 204 299 +95

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
controls 343 371 +28

Async chunks

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

id before after diff
controls 203.0KB 379.0KB +176.0KB

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
controls 19 27 +8

Page load bundle

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

id before after diff
controls 53.3KB 56.3KB +2.9KB
Unknown metric groups

API count

id before after diff
controls 351 380 +29

async chunk count

id before after diff
controls 8 16 +8

ESLint disabled line counts

id before after diff
controls 3 5 +2

References to deprecated APIs

id before after diff
controls 22 23 +1

Total ESLint disabled count

id before after diff
controls 3 5 +2

History

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

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

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

Changes LGTM! Thank you for paying attention to the bundle size, because it could have easily ballooned. Good to see the compatibility check split out into its own file.

Also ran the example plugin. Not necessary to fix in this PR, but I'm seeing one small issue there:

The first time you create a control, there is no Data view selected. In main, the control group gets this info from the Dashboard - so I assume this is just something that is missing so far and will be resolved when we move this new version back into the Dashboard.

@nreese
Copy link
Contributor Author

nreese commented Aug 9, 2024

The first time you create a control, there is no Data view selected. In main, the control group gets this info from the Dashboard - so I assume this is just something that is missing so far and will be resolved when we move this new version back into the Dashboard.

I already have a follow-up PR that resolves this and cleans up some types. Just want to limit the number of changes in this PR since its just supposed to be a move

@nreese nreese merged commit 1616c3c into elastic:main Aug 9, 2024
25 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting project:embeddableRebuild release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants