-
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: simplify filters API #55917
Conversation
Size Change: -13 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
@@ -231,7 +231,7 @@ export default function PagePages() { | |||
</a> | |||
); | |||
}, | |||
filters: [ 'enumeration' ], | |||
filters: [ 'in' ], |
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.
This is the only change that I was not sure about because maybe enumeration is the "type" we should define and the available operators for that particular filter type should be a nested config or something but this is also a good approach for now, so let's just keep it that way.
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.
I gave this a shot at #55996
Part of #55083
What?
Update filters API to:
field
instead ofid
as key to identify the filteroperator
instead oftype
as keyin
instead ofenumeration
for the operatorTesting Instructions