Commit Graph

14 Commits

Author SHA1 Message Date
Mark David Avery 9cb1db6546 fix(tech-insights): When multiple fact retrievers are used for a check, allow for cases where only one returns a given fact
Signed-off-by: Mark David Avery <mark@webark.cc>
2023-03-25 18:39:12 -07: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
LvffY f3101fb9d2 [#10459] 📝 Update documentation to use yarn --cwd arg
Signed-off-by: LvffY <louberger@hotmail.fr>
2022-03-30 15:53:05 +02:00
Fredrik Adelöw 89c7e47967 make the backend plugin ts files consistent
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-03-13 19:27:46 +01:00
goenning d088a484db add import to example
Signed-off-by: goenning <me@goenning.net>
2021-12-27 12:10:12 +00:00
goenning e3b49153b7 add example of custom operator
Signed-off-by: goenning <me@goenning.net>
2021-12-27 12:08:42 +00:00
jluk-box c6c8b8e53e Minor fixes in tech insights plugins readme
Signed-off-by: Jarek Łukow <jlukow@box.com>
2021-12-01 15:49:03 +01:00
goenning 2dc6eb8fdd factRefs to factIds
Signed-off-by: goenning <me@goenning.net>
2021-11-17 18:53:05 +00:00
Guilherme Oenning d0c47ec505 fix incorrect class name on module-jsonfc
Signed-off-by: goenning <me@goenning.net>
2021-11-16 11:42:55 +00:00
Jussi Hallila 9c19d6ad01 Tweak formatting of snippets on README.md files.
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila 5ebfedd9c2 Add new api-report
Update persistence context to not be wrapped into a useless class. Modify the way test databases are created.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila df000b9596 Address various code review comments.
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila b2363f3e3b Add explicit type information to checks
Types can be used to:
* Determine which check logic to run
* Determine the correct persistence option to use
* Choose correct ser/deser logic for the check
* Determine correct components to render on the frontend

Modify router API to be post for better usability. The API might end up doing writes if caching etc. is added in later as well.

Modify CheckRegistry & FactChecker to return persisted check when it is registered.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila 75fc6ac85b Implement Tech Insights backend
* Add common types and interfaces for Tech Insights. Exposing components needed to use and modify tech-insights-backend module and to implement individual Fact Retrievers, Fact Checkers and their persistence options.

* Implement a framework to run fact retrievers and store fact data into the database. Add migration scripts to create a new database for `tech_insights`.

* Create a default implementation of a FactChecker enabling users to construct checks and run them and generate scorecards based on checks.

* To be able to use tech insights in your application you need to implement `FactRetriever`s to retrieve and return data for facts and register them to the tech-insights-backend. If you want to use fact checking functionality, you need to create `check`s and register them to an implementation of a `FactChecker`.

For more information see documentation on the README.md files of the respective packages.

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