-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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: New EmbeddedDashboard runtime component #78916
Conversation
public/app/features/dashboard-scene/embedding/EmbeddedDashboard.tsx
Outdated
Show resolved
Hide resolved
public/app/features/dashboard-scene/embedding/EmbeddedDashboardScene.tsx
Outdated
Show resolved
Hide resolved
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 2 weeks if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
This pull request has been automatically closed because it has not had any further activity in the last 2 weeks. Thank you for your contributions! |
…other fixes and tests
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.
Looks great, awesome progress on this.
@@ -82,7 +82,7 @@ export class SupportSnapshotService extends StateManagerBase<SupportSnapshotStat | |||
|
|||
if (!panel.isAngularPlugin()) { | |||
try { | |||
const oldModel = new DashboardModel(snapshot); | |||
const oldModel = new DashboardModel(snapshot, { isEmbedded: true }); |
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's that isEmbedded
meta passed here, is it used anywhere?
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.
@dprokop yes, when we create the DashboardScene inside createDashboardSceneFromDashboardModel we take the meta object from DashboardModel.meta
@@ -82,7 +82,7 @@ export class SupportSnapshotService extends StateManagerBase<SupportSnapshotStat | |||
|
|||
if (!panel.isAngularPlugin()) { | |||
try { | |||
const oldModel = new DashboardModel(snapshot); | |||
const oldModel = new DashboardModel(snapshot, { isEmbedded: true }); | |||
const dash = createDashboardSceneFromDashboardModel(oldModel); |
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.
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.
@dprokop that looks to be unrelated, a bug in SceneQueryRunner.getResultStream , testing a fix now
* Embedding dashboards exploratino * Update * Update * Added e2e test * Update * initial state, and onStateChange, only explore panel menu action and other fixes and tests * fix e2e spec * Fix url * fixing test
* Embedding dashboards exploratino * Update * Update * Added e2e test * Update * initial state, and onStateChange, only explore panel menu action and other fixes and tests * fix e2e spec * Fix url * fixing test
Problem
App plugins and other grafana features would like to embedd / preview a dashboard in a drawer without leaving the page the user is on.