Skip to content

Fixes data points on maps not showing up in reports#31949

Merged
joelgriffith merged 3 commits intoelastic:masterfrom
joelgriffith:reporting/bugfix-data-points-maps
Feb 26, 2019
Merged

Fixes data points on maps not showing up in reports#31949
joelgriffith merged 3 commits intoelastic:masterfrom
joelgriffith:reporting/bugfix-data-points-maps

Conversation

@joelgriffith
Copy link
Copy Markdown
Contributor

Maps didn't like rendering into a parent with a 0 width/height, so I went with a more granular approach of explicitly hiding certain css properties vs the width/height hack. I've attached some before/after PDF's that highlight the fix and some subtle differences.
After.pdf
Uploading Before.pdf…

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

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.

Removing these makes the above block-level comment outdated.

It looks like it already was outdated though, as there is no server/lib/screenshot file anymore. I am not sure what "can only use the properties that will be manually set..." means

@joelgriffith
Copy link
Copy Markdown
Contributor Author

So, it turns out waiting a bit to inject the custom CSS allows all the items to render properly (and we don't have to touch hacky CSS stuff).
Final.pdf

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Member

@tsullivan tsullivan left a comment

Choose a reason for hiding this comment

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

LGTM - this solution is WAY better than adding additional hacks

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@joelgriffith
Copy link
Copy Markdown
Contributor Author

Will work on backporting this

@joelgriffith joelgriffith merged commit db2e920 into elastic:master Feb 26, 2019
@joelgriffith joelgriffith added v7.0.0 backport pending zDeprecated Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead v6.7.0 labels Feb 26, 2019
joelgriffith added a commit that referenced this pull request Feb 26, 2019
* Fixes data points on maps not showing up in reports
joelgriffith added a commit that referenced this pull request Feb 26, 2019
* Fixes data points on maps not showing up in reports
@tsullivan
Copy link
Copy Markdown
Member

@joelgriffith looks like this did not get backported to 7.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport pending v6.7.0 v7.0.0 zDeprecated Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants