Johan Haals
61df116e38
Merge pull request #14017 from leon-vg/tech-insights-initial-delay
...
[Tech Insights] Add a delay to the fact retrievers to prevent cold-start errors
2022-10-24 13:29:48 +02:00
Fredrik Adelöw
30e43717c7
move HumanDuration to @backstage/types
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-10-22 15:54:51 +02:00
Leon
5c3ff9c09c
chore: prettier
...
Signed-off-by: Leon <leonvanginneken@gmail.com >
2022-10-21 15:37:38 +02:00
Leon
8106afc7fd
feat: add initialDelay as option
...
Signed-off-by: Leon <leonvanginneken@gmail.com >
2022-10-21 15:10:37 +02:00
Niek te Grootenhuis
2e0689e536
fix: createFactRetriever not supporting timeout
...
Signed-off-by: Niek te Grootenhuis <niek.te.grootenhuis@alliander.com >
2022-08-19 13:51:49 +02:00
Fredrik Adelöw
3f739be9d9
more api cleanup
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-08-18 15:16:19 +02:00
sblausten
307ade7499
Fix test and make fields optional
...
Signed-off-by: sblausten <sam@roadie.io >
2022-07-06 17:17:52 +02:00
sblausten
4f17e4eb55
Revert "Refactor"
...
This reverts commit 54f4eba561 .
Signed-off-by: sblausten <sam@roadie.io >
2022-07-06 17:14:23 +02:00
sblausten
54f4eba561
Refactor
...
Signed-off-by: sblausten <sam@roadie.io >
2022-07-06 16:09:27 +02:00
sblausten
bcc122c46d
Api report and changelog
...
Signed-off-by: sblausten <sam@roadie.io >
2022-07-06 13:59:42 +02:00
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