Skip to content

search: Parenthesize query with context if it contains an operator

Administrator requested to merge fkling/38829-parenthesize-query-context into main

Created by: fkling

Turns out we already have a function that does exactly that. appendContextFilter is used in quite a few places, which probably all suffer from the problem of not treating OR queries properly. I think updating the function to apply parenthesis when needed makes the most sense, but please let me know if that's not the case.

Test plan

Unit tests

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading