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

[bugfix] Fix deck_polygon metric bug and update examples chart #8025

Merged
merged 4 commits into from
Aug 15, 2019
Merged

[bugfix] Fix deck_polygon metric bug and update examples chart #8025

merged 4 commits into from
Aug 15, 2019

Conversation

villebro
Copy link
Member

@villebro villebro commented Aug 11, 2019

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)

SUMMARY

Previously deck_polygon elevation only worked with old school metrics or fixed values. PR #7924 added support for ad-hoc metrics, but broke support for old-school metrics. This PR makes all elevation types work (ad-hoc metric, oldschool metric and fixed), and adds a few bells and whistles to the example chart, namely coloring based on total population + legend formatting as introduced in #7951 . Also, JS data mutator logic is moved to native elements.

BEFORE

image

AFTER

image

TEST PLAN

REVIEWERS

@thunter009 @mistercrunch

@codecov-io
Copy link

codecov-io commented Aug 11, 2019

Codecov Report

Merging #8025 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #8025   +/-   ##
=======================================
  Coverage   65.54%   65.54%           
=======================================
  Files         469      469           
  Lines       22474    22474           
  Branches     2441     2441           
=======================================
  Hits        14730    14730           
  Misses       7624     7624           
  Partials      120      120
Impacted Files Coverage Δ
superset/examples/deck.py 11.11% <ø> (ø) ⬆️
superset/viz.py 71.61% <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 2476814...3467404. Read the comment docs.

Copy link
Contributor

@thunter009 thunter009 left a comment

Choose a reason for hiding this comment

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

LGTM -- thanks for fixes

@villebro
Copy link
Member Author

@betodealmeida is this good to go? Would love to kill this bug.

@betodealmeida
Copy link
Member

Nice, thanks for fixing this, @villebro!

@betodealmeida betodealmeida merged commit 8773fdc into apache:master Aug 15, 2019
@villebro villebro deleted the deck_label branch August 15, 2019 18:04
@villebro villebro added the v0.34 label Aug 31, 2019
@mistercrunch mistercrunch added 🍒 0.34.1 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.35.0 labels Feb 28, 2024
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
…e#8025)

* Fix deck_polygon bug and update examples chart

* Change js elevation to native ad-hoc metric

* Move scale from metric to native multiplier

* Remove redundant js_columns and change color scheme
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 size/M v0.34 🍒 0.34.1 🚢 0.35.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants