esmero / format_strawberryfield

Set of Display formatters, extractors and utils to make Strawberry field data glow
GNU Lesser General Public License v3.0
6 stars 9 forks source link

ISSUE-449: Fix multiple Contextual filters, some "NULL" and allow Exposed filters. But avoid if already set same "key" via a Cont… #450

Closed DiegoPino closed 4 months ago

DiegoPino commented 4 months ago

…extual one

Also, for contextual ones, use the "exception" value instead of NULL So we can avoid passing "NULL" and end being not validated because of that. $executable->exposed_data = $filters; was the trick ..

See #449

@alliomeria this should do the trick with OAI and a single View dealing with both listing and getting a single record. Will report tomorrow with a live implementation and simple instructions for this (so you can also have this in your local for future needs/users)

DiegoPino commented 4 months ago

This works. Note. The Open API will not run any Views at all if none of the passed arguments is mapped to a Views argument or Filter. That is by design to avoid someone by mistake exposing their whole repository without a single filter (or though) via an API @alliomeria