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

[embeddable] remove setCustomEmbeddableFactoryProvider from setup API #203853

Merged
merged 8 commits into from
Dec 12, 2024

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Dec 11, 2024

Part of #167429

Remove setCustomEmbeddableFactoryProvider from embeddable setup API. setCustomEmbeddableFactoryProvider only used in embeddable_enhanced plugin. Replaced with initializeReactEmbeddableDynamicActions in react embeddable system.

@nreese
Copy link
Contributor Author

nreese commented Dec 11, 2024

/ci

@nreese
Copy link
Contributor Author

nreese commented Dec 11, 2024

/ci

@nreese
Copy link
Contributor Author

nreese commented Dec 11, 2024

/ci

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

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

@botelastic botelastic bot added the Feature:Embedding Embedding content via iFrame label Dec 11, 2024
@nreese nreese requested a review from a team as a code owner December 11, 2024 20:24
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.

Legacy code removal LGTM! Glad to see the drilldown registration method cleaned up.

@nreese
Copy link
Contributor Author

nreese commented Dec 11, 2024

@elasticmachine merge upstream

@nreese
Copy link
Contributor Author

nreese commented Dec 12, 2024

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #87 / Alerting migrations "before all" hook for "7.10.0 migrates the alerting consumer to be the alerts"

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
embeddableEnhanced 46 44 -2

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
embeddable 457 455 -2
embeddableEnhanced 19 15 -4
total -6

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
embeddable 9 8 -1

Page load bundle

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

id before after diff
embeddable 68.0KB 67.6KB -419.0B
embeddableEnhanced 9.0KB 7.2KB -1.8KB
total -2.2KB
Unknown metric groups

API count

id before after diff
embeddable 562 560 -2
embeddableEnhanced 19 15 -4
total -6

ESLint disabled line counts

id before after diff
embeddableEnhanced 2 1 -1

References to deprecated APIs

id before after diff
embeddableEnhanced 4 0 -4

Total ESLint disabled count

id before after diff
embeddableEnhanced 4 3 -1

Unreferenced deprecated APIs

id before after diff
embeddable 3 4 +1
embeddableEnhanced 1 0 -1
total -0

History

Copy link
Member

@Bamieh Bamieh left a comment

Choose a reason for hiding this comment

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

i18n changes lgtm

@nreese nreese merged commit 7218d01 into elastic:main Dec 12, 2024
8 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 12, 2024
…elastic#203853)

Part of elastic#167429

Remove `setCustomEmbeddableFactoryProvider` from embeddable setup API.
`setCustomEmbeddableFactoryProvider` only used in `embeddable_enhanced`
plugin. Replaced with `initializeReactEmbeddableDynamicActions` in react
embeddable system.

---------

Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 7218d01)
@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 Dec 12, 2024
…up API (#203853) (#204073)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[embeddable] remove setCustomEmbeddableFactoryProvider from setup API
(#203853)](#203853)

<!--- 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-12-12T16:11:48Z","message":"[embeddable]
remove setCustomEmbeddableFactoryProvider from setup API
(#203853)\n\nPart of
https://github.com/elastic/kibana/issues/167429\r\n\r\nRemove
`setCustomEmbeddableFactoryProvider` from embeddable setup
API.\r\n`setCustomEmbeddableFactoryProvider` only used in
`embeddable_enhanced`\r\nplugin. Replaced with
`initializeReactEmbeddableDynamicActions` in react\r\nembeddable
system.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>\r\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"7218d01aa42eba6df050262a0c246922d2a0df9d","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Embedding","Team:Presentation","release_note:skip","v9.0.0","project:embeddableRebuild","backport:version","v8.18.0"],"title":"[embeddable]
remove setCustomEmbeddableFactoryProvider from setup
API","number":203853,"url":"https://github.com/elastic/kibana/pull/203853","mergeCommit":{"message":"[embeddable]
remove setCustomEmbeddableFactoryProvider from setup API
(#203853)\n\nPart of
https://github.com/elastic/kibana/issues/167429\r\n\r\nRemove
`setCustomEmbeddableFactoryProvider` from embeddable setup
API.\r\n`setCustomEmbeddableFactoryProvider` only used in
`embeddable_enhanced`\r\nplugin. Replaced with
`initializeReactEmbeddableDynamicActions` in react\r\nembeddable
system.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>\r\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"7218d01aa42eba6df050262a0c246922d2a0df9d"}},"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/203853","number":203853,"mergeCommit":{"message":"[embeddable]
remove setCustomEmbeddableFactoryProvider from setup API
(#203853)\n\nPart of
https://github.com/elastic/kibana/issues/167429\r\n\r\nRemove
`setCustomEmbeddableFactoryProvider` from embeddable setup
API.\r\n`setCustomEmbeddableFactoryProvider` only used in
`embeddable_enhanced`\r\nplugin. Replaced with
`initializeReactEmbeddableDynamicActions` in react\r\nembeddable
system.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>\r\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"7218d01aa42eba6df050262a0c246922d2a0df9d"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <[email protected]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Jan 13, 2025
…elastic#203853)

Part of elastic#167429

Remove `setCustomEmbeddableFactoryProvider` from embeddable setup API.
`setCustomEmbeddableFactoryProvider` only used in `embeddable_enhanced`
plugin. Replaced with `initializeReactEmbeddableDynamicActions` in react
embeddable system.

---------

Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Elastic Machine <[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 Feature:Embedding Embedding content via iFrame project:embeddableRebuild release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants