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

Subsetter Updates #241

Closed
wants to merge 21 commits into from
Closed

Subsetter Updates #241

wants to merge 21 commits into from

Conversation

pburnsdata
Copy link
Contributor

@pburnsdata pburnsdata commented Feb 28, 2019

Issues

#235
#236
#237

@pburnsdata pburnsdata changed the title update clip-paths #235 Subsetter Updates Feb 28, 2019
@pburnsdata
Copy link
Contributor Author

I tried to make sure this would be backwards-compatible, but keep your eyes peeled for anything you think might cause something to break.

Copy link
Contributor

@jwildfire jwildfire left a comment

Choose a reason for hiding this comment

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

Looking good. One question for you below before approval.

@@ -10,7 +10,7 @@ export default function consolidateData(raw) {
if (this.filters.length) {
this.filters.forEach(filter => {
this.filtered_data = this.filtered_data.filter(d => {
return filter.val === 'All'
return filter.all === true && filter.index === 0
Copy link
Contributor

Choose a reason for hiding this comment

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

@pburnsdata Does filter.index change when the user updates a subsetter input? What code controls that update?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, just like val changes - the code that controls it is below

@@ -85,11 +96,14 @@ export default function makeSubsetterControl(control, control_wrap) {
});
} else {
let value = select(this).select('option:checked').property('text');
let index = select(this).select('option:checked').property('index');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jwildfire this is where it gets updated

Copy link
Contributor

@samussiah samussiah left a comment

Choose a reason for hiding this comment

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

Like this method! One request: tables need the same treatment.

@pburnsdata pburnsdata requested a review from samussiah March 11, 2019 13:59
Remove css font import for open sans
Copy link
Contributor

@jwildfire jwildfire left a comment

Choose a reason for hiding this comment

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

This looks good to me. Definitely needs a full set of feature & regression testing though.

@emmorris emmorris added this to the v1.11.4 milestone Mar 14, 2019
@emmorris emmorris requested a review from danedexF5 March 14, 2019 19:40
@@ -3068,6 +3074,8 @@
.attr('multiple', control.multiple ? true : null)
.datum(control);

var specifiedValues = controls.values;
Copy link
Contributor

Choose a reason for hiding this comment

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

should be control.values

Copy link
Contributor

Choose a reason for hiding this comment

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

fixed in ff30e6e

@samussiah samussiah closed this Mar 18, 2019
@samussiah samussiah deleted the subsetter branch March 27, 2019 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants