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

Accessor overwrite warnings no longer print if functions are identical #44

Merged
merged 1 commit into from
Jul 17, 2016
Merged

Accessor overwrite warnings no longer print if functions are identical #44

merged 1 commit into from
Jul 17, 2016

Conversation

XaserAcheron
Copy link
Contributor

Added an identity check before printing accessor overwrite warnings, since replacing a function with the exact same function is not really an overwrite. ;)

The short "why": I ran into a case where I couldn't easily switch to "boolean mode" when defining min, max, etc. since I'm constructing a reducer dynamically based on some other stuff. My attempts to circumvent the warnings got pretty ugly, and I figure an upstream PR wouldn't hurt.

While there, I also fixed a couple of items that seemed incorrect ('median' instead of 'min'/'max' in warning text and the wrong variable checked for exceptionCount). My apologies for not including them in a separate commit.

@esjewett
Copy link
Member

Thanks for the pull request. At first glance this looks good, but I'm running a bit behind right now. I will try to check it more thoroughly, get it merged, and a patch release put out this weekend. If nothing happens and early next week rolls around, feel free to ping me :)

Thanks,
Ethan

@XaserAcheron
Copy link
Contributor Author

No rush, no worries. Thanks for taking a look n' things!

@esjewett esjewett merged commit b797982 into crossfilter:master Jul 17, 2016
@esjewett
Copy link
Member

This is now included in the 0.6.3 release. Thanks again for the contribution.

@XaserAcheron XaserAcheron deleted the warning-identity-check branch January 4, 2018 21:41
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.

2 participants