Skip to content

Fix print mode regression in Dashboard#242780

Merged
ThomThomson merged 3 commits intoelastic:mainfrom
ThomThomson:dashboard/fixPrintModeRegression
Nov 17, 2025
Merged

Fix print mode regression in Dashboard#242780
ThomThomson merged 3 commits intoelastic:mainfrom
ThomThomson:dashboard/fixPrintModeRegression

Conversation

@ThomThomson
Copy link
Contributor

@ThomThomson ThomThomson commented Nov 12, 2025

Summary

Fixes #242741 by not pausing the fetch when in print mode. Controls are never rendered in Print mode, so the control group is never set.

Backport skipped because the PR that caused the issue was not backported.

@ThomThomson
Copy link
Contributor Author

/ci

Copy link
Contributor

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

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

We were hoping this would fix generating a PDF with print format on, which is currently broken on main. Before this PR, the report would time out.

Now, it doesn't time out, but the report it generates only contains the first visualization. I always test with the Web Logs sample data, with the dashboard it provides, and generate a report from that.

Perhaps there is some else needed on the reporting side ...

@ThomThomson
Copy link
Contributor Author

@pmuellr I'm not seeing this behaviour. On my end the PDF report with print format on generates correctly.

@pmuellr
Copy link
Contributor

pmuellr commented Nov 13, 2025

hahahaha ... I still had my config for testing the new grid layout

feature_flags.overrides:
  core.chrome.layoutType: 'grid'

Once I removed that, all the panels come in. Will do a complete review (I just tried the code out before).

I guess that means the grid layout likely breaks pdf/print, which I was waiting for this PR, to unblock testing it :-)

Copy link
Contributor

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

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

LGTM, works with PNG, PDF, and what was broken PDF/print

@ThomThomson ThomThomson added release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// loe:small Small Level of Effort impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. backport:skip This PR does not require backporting v9.3.0 labels Nov 14, 2025
@ThomThomson ThomThomson marked this pull request as ready for review November 14, 2025 16:16
@ThomThomson ThomThomson requested a review from a team as a code owner November 14, 2025 16:16
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@ThomThomson
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

LGTM
code review only

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
dashboard 663.4KB 663.5KB +39.0B

History

@ThomThomson ThomThomson merged commit 79a6496 into elastic:main Nov 17, 2025
12 checks passed
eokoneyo pushed a commit to eokoneyo/kibana that referenced this pull request Dec 2, 2025
skips pausing the fetch when in print mode. Controls are never rendered in Print mode, so
the control group is never set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting 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 Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Printable report generation on dashboards fails due to timeout

4 participants