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

Provide more fluent interface to handle boolean filter #559

Merged
merged 2 commits into from
Apr 26, 2023

Conversation

heka1024
Copy link
Contributor

@heka1024 heka1024 commented Apr 15, 2023

It would be nice to be able to use a boolean filter like <filter_name>? instead of <filter_name>.

Copy link

@DevStarSJ DevStarSJ left a comment

Choose a reason for hiding this comment

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

LGTM

@AaronLasseigne
Copy link
Owner

We used to generate predicate methods for each input to see if it was given. With that dropped in 4.0.0 we can do something like this now. It's also far enough away from what it used to do that I think I shouldn't mess up people upgrading.

@AaronLasseigne
Copy link
Owner

There are a couple of linting errors but I think this is a good idea.

@heka1024
Copy link
Contributor Author

@AaronLasseigne I fixed linting errors. Could you review this PR once again?

@AaronLasseigne AaronLasseigne changed the base branch from main to next April 26, 2023 22:45
@AaronLasseigne AaronLasseigne merged commit 1ec6da2 into AaronLasseigne:next Apr 26, 2023
@AaronLasseigne
Copy link
Owner

Thanks!

@heka1024 heka1024 deleted the fluent-boolean-filter branch April 27, 2023 02:02
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.

3 participants