-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
DataViews: add AND logic operators to filters #59953
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
The only use case where we could implement this is the Author filter for Templates & Parts. It doesn't make much sense there, so I haven't implemented it. |
Size Change: +90 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
I get a |
Ah, sorry, updated the issue description to use the filter names instead. The constants are not defined for the edit-site package because they are not in use. |
I went ahead with this to unblock the next iteration. Happy to update any post-merge feedback. |
Co-authored-by: oandregal <oandregal@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Part of #55083
Related #55100
Follow-up to #59610
What?
Adds two new operators
isAll
andisNotAll
that filters can use. They are not in use by default, as none of the current use cases (pages, patterns, templates, parts) needs it.Why?
We want to support this operation for future use cases (posts, media).
How?
Testing Instructions
Templates
&Parts
atpackages/edit-site/src/components/page-templates-template-parts/index.js
, and declare these filters as supported for theAuthor
field:And that the filter's operator at this point is correct.