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

[SIP-5] Revise markup.js and iframe.js #5672

Merged
merged 5 commits into from Aug 23, 2018
Merged

Conversation

kristw
Copy link
Contributor

@kristw kristw commented Aug 18, 2018

  • Remove calls to slice.xxx
  • Construct iframe element in js and keep it for later use instead of setting innerHTML to create iframe and later lookup iframe by id. Remove iframe id.
  • Remove code block $('#code').attr('rows', '15') because the element with id code does not exist so this block does nothing. Also make this component independent from jquery
  • Use import/export instead of require and module.exports
  • Fix the code to set style overflow:auto. The previous code has a bug and did not set the style successfully.
  • Remove render_template and Mustache dependency from Chart.jsx

Test

Ran a development instance with the code above and verified with production instance that they produce the same results.

@codecov-io
Copy link

codecov-io commented Aug 18, 2018

Codecov Report

Merging #5672 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5672      +/-   ##
==========================================
- Coverage   63.49%   63.47%   -0.03%     
==========================================
  Files         360      360              
  Lines       22889    22894       +5     
  Branches     2549     2550       +1     
==========================================
- Hits        14534    14532       -2     
- Misses       8340     8347       +7     
  Partials       15       15
Impacted Files Coverage Δ
superset/assets/src/chart/Chart.jsx 57.69% <ø> (+0.22%) ⬆️
superset/assets/src/visualizations/markup.js 0% <0%> (ø) ⬆️
superset/assets/src/visualizations/iframe.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d15d91...24661da. Read the comment docs.

@kristw kristw changed the title Revise markup.js Revise markup.js and iframe.js Aug 18, 2018
@mistercrunch
Copy link
Member

LGTM

@williaster
Copy link
Contributor

hopefully we'll be deprecating these soon but also lgtm 👍

@williaster williaster merged commit 9fb28b5 into apache:master Aug 23, 2018
@kristw kristw deleted the kristw-markup branch August 24, 2018 05:07
@kristw kristw changed the title Revise markup.js and iframe.js [SIP-5] Revise markup.js and iframe.js Aug 24, 2018
kristw added a commit to kristw/incubator-superset that referenced this pull request Aug 27, 2018
* Do not call slice.xxx

* remove iframe id

* remove old code

* use import instead of require

* update iframe.js

(cherry picked from commit 9fb28b5)
kristw added a commit to kristw/incubator-superset that referenced this pull request Aug 27, 2018
* Do not call slice.xxx

* remove iframe id

* remove old code

* use import instead of require

* update iframe.js

(cherry picked from commit 9fb28b5)
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 12, 2018
* Do not call slice.xxx

* remove iframe id

* remove old code

* use import instead of require

* update iframe.js
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* Do not call slice.xxx

* remove iframe id

* remove old code

* use import instead of require

* update iframe.js
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants