Skip to content

Rework apply_filter(s) to allow callables to be called for relationship filters#1033

Merged
dgeb merged 1 commit intomasterfrom
relationship_filter
Apr 19, 2017
Merged

Rework apply_filter(s) to allow callables to be called for relationship filters#1033
dgeb merged 1 commit intomasterfrom
relationship_filter

Conversation

@lgebhardt
Copy link
Copy Markdown
Contributor

Noticed that callables on filters on relationships were not being called. This should fix that.

Moves the filtering logic to apply_filter from apply_filters.
Modifies the includes in the options hash instead of applying the includes twice.

One possible change we could make is to modify the includes if an apply callable is provide. This would push handling the included relationship onto the callable author, which might create problems for authors since it's not obvious it must be done.

@dgeb dgeb merged commit 3487650 into master Apr 19, 2017
@lgebhardt lgebhardt deleted the relationship_filter branch February 11, 2019 22:55
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