Skip to content
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

[Reporting] Fix map tiles not loading by using Chrome's Remote Protocol #55137

Merged
merged 7 commits into from
Jan 17, 2020
Merged

[Reporting] Fix map tiles not loading by using Chrome's Remote Protocol #55137

merged 7 commits into from
Jan 17, 2020

Conversation

joelgriffith
Copy link
Contributor

@joelgriffith joelgriffith commented Jan 16, 2020

Summary

This updates our request interception/monkeying to use Chrome's Devtool's Protocol. Benefit here is speed, but namely the fact that it allows us to load our map tiles(!!!!). I'll past the link to the issues here in a sec.

Fixes:

@joelgriffith joelgriffith changed the title Bugfix/reporting maps tiles [Reporting] Fix map tiles not loading by using Chrome's Remote Protocol Jan 16, 2020
@joelgriffith
Copy link
Contributor Author

@elasticmachine merge upstream

// puppeteer's API will render map tiles as blanks :/
client.on('Fetch.requestPaused', (interceptedRequest: InterceptedRequest) => {
const requestId = interceptedRequest.requestId;
const interceptedUrl = interceptedRequest.request.url;
Copy link
Member

Choose a reason for hiding this comment

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

how about:
const { requestId, request: { url: interceptedUrl } } = interceptedRequest;

Copy link
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! I had a minor comment about assignment syntax

@tsullivan
Copy link
Member

Tested the changes using the Sample Data flights dashboard and it's looking great!

@tsullivan
Copy link
Member

Exported PNG of the Suricata Events dashboard is looking good!

image

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@joelgriffith joelgriffith merged commit e8b859b into elastic:master Jan 17, 2020
joelgriffith pushed a commit that referenced this pull request Jan 18, 2020
…Protocol (#55137) (#55235)

* [Reporting] Fix map tiles not loading by using Chrome's Remote Protocol (#55137)

* WIP Fixing map tiles and such

* Small comment and importing map from dolash

* Better destructuring and comments

Co-authored-by: Elastic Machine <[email protected]>

* Fixing type woes in reportin'

* Fixing dupe export

Co-authored-by: Elastic Machine <[email protected]>
joelgriffith pushed a commit that referenced this pull request Jan 18, 2020
…ol (#55137) (#55240)

* WIP Fixing map tiles and such

* Small comment and importing map from dolash

* Better destructuring and comments

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jan 20, 2020
* upstream/master: (83 commits)
  [Reporting] Fix map tiles not loading by using Chrome's Remote Protocol (elastic#55137)
  [Data Plugin] combine autocomplete provider and suggestions provider (elastic#54451)
  resolves elastic#53038 - remove references to specific license levels (elastic#53858)
  highlighting rules should still know about url parts when in sql state (elastic#55200)
  [Metric] convert mocha tests to jest (elastic#54054)
  [skip-ci] Update vector styling docs for 7.6 UI changes and new features (elastic#55087)
  Fix enable API to schedule task after alert is updated (elastic#55095)
  chore(NA): add 7.6 branch to the list of backport branches (elastic#54998)
  Convert tests to jest in vis_type_timeseries/public & common folders (elastic#55023)
  [ML] Accessibility fix for structural markup on table rows (elastic#55075)
  [Mappings editor] include/exclude fields only support custom options (elastic#54949)
  [Vis] Move Timelion Vis to vis_type_timelion (elastic#52069)
  Deprecate `chrome.navlinks.update` and add documentation (elastic#54893)
  [ML] Single Metric Viewer: Fix time bounds with custom strings. (elastic#55045)
  [Vis: Default editor] EUIficate and Reactify the sidebar (elastic#49864)
  [Mappings editor] Fix cannot set boolean value for "null_value" param (elastic#55015)
  [SIEM] Adds support for apm-* to the network map (elastic#54876)
  [Reporting] Define shims of legacy dependencies (elastic#54082)
  Resolver is overflow: hidden to prevent obscured elements from showing up (elastic#55076)
  Upgraded EUI to 18.2.1 (elastic#55090)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants