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

feat: combine filters #4

Merged
merged 1 commit into from
Feb 13, 2023
Merged

feat: combine filters #4

merged 1 commit into from
Feb 13, 2023

Conversation

barredterra
Copy link
Contributor

@barredterra barredterra commented Feb 12, 2023

Assume in a list of books we have two taxonomies "author" and "genre".

Currently, the filtering logic is (author in selected_authors) or (genre in selected_genres).

This is not very useful for filtering out the books I am interested in. For example, when I select one author and all genres, I currently get all the books since each has a genre. What I actually want are this author's books across all genres.

In order to achieve this, this PR changes the filtering logic to (author in selected_authors) and (genre in selected_genres).

@knadh knadh merged commit ae0deca into knadh:master Feb 13, 2023
@barredterra barredterra deleted the patch-1 branch February 13, 2023 09:33
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.

None yet

2 participants