User story #11612
open
Group search query: missing greater than and lesser than comparision for software version
Added by Alexander Brunhirl about 7 years ago.
Updated almost 3 years ago.
Category:
Web - Nodes & inventories
User visibility:
Getting started - demo | first install | level 1 Techniques
Description
Hi,
in "group search" the criteria "greater than" or "smaller than" version is missing.
Which would be very useful to upgrade software to a certain version.
Best regards,
Alex
- User visibility changed from First impressions of Rudder to Getting started - demo | first install | level 1 Techniques
- Priority changed from 80 to 50
- Priority changed from 50 to 0
I never answered on that, but for now, we don't have any ordering on version - they are just strings. The problem is that all distro seems to use their own ordering (and naming) scheme - when they are even self consistant.
What a lt/gt comparison should do might depend on the context (e.g., name strings might either be compared lexically or alphanumerically, [a1,a11,a2] vs. [a1,a2,a11]). But this bug is about comparing OS versions and since the operators are < (lower than) and > (greater than), I would expect the results to be sorted alphanumerically or just numerically if it's a field which contains only digits and no characters.
For example, I would expect the kernel version "4.4.121-92.125-default" to come before "4.12.14-95.40-default" because the algorithm would go from left to right to determine that 4 is lower than 12. It's not important if there's a disto specific suffix like "slowturtle-default" at the end because all that matters with such a type of comparison is the number at the beginning.
Philip
- Tracker changed from Bug to User story
- Subject changed from Missing group criteria to Group search query: missing greater than and lesser than comparision for software version
- Severity deleted (
Minor - inconvenience | misleading | easy workaround)
- Priority deleted (
0)
Also available in: Atom
PDF