Skip to content

[Canvas] Fix embeddables not showing up on PDF reports - #61149

Merged
poffdeluxe merged 3 commits into
elastic:masterfrom
poffdeluxe:canvas-map-embeddable-pdf-fix
Mar 25, 2020
Merged

poffdeluxe merged 3 commits into
elastic:masterfrom
poffdeluxe:canvas-map-embeddable-pdf-fix

Conversation

@poffdeluxe

@poffdeluxe poffdeluxe commented Mar 24, 2020 •

Copy link
Copy Markdown
Contributor

Summary

Canvas was setting the data-render-complete attribute to true on embeddables before they had fully rendered. Embeddables should be in charge of setting their own data-render-complete setting so Canvas does not need to set the attribute.

Fixes #60655

k86ck6mj0ve39d00627tbwt5

@poffdeluxe poffdeluxe changed the title [Canvas] Allow embeddables to track their own render complete for report generation [Canvas] Fix map embeddables not showing up on PDF reports Mar 24, 2020
@poffdeluxe poffdeluxe added bug Fixes for quality problems that affect the customer experience impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:small Small Level of Effort release_note:fix review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// labels Mar 24, 2020
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-canvas (Team:Canvas)

@poffdeluxe
poffdeluxe marked this pull request as ready for review March 24, 2020 20:30
@poffdeluxe
poffdeluxe requested a review from a team as a code owner March 24, 2020 20:30
@poffdeluxe
poffdeluxe requested a review from joelgriffith March 24, 2020 20:30
@poffdeluxe

Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

{Style.it(
workpad.css,
<div className="canvasExport__stageContent">
<div className="canvasExport__stageContent" data-shared-items-count={pageElementCount}>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This tells reporting how many elements it should expect on the page. Since the embeddables aren't loaded immediately sometimes, we need to tell reporting to wait and expect them to become available

@crob611 crob611 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work. 👍

@poffdeluxe
poffdeluxe merged commit a16968d into elastic:master Mar 25, 2020
@poffdeluxe
poffdeluxe deleted the canvas-map-embeddable-pdf-fix branch March 25, 2020 19:54
poffdeluxe added a commit that referenced this pull request Mar 25, 2020
…61345)

* Allow embeddables to track their own render complete for report generation in canvas

* Updating following consult with reporting team

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

@tsullivan tsullivan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@poffdeluxe

Copy link
Copy Markdown
Contributor Author

This fix was originally intended for v7.7.0 but it got merged into 7.x after the original 7.7 branch was cut so it unfortunately missed it.

I'm backporting it into 7.7 now so it can make it into 7.7.2

@poffdeluxe poffdeluxe changed the title [Canvas] Fix map embeddables not showing up on PDF reports [Canvas] Fix embeddables not showing up on PDF reports Jun 4, 2020
poffdeluxe added a commit that referenced this pull request Jun 4, 2020
…68268)

* Allow embeddables to track their own render complete for report generation in canvas

* Updating following consult with reporting team

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	x-pack/legacy/plugins/canvas/public/apps/export/export/export_app.js
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
…1149)

* Allow embeddables to track their own render complete for report generation in canvas

* Updating following consult with reporting team

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:small Small Level of Effort release_note:fix review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v7.7.2 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Map embedded in Canvas not visible in PDF export

5 participants