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

Use dashboard factory directly instead of pulling from registry #193480

Merged
merged 8 commits into from
Oct 9, 2024

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Sep 19, 2024

PR removes dashboard embeddable from embeddable registry. No other application accesses the dashboard embeddable from the embeddable registry so registration is not needed. Plus, once lens embeddable is converted to a react embeddable, then we can remove the legacy embeddable registry prior to refactoring dashboard to not be an embeddable (which will be a large effort and we want to remove the legacy embeddable registry as soon as possible to avoid any one else using it).

@nreese
Copy link
Contributor Author

nreese commented Oct 7, 2024

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

merge conflict between base and head

@nreese
Copy link
Contributor Author

nreese commented Oct 7, 2024

/ci

@nreese
Copy link
Contributor Author

nreese commented Oct 8, 2024

/ci

@nreese
Copy link
Contributor Author

nreese commented Oct 8, 2024

/ci

@nreese
Copy link
Contributor Author

nreese commented Oct 8, 2024

/ci

@nreese nreese marked this pull request as ready for review October 9, 2024 00:00
@nreese nreese requested a review from a team as a code owner October 9, 2024 00:00
@nreese nreese added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas release_note:skip Skip the PR/issue when compiling release notes v9.0.0 project:embeddableRebuild v8.16.0 backport:version Backport to applied version labels labels Oct 9, 2024
@elasticmachine
Copy link
Contributor

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

@nreese
Copy link
Contributor Author

nreese commented Oct 9, 2024

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

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
dashboard 650.1KB 662.4KB +12.3KB

Page load bundle

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

id before after diff
dashboard 27.8KB 23.0KB -4.8KB
Unknown metric groups

async chunk count

id before after diff
dashboard 16 17 +1

ESLint disabled line counts

id before after diff
dashboard 9 16 +7

References to deprecated APIs

id before after diff
dashboard 36 34 -2

Total ESLint disabled count

id before after diff
dashboard 9 16 +7

History

Copy link
Contributor

@Heenawter Heenawter left a comment

Choose a reason for hiding this comment

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

Great step forward! Code review only - changes are straight forward. LGTM 👍

@nreese nreese merged commit 3b6cfb6 into elastic:main Oct 9, 2024
20 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11257072128

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 9, 2024
…tic#193480)

PR removes dashboard embeddable from embeddable registry. No other
application accesses the dashboard embeddable from the embeddable
registry so registration is not needed. Plus, once lens embeddable is
converted to a react embeddable, then we can remove the legacy
embeddable registry prior to refactoring dashboard to not be an
embeddable (which will be a large effort and we want to remove the
legacy embeddable registry as soon as possible to avoid any one else
using it).

---------

Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 3b6cfb6)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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 Oct 9, 2024
…#193480) (#195615)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Use dashboard factory directly instead of pulling from registry
(#193480)](#193480)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-09T14:26:43Z","message":"Use
dashboard factory directly instead of pulling from registry
(#193480)\n\nPR removes dashboard embeddable from embeddable registry.
No other\r\napplication accesses the dashboard embeddable from the
embeddable\r\nregistry so registration is not needed. Plus, once lens
embeddable is\r\nconverted to a react embeddable, then we can remove the
legacy\r\nembeddable registry prior to refactoring dashboard to not be
an\r\nembeddable (which will be a large effort and we want to remove
the\r\nlegacy embeddable registry as soon as possible to avoid any one
else\r\nusing it).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>\r\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"3b6cfb685d29e5db8c66c4239e709485a81d0db0","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Presentation","release_note:skip","v9.0.0","project:embeddableRebuild","v8.16.0","backport:version"],"title":"Use
dashboard factory directly instead of pulling from
registry","number":193480,"url":"https://github.com/elastic/kibana/pull/193480","mergeCommit":{"message":"Use
dashboard factory directly instead of pulling from registry
(#193480)\n\nPR removes dashboard embeddable from embeddable registry.
No other\r\napplication accesses the dashboard embeddable from the
embeddable\r\nregistry so registration is not needed. Plus, once lens
embeddable is\r\nconverted to a react embeddable, then we can remove the
legacy\r\nembeddable registry prior to refactoring dashboard to not be
an\r\nembeddable (which will be a large effort and we want to remove
the\r\nlegacy embeddable registry as soon as possible to avoid any one
else\r\nusing it).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>\r\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"3b6cfb685d29e5db8c66c4239e709485a81d0db0"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193480","number":193480,"mergeCommit":{"message":"Use
dashboard factory directly instead of pulling from registry
(#193480)\n\nPR removes dashboard embeddable from embeddable registry.
No other\r\napplication accesses the dashboard embeddable from the
embeddable\r\nregistry so registration is not needed. Plus, once lens
embeddable is\r\nconverted to a react embeddable, then we can remove the
legacy\r\nembeddable registry prior to refactoring dashboard to not be
an\r\nembeddable (which will be a large effort and we want to remove
the\r\nlegacy embeddable registry as soon as possible to avoid any one
else\r\nusing it).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>\r\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"3b6cfb685d29e5db8c66c4239e709485a81d0db0"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels 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 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants