-
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: implement NOT IN
operator for author filter in templates
#56777
Conversation
Size Change: +14 B (0%) Total Size: 1.72 MB
ℹ️ View Unchanged
|
Flaky tests detected in 1d01675. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7097998152
|
@@ -266,6 +267,14 @@ export default function DataviewsTemplates() { | |||
filteredTemplates = filteredTemplates.filter( ( item ) => { | |||
return item.author_text === filter.value; | |||
} ); | |||
} else if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could simplify though the conditions here, but it's fine for now that we are iterating so much..
Related #55083
What?
Implement the new
NOT IN
operator in the author filter for the templates page.Gravacao.do.ecra.2023-12-05.as.09.21.45.mov
Why?
The filter component gained a new
NOT IN
operator that is enabled by default. We should either disable it or implement it – right now, the operator is displayed in the filter UI, but it does nothing.How?
Filter templates whose author is not the given one, if the filter uses a
NOT IN
operator.Testing Instructions