Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] less / more does not work with software versions #1597

Closed
LMS235 opened this issue Mar 13, 2024 · 2 comments
Closed

[BUG] less / more does not work with software versions #1597

LMS235 opened this issue Mar 13, 2024 · 2 comments

Comments

@LMS235
Copy link
Contributor

LMS235 commented Mar 13, 2024

OCS Inventory version
Version : 2.12.1

Describe the bug
less than does not work properly with decimal numbers in the software search

the whole "less than" or "greater than" does not work properly (here the comparison is mathematical, not by version)

When calculating, 17.9 would be greater than 17.15, for software versions 17.15 is higher than 17.9.

To Reproduce
If you have software in version 17.6, it will be found at "less than 17.9.1", but not at "less than 17.10.1"

Expected behavior
If I have software version 17.6, this must be found under "less than 17.9.1" and "less than 17.10.1".

Screenshots
image

@charleneauger
Copy link
Member

Hi @LMS235 ,

The software version is referenced as a String field.
Since version 2.12.0, we have added the Major version, Minor version and Patch version fields. These fields are referenced as Integer which allows a numerical search/comparison.

We advise you to use these fields if you want to search with less than or more than.

Best regards,
Charlene

@LMS235
Copy link
Contributor Author

LMS235 commented Mar 13, 2024

@charleneauger
Thanks for the info. Works :)
Bug can therefore be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants