Project

General

Profile

Actions

User story #4416

open

Group search does not allow to mix AND and OR combinators

Added by Dennis Cabooter about 10 years ago. Updated almost 3 years ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Web - Nodes & inventories
UX impact:
Suggestion strength:
Advise - This would make Rudder significantly better | easier | simpler
User visibility:
Effort required:
Name check:
Fix check:
Regression:

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.


Related issues 2 (0 open2 closed)

Related to Rudder - User story #4417: Allow node search on IP rangeRejectedActions
Related to Rudder - Bug #4418: Regex field in node search is too smallRejected2014-01-29Actions
Actions #1

Updated by Dennis Cabooter about 10 years ago

  • Tracker changed from Bug to User story
Actions #2

Updated by François ARMAND about 10 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.
Actions #3

Updated by Benoît PECCATTE almost 9 years ago

  • Category set to Web - Nodes & inventories
  • Target version set to Ideas (not version specific)
Actions #4

Updated by Lars Koenen almost 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.

Actions

Also available in: Atom PDF