Closed Morgazipa closed 6 years ago
Looks cool. I'll test it and implement its frontend if it works 👌
template_id
)(results
array is a little big, so only the data
part is shown here which is enough I guess)
Thanks for both review and edge case handling. If it is okay for frontend team, it is also okay for me :D
Frontend team, sure... 😴
About
To initiate the effort, I implemented a backend view for template based search. It accepts template id and a list of constraints, and returns a list of posts which satisfy each constraint simultaneously. At the moment, no validation of any sort is done. Supported filtering query types are "greater than", "less than", "equals" and "contains". A simple test is given for the purpose of illustration. The search makes use of JSON query capabilities of PostgreSQL. Also, "OR" combinations of queries are not possible.
Any feedback/change request is welcome.
Changes