Commit Graph

6 Commits

Author SHA1 Message Date
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