-
Notifications
You must be signed in to change notification settings - Fork 85
Fixes #27737: Add the possibility to get all inventory where lastInventoryDate is after a given datetime #6658
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
base: branches/rudder/8.3
Are you sure you want to change the base?
Conversation
|
PR updated with a new commit |
…ntoryDate is after a given datetime
|
PR rebased |
de60f8f to
f26e99d
Compare
…astInventoryDate is after a given datetime Fixes #27737: Add the possibility to get all inventory where lastInventoryDate is after a given datetime
|
PR updated with a new commit |
…where lastInventoryDate is after a given datetime Fixes #27737: Add the possibility to get all inventory where lastInventoryDate is after a given datetime
|
PR updated with a new commit |
…entory where lastInventoryDate is after a given datetime Fixes #27737: Add the possibility to get all inventory where lastInventoryDate is after a given datetime
|
PR updated with a new commit |
...ources/rudder/rudder-core/src/main/scala/com/normation/rudder/domain/queries/CmdbQuery.scala
Outdated
Show resolved
Hide resolved
| case (false, LesserEq) => LTEQ(attributeName, dateString) | ||
| // case Regex => HAS(attributeName) //"default, non interpreted regex | ||
| case _ => HAS(attributeName) // default to Exists | ||
| case _ => HAS(attributeName) // default to Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something feels strange, because IIRC, the inventory date is in CoreNodeFact, so it's the memory checker that is used, not the old LDAP one for that part. But you didn't seem to have changed NodeCriterionMatcherDate or other matcher.
Perhaps I'm just not remember correctly how things work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed, it's addressed in 287f7d7
And I left this code there, since it's an enhancement that applies to any "date" fields (I mentioned them in the PR description)
…all inventory where lastInventoryDate is after a given datetime Fixes #27737: Add the possibility to get all inventory where lastInventoryDate is after a given datetime
|
PR updated with a new commit |
...r/rudder-core/src/main/scala/com/normation/rudder/domain/queries/NodeQueryCriteriaData.scala
Show resolved
Hide resolved
...ources/rudder/rudder-core/src/main/scala/com/normation/rudder/domain/queries/CmdbQuery.scala
Outdated
Show resolved
Hide resolved
...r/rudder-core/src/main/scala/com/normation/rudder/domain/queries/NodeQueryCriteriaData.scala
Show resolved
Hide resolved
…to get all inventory where lastInventoryDate is after a given datetime Fixes #27737: Add the possibility to get all inventory where lastInventoryDate is after a given datetime
|
PR updated with a new commit |
https://issues.rudder.io/issues/27737
Allow to parse a "date" (
yyyy-MM-dd) and a "datetime" (ISO8601 format, without the milliseconds i.e.yyyy-MM-ddTHH:mm:ssZ) at the same time in a date comparator :Z(it could be edited by hand though)Screenshot :

It also extends the format of the following fields (there is still backward compatibility for dates) :
Note : it's still using our default joda-time parser, without the support of millis. Later we could imagine using explicit Java time formatters (as in the unit tests), which support both
TODO: add clear examples in the API doc of the datetime formats