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>
* 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>
* 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>
* Add boolean constructor param to define if to use legacy paths
* Swap urls to match new pattern
* Add few tests
Signed-off-by: Jussi Hallila <jussi@hallila.com>
* Adding indexing, searching and default translator for ElasticSearch engine
* Modifying default backend to use ES if it is enabled
* Adding configuration schema to configure ElasticSearch 3 different ways
* Elastic.co hosted solution
* AWS hosted ElasticSearch Service
* Custom, using standard ElasticSearch URL and auth info
* Add and modify some of the documentation regarding search
Signed-off-by: Jussi Hallila <jussi@hallila.com>
* Implements a collator for tech docs.
* Retrieves mkdocs created search index for entities that have documentation configured
* Registers collator to expose tech docs content to be searchable
* Adds pagination to example search
* Modifies example search to contain tech docs
* Displays docs results with link to docs and the entity name as title.
* Creates a reusable type filter to be located in the search package.
* Add tests for type filter
Signed-off-by: Jussi Hallila <jussi@hallila.com>