Skip to content

Removes Pitch Presentation Template from Canvas#62688

Merged
crob611 merged 3 commits intoelastic:masterfrom
crob611:canvas-remove-pitch-template
Apr 7, 2020
Merged

Removes Pitch Presentation Template from Canvas#62688
crob611 merged 3 commits intoelastic:masterfrom
crob611:canvas-remove-pitch-template

Conversation

@crob611
Copy link
Contributor

@crob611 crob611 commented Apr 6, 2020

Summary

Removes the pitch template from Canvas. This .json file was nearly 10mb, so pulling it out for now to reduce our bundle size down significantly.

@crob611 crob611 requested a review from a team as a code owner April 6, 2020 19:41
@crob611 crob611 added release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v7.7.0 v7.8.0 v8.0.0 labels Apr 6, 2020
@elasticmachine
Copy link
Contributor

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

@crob611 crob611 added the review label Apr 6, 2020
Copy link
Contributor

@poffdeluxe poffdeluxe left a comment

Choose a reason for hiding this comment

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

looks good -- can we get an issue to add the template back in? (Perhaps with some better sized images)

@spalger
Copy link
Contributor

spalger commented Apr 6, 2020

looks good -- can we get an issue to add the template back in? (Perhaps with some better sized images)

I'd much rather see these loaded from the server on demand personally.

# read a templates directory or something and include enough metadata to list them for the user
GET /templates

# load the full pitch template, include high quality images and whatever, but no need to bundle it in the front end code
GET /template/pitch

@crob611
Copy link
Contributor Author

crob611 commented Apr 6, 2020

@poffdeluxe @spalger Made #62696 and added your suggestion.

@mshustov
Copy link
Contributor

mshustov commented Apr 7, 2020

Canvas build is still 9.7Mb. It includes local versions of:

  • @elastic/eui
  • monaco-editor
  • moment
  • rxjs
  • react-dom

Is it possible to link them to @kbn/ui-shared-deps versions via webpack externals?

@mistic
Copy link
Contributor

mistic commented Apr 7, 2020

@crob611 I've made an attempt to achieve that without removing the template here #62784

@mistic
Copy link
Contributor

mistic commented Apr 7, 2020

@restrry I was already looking into it #62807

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@crob611 crob611 merged commit 2c4cc12 into elastic:master Apr 7, 2020
crob611 pushed a commit to crob611/kibana that referenced this pull request Apr 7, 2020
* Removes Pitch Presentation Template from Canvas

* Fix test

* Keep translation to not fail i18n
crob611 pushed a commit to crob611/kibana that referenced this pull request Apr 7, 2020
* Removes Pitch Presentation Template from Canvas

* Fix test

* Keep translation to not fail i18n
gmmorris added a commit to gmmorris/kibana that referenced this pull request Apr 7, 2020
* master:
  [APM] Change custom link from EuiListGroupItem to EuiLink (elastic#62742)
  [Remote Clusters] Update callout and move server_name field (elastic#62352)
  Removes Pitch Presentation Template from Canvas (elastic#62688)
  FTR: Enable w3c for chromedriver (elastic#62542)
  [ML] Disable functional tests
  [ILM] Skip failing API integration test (elastic#62779)
  [SIEM] Update beat doc (elastic#61902)
  [Search] Properly add slash preceding path in async search (elastic#62722)
  [APM] make sure environment query is correct for service maps… (elastic#62764)
  Add service map icon for rum-js agent type (elastic#62721)
  [APM] Service map - fixes irrelevant services on data refresh (elastic#62750)
  [APM] Service map - Fix taxi edge arrow orientation (elastic#62741)
  [APM] Prevent error rate alert trigger from rendering NaN (elastic#62754)
  [EPM] Store map visualizations from the package registry and use saved object ID (elastic#62059)
  [Alerting] for email action, set tls.rejectUnauthorized: false when secure: false (elastic#62380)
spalger pushed a commit that referenced this pull request Apr 8, 2020
* Removes Pitch Presentation Template from Canvas

* Fix test

* Keep translation to not fail i18n
spalger pushed a commit that referenced this pull request Apr 8, 2020
* Removes Pitch Presentation Template from Canvas

* Fix test

* Keep translation to not fail i18n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v7.7.0 v7.8.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants