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

Fix adhoc metrics in Polygon #6399

Merged
merged 2 commits into from
Nov 17, 2018
Merged

Conversation

mistercrunch
Copy link
Member

  • moving <ErrorBoundary> at higher level to catch tooltip-related errors
  • retrofit color scaler breakpoints to work with "adhoc metrics", currently it works only with old-school "predefined metrics"

{fd.metric &&
<div>{fd.metric}: <strong>{o.object[fd.metric]}</strong></div>}
</div>);
} else if (fd.line_column && (fd.line_type === 'geohash' || fd.line_type === 'zipcode')) {
Copy link
Member

@hughhhh hughhhh Nov 16, 2018

Choose a reason for hiding this comment

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

add fd.metric to else if condition

Is there any reason why it is separate?

? parseInt(formDataNumBuckets, 10)
: 10;
const [minValue, maxValue] = extent(features, d => d[metric]);
const numBuckets = formDataNumBuckets ? parseInt(formDataNumBuckets, 10) : 10;
Copy link
Member

Choose a reason for hiding this comment

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

nit: Better to leave a DEFAULT_NUM_BUCKETS = 10 at the top of the file. Can we replace all the inline conditions in this file for better readability/consistency

@codecov-io
Copy link

codecov-io commented Nov 17, 2018

Codecov Report

Merging #6399 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6399   +/-   ##
=======================================
  Coverage   77.31%   77.31%           
=======================================
  Files          67       67           
  Lines        9581     9581           
=======================================
  Hits         7408     7408           
  Misses       2173     2173

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 8b2cae0...7cec853. Read the comment docs.

@mistercrunch
Copy link
Member Author

Addressed comments, mergin'

@mistercrunch mistercrunch merged commit 4c94447 into apache:master Nov 17, 2018
@mistercrunch mistercrunch deleted the fix_metric_deck branch November 17, 2018 01:06
mistercrunch added a commit that referenced this pull request Nov 30, 2018
* Fix adhoc metrics in Polygon

* Addressing comments

(cherry picked from commit 4c94447)
bipinsoniguavus pushed a commit to ThalesGroup/incubator-superset that referenced this pull request Dec 26, 2018
* Fix adhoc metrics in Polygon

* Addressing comments
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.0 labels Feb 27, 2024
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* Fix adhoc metrics in Polygon

* Addressing comments

(cherry picked from commit 170aaa2)
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 v0.29 🚢 0.34.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants