User story #4416
openGroup search does not allow to mix AND and OR combinators
Description
As discussed with Vince_McBuche on IRC, it would be nice if the groups could be improved. However, I got no idea about the complexity of the groups query tool.
What I have now is this:
- AND os name = red hat
- AND ip address REGEX 10\.122\.24(9.*|5\.(3[3-9]|[45][0-9]|6[0-3]))
Which is rather complex. In first place it would be nice if AND and OR can be combined:
- If you now create a group you can choose between an AND or OR query
- Maybe it would be nice if that was more flexible:
- AND os name = red hat
- AND ip adress =
- ip address REGEX $regex1 OR
- ip address REGEX $regex2 OR
- ip address REGEX $regex3
Also it would be nice, if it was not only possible to match ip addresses, but ip ranges as well:
- AND ip range =
- ip range = 192.168.0.0/26 OR
- ip range = 10.0.0.1-100 OR
- ip range = 127.0.0.0/8
And last but not least: IMHO the regex field is really small. ATM I have to copy the regex first, then edit it and copy it back. When it's copied back it works, but it's not very readable.
Updated by Dennis Cabooter almost 11 years ago
- Tracker changed from Bug to User story
Updated by François ARMAND almost 11 years ago
- Subject changed from Groups improvement to Group search does not allow to mix AND and OR combinators
Thanks for the report. You are not the first to give feedback about the AND/OR combinantion, but for now, we are struggling to find a good UI for that use case.
I'm going to open to other ticket for the IP range (it should definititly works, and may be considered a bug), and regex field size.
Updated by Benoît PECCATTE over 9 years ago
- Category set to Web - Nodes & inventories
- Target version set to Ideas (not version specific)
Updated by Lars Koenen over 3 years ago
- Suggestion strength set to Advise - This would make Rudder significantly better | easier | simpler
I would propose these two solutions
https://querybuilder.js.org/index.html
https://ux.stackexchange.com/questions/1737/intuitive-interface-for-composing-boolean-logic/69860#69860
I'm bringing this up again because, I think Rudder as a professional tool should make it possible to create more complex logical expressions for the creation of groups.
I have now been in this situation several times, where it would have been very useful if Rudder would offer this feature.
Until now, I have always had to solve these cases by using "helper-groups" into which I have split the logical expressions. This solves the problem, but in my opinion is unnecessarily cumbersome and also clutters up the list of groups.