Commit Graph

10 Commits

Author SHA1 Message Date
Jussi Hallila aa15229ec3 Introduce additional JsonValue types to be storable as facts. This enables the possibility to store more complex objects for fact checking purposes. The rules engine supports walking keyed object values directly to create rules and checks
Modify facts database table to have a more restricted timestamp precision for cases where the postgres server isn't configured to contain such value. This fixes the issue where in some cases `maxItems` lifecycle condition didn't work as expected.

resolves #11595

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2022-06-10 08:36:53 +02:00
Chris Trombley a50b6474a7 feat(tech-insights): make tokenManager available on FactRetrieverContext
Signed-off-by: Chris Trombley <ctrombley@gmail.com>
2022-04-26 10:56:00 -07:00
Phil Gore 231fee736b updating tasks and tech-insights to work together
Signed-off-by: Phil Gore <pgore@ea.com>
2022-03-22 14:48:17 +01:00
Fredrik Adelöw ed027b8b28 just fix some random ugly comments
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-03-04 16:59:57 +01:00
Jussi Hallila cd8bf7a4ab Add more breaking changes.
Update API reports.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2022-01-13 16:34:22 +01:00
Jussi Hallila 28fd9bc603 Modify based on review comments.
Make it breaking change.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2022-01-13 16:04:30 +01:00
Jussi Hallila dfd5e81721 Adds a configuration option to fact retrievers to define lifecycle for facts the retriever persists. Possible values are either 'items-to-live' or 'time-to-live'. The former will only n number of items in to the database for each fact per entity. The latter will remove all facts that are older than the TTL value.
Possible values:
* { itl: 5 } // Deletes all facts for the retriever/entity pair, apart from the last five
* { ttl: 1209600000 } // (2 weeks) Deletes all facts older than 2 weeks for the retriever/entity pair
* { ttl: { weeks: 2 } } // Deletes all facts older than 2 weeks for the retriever/entity pair

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2022-01-13 13:52:28 +01:00
Iain Billett 8cb41885f5 Pass entityFilter to fact retriever handler context
Signed-off-by: Iain Billett <iain@roadie.io>
2021-11-17 16:49:19 +00:00
Jussi Hallila b863feefbb Address warnings within api-docs
Move extra info on doc to be under remarks block

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila 2b3e959ef4 Modifications after PR review
* Change entity filter to be an actual entity filter instead of a list of kinds or types
* Modify/simplify types a little bit
* Split common type libs to one for node and one isomorphic
* Remove unnecessary items from FactChecker interface to simplify execution loop.

Needs still matching README.md changes.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00