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

Remove dashboard embeddable #194892

Merged
merged 127 commits into from
Dec 10, 2024
Merged

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Oct 4, 2024

Closes #197281

PR replaces DashboardContainer, which implements legacy Container and Embeddable interfaces, with plain old javascript object implementation returned from getDashboardApi.

The following are out of scope for this PR and will be accomplished at a later time:

  1. re-factoring dashboard folder structure
  2. removing all uses of Embeddable and EmbeddableInput types
  3. removing legacy types like DashboardContainerInput

@nreese nreese mentioned this pull request Oct 5, 2024
@nreese
Copy link
Contributor Author

nreese commented Oct 5, 2024

@elasticmachine merge upstream

@nreese
Copy link
Contributor Author

nreese commented Oct 7, 2024

@elasticmachine merge upstream

@nreese
Copy link
Contributor Author

nreese commented Dec 7, 2024

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

elasticmachine commented Dec 7, 2024

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #33 / dashboard app - group 6 No Data Views: Try ES|QL enables user to create a dashboard with ES|QL from no-data-prompt
  • [job] [logs] FTR Configs #33 / dashboard app - group 6 No Data Views: Try ES|QL enables user to create a dashboard with ES|QL from no-data-prompt

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
dashboard 695 694 -1

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
@kbn/presentation-containers 80 75 -5
@kbn/presentation-publishing 193 197 +4
total -1

Async chunks

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

id before after diff
aiops 614.8KB 614.9KB +96.0B
apm 3.3MB 3.3MB +45.0B
dashboard 684.4KB 667.6KB -16.8KB
dataVisualizer 615.8KB 615.8KB +45.0B
discover 784.9KB 784.9KB +45.0B
imageEmbeddable 69.9KB 69.9KB +45.0B
links 48.5KB 48.6KB +45.0B
ml 4.7MB 4.7MB +45.0B
slo 855.9KB 855.9KB +45.0B
synthetics 1.1MB 1.1MB +45.0B
total -16.4KB

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
@kbn/presentation-containers 0 1 +1
dashboard 14 13 -1
total -0

Page load bundle

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

id before after diff
dashboard 52.4KB 52.1KB -263.0B
infra 58.1KB 58.2KB +45.0B
lens 49.9KB 50.0KB +45.0B
maps 54.8KB 54.9KB +45.0B
visualizations 71.3KB 71.4KB +45.0B
total -83.0B
Unknown metric groups

API count

id before after diff
@kbn/presentation-containers 92 87 -5
@kbn/presentation-publishing 229 233 +4
total -1

async chunk count

id before after diff
dashboard 15 12 -3

ESLint disabled line counts

id before after diff
dashboard 17 10 -7

References to deprecated APIs

id before after diff
dashboard 34 27 -7

Total ESLint disabled count

id before after diff
dashboard 17 10 -7

History

@nreese
Copy link
Contributor Author

nreese commented Dec 9, 2024

@elasticmachine merge upstream

1 similar comment
@nreese
Copy link
Contributor Author

nreese commented Dec 9, 2024

@elasticmachine merge upstream

@nreese nreese requested a review from a team as a code owner December 10, 2024 13:55
@nreese nreese enabled auto-merge (squash) December 10, 2024 14:56
@nreese nreese merged commit 101e797 into elastic:main Dec 10, 2024
8 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
dashboard 695 693 -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
@kbn/presentation-containers 80 75 -5
@kbn/presentation-publishing 193 197 +4
total -1

Async chunks

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

id before after diff
aiops 615.0KB 615.1KB +96.0B
apm 3.3MB 3.3MB +45.0B
dashboard 684.5KB 667.5KB -17.0KB
dataVisualizer 615.8KB 615.8KB +45.0B
discover 784.9KB 784.9KB +45.0B
imageEmbeddable 70.0KB 70.0KB +45.0B
links 48.5KB 48.6KB +45.0B
ml 4.7MB 4.7MB +45.0B
slo 855.9KB 855.9KB +45.0B
synthetics 1.1MB 1.1MB +45.0B
total -16.5KB

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
@kbn/presentation-containers 0 1 +1
dashboard 14 13 -1
total -0

Page load bundle

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

id before after diff
dashboard 52.4KB 52.2KB -200.0B
infra 57.9KB 57.9KB +45.0B
lens 49.9KB 50.0KB +45.0B
maps 54.8KB 54.9KB +45.0B
visualizations 71.3KB 71.4KB +45.0B
total -20.0B
Unknown metric groups

API count

id before after diff
@kbn/presentation-containers 92 87 -5
@kbn/presentation-publishing 229 233 +4
total -1

async chunk count

id before after diff
dashboard 15 12 -3

ESLint disabled line counts

id before after diff
dashboard 17 10 -7

References to deprecated APIs

id before after diff
dashboard 34 27 -7

Total ESLint disabled count

id before after diff
dashboard 17 10 -7

History

@nreese
Copy link
Contributor Author

nreese commented Dec 10, 2024

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

ignoring request to update branch, pull request is closed

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 10, 2024
Closes elastic#197281

PR replaces `DashboardContainer`, which implements legacy Container and
Embeddable interfaces, with plain old javascript object implementation
returned from `getDashboardApi`.

The following are out of scope for this PR and will be accomplished at a
later time:
1) re-factoring dashboard folder structure
2) removing all uses of Embeddable and EmbeddableInput types
3) removing legacy types like DashboardContainerInput

---------

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Hannah Mudge <[email protected]>
Co-authored-by: Devon Thomson <[email protected]>
(cherry picked from commit 101e797)
@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 10, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [Remove dashboard embeddable
(#194892)](#194892)

<!--- 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-10T15:34:04Z","message":"Remove
dashboard embeddable (#194892)\n\nCloses
https://github.com/elastic/kibana/issues/197281\r\n\r\nPR replaces
`DashboardContainer`, which implements legacy Container
and\r\nEmbeddable interfaces, with plain old javascript object
implementation\r\nreturned from `getDashboardApi`.\r\n\r\nThe following
are out of scope for this PR and will be accomplished at a\r\nlater
time:\r\n1) re-factoring dashboard folder structure\r\n2) removing all
uses of Embeddable and EmbeddableInput types\r\n3) removing legacy types
like DashboardContainerInput\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<[email protected]>\r\nCo-authored-by:
kibanamachine
<[email protected]>\r\nCo-authored-by:
Hannah Mudge <[email protected]>\r\nCo-authored-by:
Devon Thomson
<[email protected]>","sha":"101e797e9dc0f2d0c08f89f9dbe36cd30812ee01","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Presentation","release_note:skip","v9.0.0","project:embeddableRebuild","backport:version","v8.18.0"],"title":"Remove
dashboard
embeddable","number":194892,"url":"https://github.com/elastic/kibana/pull/194892","mergeCommit":{"message":"Remove
dashboard embeddable (#194892)\n\nCloses
https://github.com/elastic/kibana/issues/197281\r\n\r\nPR replaces
`DashboardContainer`, which implements legacy Container
and\r\nEmbeddable interfaces, with plain old javascript object
implementation\r\nreturned from `getDashboardApi`.\r\n\r\nThe following
are out of scope for this PR and will be accomplished at a\r\nlater
time:\r\n1) re-factoring dashboard folder structure\r\n2) removing all
uses of Embeddable and EmbeddableInput types\r\n3) removing legacy types
like DashboardContainerInput\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<[email protected]>\r\nCo-authored-by:
kibanamachine
<[email protected]>\r\nCo-authored-by:
Hannah Mudge <[email protected]>\r\nCo-authored-by:
Devon Thomson
<[email protected]>","sha":"101e797e9dc0f2d0c08f89f9dbe36cd30812ee01"}},"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/194892","number":194892,"mergeCommit":{"message":"Remove
dashboard embeddable (#194892)\n\nCloses
https://github.com/elastic/kibana/issues/197281\r\n\r\nPR replaces
`DashboardContainer`, which implements legacy Container
and\r\nEmbeddable interfaces, with plain old javascript object
implementation\r\nreturned from `getDashboardApi`.\r\n\r\nThe following
are out of scope for this PR and will be accomplished at a\r\nlater
time:\r\n1) re-factoring dashboard folder structure\r\n2) removing all
uses of Embeddable and EmbeddableInput types\r\n3) removing legacy types
like DashboardContainerInput\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<[email protected]>\r\nCo-authored-by:
kibanamachine
<[email protected]>\r\nCo-authored-by:
Hannah Mudge <[email protected]>\r\nCo-authored-by:
Devon Thomson
<[email protected]>","sha":"101e797e9dc0f2d0c08f89f9dbe36cd30812ee01"}},{"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 Dec 12, 2024
Closes elastic#197281

PR replaces `DashboardContainer`, which implements legacy Container and
Embeddable interfaces, with plain old javascript object implementation
returned from `getDashboardApi`.

The following are out of scope for this PR and will be accomplished at a
later time:
1) re-factoring dashboard folder structure
2) removing all uses of Embeddable and EmbeddableInput types
3) removing legacy types like DashboardContainerInput

---------

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Hannah Mudge <[email protected]>
Co-authored-by: Devon Thomson <[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.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Embeddables Rebuild] Migrate Dashboard embeddable to plain javascript object
6 participants