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&6] Refactor line_multi #6058

Merged
merged 4 commits into from
Oct 16, 2018
Merged

[SIP-5&6] Refactor line_multi #6058

merged 4 commits into from
Oct 16, 2018

Conversation

kristw
Copy link
Contributor

@kristw kristw commented Oct 9, 2018

  • Migrate the code for line_multi to remove dependency from slice and convert to react components with similar interface with the others.

  • Add ChartPlugin for line_multi similar to Add ChartPlugin and metadata for nvd3 and BigNumber vis #6085

  • Also fix the potential bug that part of the filters are not applied.

There was this line in the original code:

filters.concat(fd.filters);

This line does not mutate the filters. On a quick pass it might seems fd.filters is concatenated to and filters is modified while in fact it returns a new concatenated array as a result, which was not received by any variable.

@williaster @conglei @graceguo-supercat @michellethomas

@codecov-io
Copy link

codecov-io commented Oct 9, 2018

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6058   +/-   ##
=======================================
  Coverage   77.56%   77.56%           
=======================================
  Files          47       47           
  Lines        9484     9484           
=======================================
  Hits         7356     7356           
  Misses       2128     2128

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 8e88d02...3068317. Read the comment docs.

// add null values at the edges to fix multiChart bug when series with
// different x values use different y axes
if (lineCharts.length && lineCharts2.length) {
let minx = Infinity;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: minX, maxX, minY, maxY are more readable

Copy link
Contributor

@conglei conglei left a comment

Choose a reason for hiding this comment

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

In general it looks good to me! Thanks for the refactoring!

@mistercrunch
Copy link
Member

LGTM

@williaster williaster merged commit dcfbae1 into apache:master Oct 16, 2018
@kristw kristw deleted the kristw-multi branch October 16, 2018 22:04
bipinsoniguavus pushed a commit to ThalesGroup/incubator-superset that referenced this pull request Dec 26, 2018
* Rewrite line_multi

* move dir

* add chartplugin for line_multi

* rename var
@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
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.34.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants