[dasboards as code] drop panels with server errors#260073
[dasboards as code] drop panels with server errors#260073nreese merged 7 commits intoelastic:mainfrom
Conversation
|
/ci |
|
/ci |
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
💚 Build Succeeded
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
|
ThomThomson
left a comment
There was a problem hiding this comment.
Changes LGTM! Looked through all the code and the changes make sense.
| } | ||
| }); | ||
| if (droppedPanelsCount) { | ||
| coreServices.notifications.toasts.addWarning( |
There was a problem hiding this comment.
Nice. Much simpler to fire off a warning than it is to try to put a fake panel in its place.
| enhancements: {}, | ||
| title: 'title1', | ||
| expect(transformDashboardOut(input, references)).toMatchInlineSnapshot(` | ||
| Object { |
There was a problem hiding this comment.
I know this is an inline snapshot, but the diff is pretty difficult to read here when theoretically the only thing that should change is the addition of the warnings array.
| `); | ||
| }); | ||
|
|
||
| it('should drop panel when panel transform throws', () => { |
| "warnings": Array [ | ||
| "Dropped panel 12345, panel schema not available for panel type: typeWithoutSchema. Panels without schemas are not supported by dashboard REST endpoints", | ||
| Object { | ||
| "message": "Panel schema not available for panel type: typeWithoutSchema. Panels without schemas are not supported by dashboard REST endpoints", |
There was a problem hiding this comment.
This is much better as an object! Very nice
| panel_references: schema.maybe(schema.arrayOf(referenceSchema)), | ||
| }); | ||
|
|
||
| export const warningsSchema = schema.arrayOf(droppedPanelWarningSchema); |
There was a problem hiding this comment.
Nice little extension point left in here
…hanges * commit 'd0e62a657916e84694a93983e513ce9e34e0b635': (27 commits) [Agent Builder] Agent overview page design updates (elastic#260468) [Inference UI] Add model detail flyout with endpoint management (elastic#260307) [Fleet] Update doc links in agent policy settings (elastic#260245) [Security Solution] show risk score in new flyout header (elastic#260187) Replace deprecated EUI icons in files owned by @elastic/kibana-security (elastic#255636) [Cases][Templates] Add DATE_PICKER field control type (elastic#260209) [SharedUX] Get spaces callout on each solution nav (elastic#259723) [SharedUX] Preserve feature visibility on solution change (elastic#259316) [CI] Increase investigations cypress disks to 110G (elastic#260423) [Agent Builder] Expose read-only conversations on plugin start contract (elastic#260435) [dasboards as code] drop panels with server errors (elastic#260073) [One Workflow] Add force-delete (hard delete) option for workflows (elastic#260391) [Agent Builder] Fix sidebar error handling error (elastic#260446) [Agent Builder] Add attachment origin to Converse API (elastic#259043) [Alerting v2] Fix rule results preview chart responsiveness (elastic#260444) [Streams] Processing error panel UI improvements (elastic#260028) fix flaky test: alert details error page timeout (elastic#260302) [Agent Builder] Add attachment origin to Converse API (elastic#259043) [One Workflow] Add more unit tests to workflows_extensions plugin (elastic#260384) [ResponseOps] Split alerting security_and_spaces group8 FTR config to fix CI timeout (elastic#260029) ...
Closes elastic#259793 PR removes panels from dashboard out state when panel transform throws. Dropped panels are returned in `warnings` key. Client displays toast when loading dashboard with dropped panels.
Closes elastic#259793 PR removes panels from dashboard out state when panel transform throws. Dropped panels are returned in `warnings` key. Client displays toast when loading dashboard with dropped panels.
Closes #259793
PR removes panels from dashboard out state when panel transform throws. Dropped panels are returned in
warningskey. Client displays toast when loading dashboard with dropped panels.