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

Input filter dc v3 #1387

Closed
wants to merge 5 commits into from
Closed

Input filter dc v3 #1387

wants to merge 5 commits into from

Conversation

kum-deepak
Copy link
Collaborator

@kum-deepak kum-deepak commented Mar 29, 2018

Started work. Will work on making in similar in code convention as other D3 modules. I will inform when I am happy with the work.

Based on #936

@kum-deepak
Copy link
Collaborator Author

Marking it complete from my side for now. :)

My suggestion will be to choose a more appropriate name for this. Something to do with text/search/filter/widget. Will look forward for suggestions.

return s.toLowerCase();
};

var _filterFunctionFactory = function (query) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The coding convention in dc.js is to use a function declaration rather than a variable, for local functions that won't be replaced. (Using a variable for _normalize makes sense because it will change.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Did you mean for filterFunctionFactory?

filterFunctionFactory can change in some specific cases. There is get/set for this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Whoops, you're so right. Sorry for the noise.

@kum-deepak kum-deepak changed the title Input filter dcv3 Input filter dc v3 Mar 30, 2018
@gordonwoodhull
Copy link
Contributor

gordonwoodhull commented Apr 4, 2018

I agree, inputFilter isn't specific enough. Maybe textFilterWidget or something like that?

@tttp, any opinions?

@kum-deepak
Copy link
Collaborator Author

Renamed inputFilter to textFilterWidget. Ready for your review.

tttp and others added 5 commits April 22, 2018 09:49
Add a wordcloud

Add a new input-filter graph

delete cloud for now

clean text, remove dead code

add configuration option for throttle duration and filter

work on tests+update based on input on the PR and ML

remove mandatory group() that isn't used

latest version
@kum-deepak kum-deepak changed the base branch from 3.0 to develop April 22, 2018 08:55
@kum-deepak
Copy link
Collaborator Author

Rebased and changed base to dc.js/develop.

@tttp
Copy link
Contributor

tttp commented Apr 22, 2018

Fine for the change of the name on my side, thanks @kum-deepak !

@ntbrock
Copy link

ntbrock commented Apr 28, 2018

@kum-deepak this PR #1387 patched on top of dc.js/develop and worked wonderfully in my application layer.

dc.textFilterWidget is a wonderful feature addition! I would love to see this become part of 3.0 release.

@gordonwoodhull
Copy link
Contributor

gordonwoodhull commented Apr 28, 2018

I think this could use one or two more test cases, but I am merging it anyway for 3.0.0.

If any issues or ambiguities arise, we can add test cases then.

Thanks @tttp, @kum-deepak!

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