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-6] removed get_data for BigNumber #5861

Merged
merged 3 commits into from
Sep 13, 2018

Conversation

conglei
Copy link
Contributor

@conglei conglei commented Sep 11, 2018

This PR is to move get_data logic for BigNumber and BigNumber Total into frontend code.

#5692

@kristw @williaster @mistercrunch

@conglei conglei changed the title removed get_data for BigNumber [SIP-6] removed get_data for BigNumber Sep 11, 2018
@codecov-io
Copy link

codecov-io commented Sep 11, 2018

Codecov Report

Merging #5861 into master will decrease coverage by 14.32%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #5861       +/-   ##
===========================================
- Coverage   77.99%   63.66%   -14.33%     
===========================================
  Files          46      376      +330     
  Lines        9312    23337    +14025     
  Branches        0     2612     +2612     
===========================================
+ Hits         7263    14858     +7595     
- Misses       2049     8466     +6417     
- Partials        0       13       +13
Impacted Files Coverage Δ
superset/viz.py 81.18% <ø> (-0.11%) ⬇️
.../assets/src/visualizations/BigNumber/BigNumber.jsx 0% <0%> (ø)
...erset/assets/src/visualizations/BigNumber/index.js 0% <0%> (ø)
...et/assets/src/visualizations/BigNumber/adaptor.jsx 0% <0%> (ø)
...sets/src/explore/components/ExploreChartHeader.jsx 71.42% <0%> (ø)
superset/assets/src/components/Checkbox.jsx 100% <0%> (ø)
...perset/assets/src/dashboard/util/getEmptyLayout.js 0% <0%> (ø)
...ts/src/dashboard/util/getComponentWidthFromDrop.js 96.15% <0%> (ø)
...erset/assets/src/SqlLab/components/QuerySearch.jsx 69.36% <0%> (ø)
...rc/explore/components/controls/AnnotationLayer.jsx 22.92% <0%> (ø)
... and 324 more

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 6df720d...509b140. Read the comment docs.

@conglei conglei force-pushed the conglei_big_number_sip6 branch from 509b140 to c63a52e Compare September 12, 2018 20:44
@@ -0,0 +1,5 @@
import adapter from './adaptor';
Copy link
Contributor

Choose a reason for hiding this comment

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

typo adapt"o"r

@@ -26,7 +23,7 @@ const PROPORTION = {
TRENDLINE: 0.3,
};

function renderTooltipFactory(formatValue) {
export function renderTooltipFactory(formatValue) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This was used only in this file. Not sure it is useful to export now. (ok to expert if there are other places using or unit test)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually it is also used in adaptor for the prop renderTooltip. That is why I exported it :)

Copy link
Contributor

Choose a reason for hiding this comment

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

I missed that. Thank you!

@williaster williaster merged commit ee89a3e into apache:master Sep 13, 2018
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 12, 2018
* removed get_data for BigNumber

* removed duplicated condition

* fixed typo
@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.

5 participants