-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[dashboard] replace embeddable.ViewMode with presentation-publishing.ViewMode #204464
Conversation
/ci |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
Page load bundle
History
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM! Are you planning on removing usages of the legacy viewMode
from other plugins before deleting its definition?
@@ -154,7 +154,7 @@ export function DashboardApp({ | |||
// if print mode is active, force viewMode.PRINT | |||
...(screenshotModeService.isScreenshotMode() && | |||
screenshotModeService.getScreenshotContext('layout') === 'print' | |||
? { viewMode: ViewMode.PRINT } | |||
? { viewMode: 'print' as ViewMode } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the cast here needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because its a new object so viewMode is untyped
Yes |
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12398336219 |
…ViewMode (elastic#204464) Co-authored-by: Elastic Machine <[email protected]> (cherry picked from commit 9f0c5fb)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…shing.ViewMode (#204464) (#204813) # Backport This will backport the following commits from `main` to `8.x`: - [[dashboard] replace embeddable.ViewMode with presentation-publishing.ViewMode (#204464)](#204464) <!--- 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-18T17:38:15Z","message":"[dashboard] replace embeddable.ViewMode with presentation-publishing.ViewMode (#204464)\n\nCo-authored-by: Elastic Machine <[email protected]>","sha":"9f0c5fbe21016cebec49bcba134ba613ef856098","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":"[dashboard] replace embeddable.ViewMode with presentation-publishing.ViewMode","number":204464,"url":"https://github.com/elastic/kibana/pull/204464","mergeCommit":{"message":"[dashboard] replace embeddable.ViewMode with presentation-publishing.ViewMode (#204464)\n\nCo-authored-by: Elastic Machine <[email protected]>","sha":"9f0c5fbe21016cebec49bcba134ba613ef856098"}},"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/204464","number":204464,"mergeCommit":{"message":"[dashboard] replace embeddable.ViewMode with presentation-publishing.ViewMode (#204464)\n\nCo-authored-by: Elastic Machine <[email protected]>","sha":"9f0c5fbe21016cebec49bcba134ba613ef856098"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Nathan Reese <[email protected]>
…ViewMode (elastic#204464) Co-authored-by: Elastic Machine <[email protected]>
…ViewMode (elastic#204464) Co-authored-by: Elastic Machine <[email protected]>
…ViewMode (elastic#204464) Co-authored-by: Elastic Machine <[email protected]>
null