13 KiB
@backstage/plugin-tech-insights-backend
0.4.0-next.1
Minor Changes
-
3333e20b27: BREAKING: ThebuildTechInsightsContextfunction now takes an additional field in its options argument:tokenManager. This is an instance ofTokenManager, which can be found in your backend initialization code'senv.const builder = buildTechInsightsContext({ logger: env.logger, config: env.config, database: env.database, discovery: env.discovery, scheduler: env.scheduler, + tokenManager: env.tokenManager, factRetrievers: [ /* ... */ ], });
Patch Changes
- Updated dependencies
- @backstage/backend-common@0.13.3-next.1
- @backstage/plugin-tech-insights-node@0.3.0-next.1
0.3.1-next.0
Patch Changes
- Updated dependencies
- @backstage/backend-common@0.13.3-next.0
- @backstage/backend-tasks@0.3.1-next.0
- @backstage/plugin-tech-insights-node@0.2.10-next.0
0.3.0
Minor Changes
-
231fee736b: This backend now uses the@backstage/backend-taskspackage facilities for scheduling fact retrievers.BREAKING: The
buildTechInsightsContextfunction now takes an additional field in its options argument:scheduler. This is an instance ofPluginTaskScheduler, which can be found in your backend initialization code'senv.const builder = buildTechInsightsContext({ logger: env.logger, config: env.config, database: env.database, discovery: env.discovery, + scheduler: env.scheduler, factRetrievers: [ /* ... */ ], });
Patch Changes
-
21de525ce9: Updated README.md with better install instructions -
c47509e1a0: Implemented changes suggested by Deepsource.io including multiple double non-null assertion operators and unexpected awaits for non-promise values. -
2fe58c7285: Improved the Tech-Insights documentation:lifecycleexamples usedttlwhen it should betimeToLive- Added list of included FactRetrievers
- Added full backend example using all included FactRetrievers
- Added boolean scorecard example image showing results of backend example
-
Updated dependencies
- @backstage/backend-tasks@0.3.0
- @backstage/catalog-model@1.0.1
- @backstage/plugin-tech-insights-node@0.2.9
- @backstage/backend-common@0.13.2
- @backstage/catalog-client@1.0.1
0.3.0-next.2
Patch Changes
21de525ce9: Updated README.md with better install instructions- Updated dependencies
- @backstage/backend-tasks@0.3.0-next.2
- @backstage/catalog-model@1.0.1-next.1
0.3.0-next.1
Minor Changes
-
231fee736b: This backend now uses the@backstage/backend-taskspackage facilities for scheduling fact retrievers.BREAKING: The
buildTechInsightsContextfunction now takes an additional field in its options argument:scheduler. This is an instance ofPluginTaskScheduler, which can be found in your backend initialization code'senv.const builder = buildTechInsightsContext({ logger: env.logger, config: env.config, database: env.database, discovery: env.discovery, + scheduler: env.scheduler, factRetrievers: [ /* ... */ ], });
Patch Changes
- Updated dependencies
- @backstage/backend-tasks@0.3.0-next.1
- @backstage/plugin-tech-insights-node@0.2.9-next.1
- @backstage/backend-common@0.13.2-next.1
0.2.11-next.0
Patch Changes
-
c47509e1a0: Implemented changes suggested by Deepsource.io including multiple double non-null assertion operators and unexpected awaits for non-promise values. -
2fe58c7285: Improved the Tech-Insights documentation:lifecycleexamples usedttlwhen it should betimeToLive- Added list of included FactRetrievers
- Added full backend example using all included FactRetrievers
- Added boolean scorecard example image showing results of backend example
-
Updated dependencies
- @backstage/catalog-model@1.0.1-next.0
- @backstage/backend-common@0.13.2-next.0
- @backstage/catalog-client@1.0.1-next.0
- @backstage/plugin-tech-insights-node@0.2.9-next.0
0.2.10
Patch Changes
89c7e47967: Minor README update- Updated dependencies
- @backstage/backend-common@0.13.1
- @backstage/catalog-model@1.0.0
- @backstage/catalog-client@1.0.0
- @backstage/config@1.0.0
- @backstage/errors@1.0.0
- @backstage/plugin-tech-insights-common@0.2.4
- @backstage/plugin-tech-insights-node@0.2.8
0.2.9
Patch Changes
- Updated dependencies
- @backstage/backend-common@0.13.0
- @backstage/catalog-model@0.13.0
- @backstage/catalog-client@0.9.0
- @backstage/plugin-tech-insights-node@0.2.7
0.2.9-next.0
Patch Changes
- Updated dependencies
- @backstage/backend-common@0.13.0-next.0
- @backstage/catalog-model@0.13.0-next.0
- @backstage/catalog-client@0.9.0-next.0
- @backstage/plugin-tech-insights-node@0.2.7-next.0
0.2.8
Patch Changes
36aa63022b: UseCompoundEntityRefinstead ofEntityName, andgetCompoundEntityRefinstead ofgetEntityName, from@backstage/catalog-model.- Updated dependencies
- @backstage/catalog-model@0.12.0
- @backstage/catalog-client@0.8.0
- @backstage/backend-common@0.12.0
- @backstage/plugin-tech-insights-node@0.2.6
0.2.7
Patch Changes
67a7c02d26: Remove usages ofEntityRefandparseEntityNamefrom@backstage/catalog-model919cf2f836: Minor updates to match the newtargetReffield of relations, and to stop consuming thetargetfield- Updated dependencies
- @backstage/backend-common@0.11.0
- @backstage/catalog-model@0.11.0
- @backstage/catalog-client@0.7.2
- @backstage/plugin-tech-insights-node@0.2.5
0.2.6
Patch Changes
- Fix for the previous release with missing type declarations.
- Updated dependencies
- @backstage/backend-common@0.10.9
- @backstage/catalog-client@0.7.1
- @backstage/catalog-model@0.10.1
- @backstage/config@0.1.15
- @backstage/errors@0.2.2
- @backstage/plugin-tech-insights-common@0.2.3
- @backstage/plugin-tech-insights-node@0.2.4
0.2.5
Patch Changes
c77c5c7eb6: Addedbackstage.roletopackage.json538ca90790: Use updated type names from@backstage/catalog-client- Updated dependencies
- @backstage/backend-common@0.10.8
- @backstage/catalog-client@0.7.0
- @backstage/errors@0.2.1
- @backstage/catalog-model@0.10.0
- @backstage/config@0.1.14
- @backstage/plugin-tech-insights-common@0.2.2
- @backstage/plugin-tech-insights-node@0.2.3
0.2.4
Patch Changes
-
2441d1cf59: chore(deps): bumpknexfrom 0.95.6 to 1.0.2This also replaces
sqlite3with@vscode/sqlite35.0.7 -
Updated dependencies
- @backstage/catalog-client@0.6.0
- @backstage/backend-common@0.10.7
- @backstage/plugin-tech-insights-node@0.2.2
0.2.4-next.0
Patch Changes
-
2441d1cf59: chore(deps): bumpknexfrom 0.95.6 to 1.0.2This also replaces
sqlite3with@vscode/sqlite35.0.7 -
Updated dependencies
- @backstage/backend-common@0.10.7-next.0
- @backstage/plugin-tech-insights-node@0.2.2-next.0
0.2.3
Patch Changes
- Updated dependencies
- @backstage/backend-common@0.10.6
- @backstage/plugin-tech-insights-node@0.2.1
0.2.3-next.0
Patch Changes
- Updated dependencies
- @backstage/backend-common@0.10.6-next.0
- @backstage/plugin-tech-insights-node@0.2.1-next.0
0.2.2
Patch Changes
bbb6622752: Update README to match config options.- Updated dependencies
0.2.1
Patch Changes
ad0a7eb088: Fixed invalid access that caused an immediate crash with aTypeErrorwhen loading the package.
0.2.0
Minor Changes
-
dfd5e81721: BREAKING CHANGES:- The helper function to create a fact retriever registration is now expecting an object of configuration items instead of individual arguments.
Modify your
techInsights.tsplugin configuration inpackages/backend/src/plugins/techInsights.ts(or equivalent) the following way:
-createFactRetrieverRegistration( - '1 1 1 * *', // Example cron, At 01:01 on day-of-month 1. - entityOwnershipFactRetriever, -), +createFactRetrieverRegistration({ + cadence: '1 1 1 * *', // Example cron, At 01:01 on day-of-month 1. + factRetriever: entityOwnershipFactRetriever, +}),TechInsightsStoreinterface has changed its signature ofinsertFactsmethod. If you have created your own implementation of eitherTechInsightsDatabaseorFactRetrieverEngineyou need to modify the implementation/call to this method to accept/pass-in an object instead if individual arguments. The interface now accepts an additionallifecycleargument which is optional (defined below). An example modification to fact retriever engine:
-await this.repository.insertFacts(factRetriever.id, facts); +await this.repository.insertFacts({ + id: factRetriever.id, + facts, + lifecycle, +});Adds a configuration option to fact retrievers to define lifecycle for facts the retriever persists. Possible values are either 'max items' or 'time-to-live'. The former will keep only n number of items in the database for each fact per entity. The latter will remove all facts that are older than the TTL value.
Possible values:
{ maxItems: 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
- The helper function to create a fact retriever registration is now expecting an object of configuration items instead of individual arguments.
Modify your
Patch Changes
- Updated dependencies
- @backstage/backend-common@0.10.4
- @backstage/config@0.1.13
- @backstage/plugin-tech-insights-node@0.2.0
- @backstage/catalog-model@0.9.10
- @backstage/catalog-client@0.5.5
0.2.0-next.0
Minor Changes
-
dfd5e81721: BREAKING CHANGES:- The helper function to create a fact retriever registration is now expecting an object of configuration items instead of individual arguments.
Modify your
techInsights.tsplugin configuration inpackages/backend/src/plugins/techInsights.ts(or equivalent) the following way:
-createFactRetrieverRegistration( - '1 1 1 * *', // Example cron, At 01:01 on day-of-month 1. - entityOwnershipFactRetriever, -), +createFactRetrieverRegistration({ + cadence: '1 1 1 * *', // Example cron, At 01:01 on day-of-month 1. + factRetriever: entityOwnershipFactRetriever, +}),TechInsightsStoreinterface has changed its signature ofinsertFactsmethod. If you have created your own implementation of eitherTechInsightsDatabaseorFactRetrieverEngineyou need to modify the implementation/call to this method to accept/pass-in an object instead if individual arguments. The interface now accepts an additionallifecycleargument which is optional (defined below). An example modification to fact retriever engine:
-await this.repository.insertFacts(factRetriever.id, facts); +await this.repository.insertFacts({ + id: factRetriever.id, + facts, + lifecycle, +});Adds a configuration option to fact retrievers to define lifecycle for facts the retriever persists. Possible values are either 'max items' or 'time-to-live'. The former will keep only n number of items in the database for each fact per entity. The latter will remove all facts that are older than the TTL value.
Possible values:
{ maxItems: 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
- The helper function to create a fact retriever registration is now expecting an object of configuration items instead of individual arguments.
Modify your
Patch Changes
- Updated dependencies
- @backstage/backend-common@0.10.4-next.0
- @backstage/config@0.1.13-next.0
- @backstage/plugin-tech-insights-node@0.2.0-next.0
- @backstage/catalog-model@0.9.10-next.0
- @backstage/catalog-client@0.5.5-next.0
0.1.5
Patch Changes
19f0f93504: Catch errors from a fact retriever and log them.10f26e8883: Modify queries to perform better by filtering on sub-queries as wella60eb0f0dd: adding new operation to run checks for multiple entities in one request- Updated dependencies
- @backstage/config@0.1.12
- @backstage/backend-common@0.10.3
- @backstage/plugin-tech-insights-common@0.2.1
- @backstage/errors@0.2.0
- @backstage/catalog-client@0.5.4
- @backstage/catalog-model@0.9.9
0.1.4
Patch Changes
- Updated dependencies
- @backstage/backend-common@0.10.0
- @backstage/catalog-client@0.5.3
- @backstage/plugin-tech-insights-node@0.1.2
0.1.3
Patch Changes
b055a6addc: Align on usage ofcross-fetchvsnode-fetchin frontend vs backend packages, and remove some unnecessary imports of either one of themb5bd60fddc: Removed unnecessary check for specific server error in@backstage plugin-tech-insights-backend.c6c8b8e53e: Minor fixes in Readme to make the examples more directly usable.- Updated dependencies
- @backstage/plugin-tech-insights-common@0.2.0
- @backstage/backend-common@0.9.12
- @backstage/plugin-tech-insights-node@0.1.1
0.1.2
Patch Changes
2017de90da: Update README docs to use correct function/parameter names- Updated dependencies
- @backstage/errors@0.1.5
- @backstage/backend-common@0.9.11
0.1.1
Patch Changes
-
5c00e45045: Add catalog fact retrieversAdd fact retrievers which generate facts related to the completeness of entity data in the catalog.
-
Updated dependencies
- @backstage/catalog-client@0.5.2
- @backstage/catalog-model@0.9.7
- @backstage/backend-common@0.9.10