@backstage/plugin-catalog-backend 1.5.1-next.1 → 1.5.1

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,30 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
+ ## 1.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - c1a4addda3: Improve processing error logging.
8
+
9
+ Adds `location` and `owner` to the logging meta if they are available.
10
+
11
+ - a7607b5413: Replace usage of deprecataed `UrlReader.read` with `UrlReader.readUrl`.
12
+ - Updated dependencies
13
+ - @backstage/backend-common@0.16.0
14
+ - @backstage/integration@1.4.0
15
+ - @backstage/catalog-model@1.1.3
16
+ - @backstage/plugin-permission-common@0.7.1
17
+ - @backstage/types@1.0.1
18
+ - @backstage/backend-plugin-api@0.1.4
19
+ - @backstage/plugin-catalog-node@1.2.1
20
+ - @backstage/plugin-permission-node@0.7.1
21
+ - @backstage/catalog-client@1.1.2
22
+ - @backstage/config@1.0.4
23
+ - @backstage/errors@1.1.3
24
+ - @backstage/plugin-catalog-common@1.0.8
25
+ - @backstage/plugin-scaffolder-common@1.2.2
26
+ - @backstage/plugin-search-common@1.1.1
27
+
3
28
  ## 1.5.1-next.1
4
29
 
5
30
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "1.5.1-next.1",
3
+ "version": "1.5.1",
4
4
  "main": "../dist/index.cjs.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
package/dist/index.cjs.js CHANGED
@@ -2093,6 +2093,7 @@ class DefaultCatalogProcessingEngine {
2093
2093
  }
2094
2094
  },
2095
2095
  processTask: async (item) => {
2096
+ var _a, _b;
2096
2097
  const track = this.tracker.processStart(item, this.logger);
2097
2098
  try {
2098
2099
  const {
@@ -2130,9 +2131,11 @@ class DefaultCatalogProcessingEngine {
2130
2131
  });
2131
2132
  });
2132
2133
  }
2134
+ const location = (_b = (_a = unprocessedEntity == null ? void 0 : unprocessedEntity.metadata) == null ? void 0 : _a.annotations) == null ? void 0 : _b[catalogModel.ANNOTATION_LOCATION];
2133
2135
  for (const error of result.errors) {
2134
2136
  this.logger.warn(error.message, {
2135
- entity: entityRef
2137
+ entity: entityRef,
2138
+ location
2136
2139
  });
2137
2140
  }
2138
2141
  const errorsString = JSON.stringify(
@@ -2155,8 +2158,8 @@ class DefaultCatalogProcessingEngine {
2155
2158
  if (!result.ok) {
2156
2159
  Promise.resolve(void 0).then(
2157
2160
  () => {
2158
- var _a;
2159
- return (_a = this.onProcessingError) == null ? void 0 : _a.call(this, {
2161
+ var _a2;
2162
+ return (_a2 = this.onProcessingError) == null ? void 0 : _a2.call(this, {
2160
2163
  unprocessedEntity,
2161
2164
  errors: result.errors
2162
2165
  });