@backstage/plugin-catalog-backend 1.22.0-next.2 → 1.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
+ ## 1.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f2a2a83: Deprecated the `LocationAnalyzer` type, which has been moved to `@backstage/plugin-catalog-node`.
8
+ - f2a2a83: The `/alpha` plugin export has had its implementation of the `catalogAnalysisExtensionPoint` updated to reflect the new API.
9
+ - 8d14475: Emit well known relationships for the Domain entity kind.
10
+
11
+ ### Patch Changes
12
+
13
+ - 131e5cb: Fix broken links in README.
14
+ - c6cb568: Add lifecycle monitoring for the catalog processing
15
+ - d229dc4: Move path utilities from `backend-common` to the `backend-plugin-api` package.
16
+ - 8479a0b: Fixed bug in stitching queue gauge that included entities that are scheduled in the future.
17
+ - Updated dependencies
18
+ - @backstage/plugin-catalog-node@1.12.0
19
+ - @backstage/plugin-search-backend-module-catalog@0.1.24
20
+ - @backstage/catalog-model@1.5.0
21
+ - @backstage/backend-common@0.22.0
22
+ - @backstage/backend-plugin-api@0.6.18
23
+ - @backstage/backend-tasks@0.5.23
24
+ - @backstage/plugin-events-node@0.3.4
25
+ - @backstage/integration@1.11.0
26
+ - @backstage/backend-openapi-utils@0.1.11
27
+ - @backstage/catalog-client@1.6.5
28
+ - @backstage/plugin-catalog-common@1.0.23
29
+ - @backstage/plugin-permission-node@0.7.29
30
+
3
31
  ## 1.22.0-next.2
4
32
 
5
33
  ### Minor Changes
@@ -3574,8 +3602,7 @@
3574
3602
  `packages/backend/src/plugins/catalog.ts` creates the catalog builder using
3575
3603
  `CatalogBuilder.create`. If you instead call `new CatalogBuilder`, you are on
3576
3604
  the old implementation and will experience breakage if you upgrade to this
3577
- version. If you are still on the old version, see [the relevant change log
3578
- entry](https://github.com/backstage/backstage/blob/master/plugins/catalog-backend/CHANGELOG.md#patch-changes-27)
3605
+ version. If you are still on the old version, see [the relevant change log entry](https://github.com/backstage/backstage/blob/master/plugins/catalog-backend/CHANGELOG.md#patch-changes-27)
3579
3606
  for migration instructions.
3580
3607
 
3581
3608
  The minimal `packages/backend/src/plugins/catalog.ts` file is now:
@@ -3668,8 +3695,7 @@
3668
3695
  `packages/backend/src/plugins/catalog.ts` creates the catalog builder using
3669
3696
  `CatalogBuilder.create`. If you instead call `new CatalogBuilder`, you are on
3670
3697
  the old implementation and will experience breakage if you upgrade to this
3671
- version. If you are still on the old version, see [the relevant change log
3672
- entry](https://github.com/backstage/backstage/blob/master/plugins/catalog-backend/CHANGELOG.md#patch-changes-27)
3698
+ version. If you are still on the old version, see [the relevant change log entry](https://github.com/backstage/backstage/blob/master/plugins/catalog-backend/CHANGELOG.md#patch-changes-27)
3673
3699
  for migration instructions.
3674
3700
 
3675
3701
  The minimal `packages/backend/src/plugins/catalog.ts` file is now:
package/README.md CHANGED
@@ -1,9 +1,7 @@
1
1
  # Catalog Backend
2
2
 
3
- This is the backend for the default Backstage [software
4
- catalog](http://backstage.io/docs/features/software-catalog/).
5
- This provides an API for consumers such as the frontend [catalog
6
- plugin](https://github.com/backstage/backstage/tree/master/plugins/catalog).
3
+ This is the backend for the default Backstage [software catalog](http://backstage.io/docs/features/software-catalog/).
4
+ This provides an API for consumers such as the frontend [catalog plugin](https://github.com/backstage/backstage/tree/master/plugins/catalog).
7
5
 
8
6
  It comes with a builtin database-backed implementation of the catalog that can
9
7
  store and serve your catalog for you.
@@ -30,12 +28,19 @@ restoring the plugin, if you previously removed it.
30
28
  yarn --cwd packages/backend add @backstage/plugin-catalog-backend
31
29
  ```
32
30
 
33
- ### Adding the plugin to your `packages/backend`
31
+ Then add the plugin to your backend, typically in `packages/backend/src/index.ts`:
34
32
 
35
- You'll need to add the plugin to the router in your `backend` package. You can
36
- do this by creating a file called `packages/backend/src/plugins/catalog.ts` with
37
- contents matching [catalog.ts in the create-app
38
- template](https://github.com/backstage/backstage/blob/master/packages/create-app/templates/default-app/packages/backend/src/plugins/catalog.ts).
33
+ ```ts
34
+ const backend = createBackend();
35
+ // ...
36
+ backend.add(import('@backstage/plugin-catalog-backend/alpha'));
37
+ ```
38
+
39
+ #### Old backend system
40
+
41
+ In the old backend system there's a bit more wiring required. You'll need to
42
+ create a file called `packages/backend/src/plugins/catalog.ts` with contents
43
+ matching [catalog.ts in the create-app template](https://github.com/backstage/backstage/blob/ad9314d3a7e0405719ba93badf96e97adde8ef83/packages/create-app/templates/default-app/packages/backend/src/plugins/catalog.ts).
39
44
 
40
45
  With the `catalog.ts` router setup in place, add the router to
41
46
  `packages/backend/src/index.ts`:
@@ -60,10 +65,8 @@ async function main() {
60
65
  ### Adding catalog entities
61
66
 
62
67
  At this point the `catalog-backend` is installed in your backend package, but
63
- you will not have any catalog entities loaded. See [Catalog
64
- Configuration](https://backstage.io/docs/features/software-catalog/configuration)
65
- for how to add locations, or copy the catalog locations from the [create-app
66
- template](https://github.com/backstage/backstage/blob/master/packages/create-app/templates/default-app/app-config.yaml.hbs)
68
+ you will not have any catalog entities loaded. See [Catalog Configuration](https://backstage.io/docs/features/software-catalog/configuration)
69
+ for how to add locations, or copy the catalog locations from the [create-app template](https://github.com/backstage/backstage/blob/master/packages/create-app/templates/default-app/app-config.yaml.hbs)
67
70
  to get up and running quickly.
68
71
 
69
72
  ## Development
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "1.22.0-next.2",
3
+ "version": "1.22.0",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/dist/alpha.cjs.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var alpha = require('@backstage/plugin-catalog-common/alpha');
6
6
  var pluginPermissionNode = require('@backstage/plugin-permission-node');
7
- var CatalogBuilder = require('./cjs/CatalogBuilder-2s1MuhaE.cjs.js');
7
+ var CatalogBuilder = require('./cjs/CatalogBuilder-g0TDave-.cjs.js');
8
8
  var backendPluginApi = require('@backstage/backend-plugin-api');
9
9
  var alpha$1 = require('@backstage/plugin-catalog-node/alpha');
10
10
  var lodash = require('lodash');
@@ -21,6 +21,7 @@ var luxon = require('luxon');
21
21
  var promClient = require('prom-client');
22
22
  var api = require('@opentelemetry/api');
23
23
  var stableStringify = require('fast-json-stable-stringify');
24
+ var backendPluginApi = require('@backstage/backend-plugin-api');
24
25
  var uniq = require('lodash/uniq');
25
26
  var splitToChunks = require('lodash/chunk');
26
27
  var zod = require('zod');
@@ -1504,7 +1505,7 @@ class DefaultProcessingDatabase {
1504
1505
  }
1505
1506
 
1506
1507
  async function applyDatabaseMigrations(knex) {
1507
- const migrationsDir = backendCommon.resolvePackagePath(
1508
+ const migrationsDir = backendPluginApi.resolvePackagePath(
1508
1509
  "@backstage/plugin-catalog-backend",
1509
1510
  "migrations"
1510
1511
  );
@@ -7398,4 +7399,4 @@ exports.createCatalogPermissionRule = createCatalogPermissionRule;
7398
7399
  exports.createRandomProcessingInterval = createRandomProcessingInterval;
7399
7400
  exports.parseEntityYaml = parseEntityYaml;
7400
7401
  exports.permissionRules = permissionRules;
7401
- //# sourceMappingURL=CatalogBuilder-2s1MuhaE.cjs.js.map
7402
+ //# sourceMappingURL=CatalogBuilder-g0TDave-.cjs.js.map