@backstage/plugin-catalog-backend 1.5.1-next.0 → 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 +45 -0
- package/alpha/package.json +1 -1
- package/config.d.ts +1 -1
- package/dist/index.cjs.js +6 -3
- package/dist/index.cjs.js.map +1 -1
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
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
|
+
|
|
28
|
+
## 1.5.1-next.1
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Updated dependencies
|
|
33
|
+
- @backstage/backend-common@0.16.0-next.1
|
|
34
|
+
- @backstage/backend-plugin-api@0.1.4-next.1
|
|
35
|
+
- @backstage/plugin-catalog-node@1.2.1-next.1
|
|
36
|
+
- @backstage/plugin-permission-node@0.7.1-next.1
|
|
37
|
+
- @backstage/catalog-client@1.1.2-next.0
|
|
38
|
+
- @backstage/catalog-model@1.1.3-next.0
|
|
39
|
+
- @backstage/config@1.0.4-next.0
|
|
40
|
+
- @backstage/errors@1.1.3-next.0
|
|
41
|
+
- @backstage/integration@1.4.0-next.0
|
|
42
|
+
- @backstage/types@1.0.1-next.0
|
|
43
|
+
- @backstage/plugin-catalog-common@1.0.8-next.0
|
|
44
|
+
- @backstage/plugin-permission-common@0.7.1-next.0
|
|
45
|
+
- @backstage/plugin-scaffolder-common@1.2.2-next.0
|
|
46
|
+
- @backstage/plugin-search-common@1.1.1-next.0
|
|
47
|
+
|
|
3
48
|
## 1.5.1-next.0
|
|
4
49
|
|
|
5
50
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/config.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface Config {
|
|
|
25
25
|
* An undefined list of matchers means match all, an empty list of
|
|
26
26
|
* matchers means match none.
|
|
27
27
|
*
|
|
28
|
-
* This is commonly used to put in what amounts to
|
|
28
|
+
* This is commonly used to put in what amounts to an allowlist of kinds
|
|
29
29
|
* that regular users of Backstage are permitted to register locations
|
|
30
30
|
* for. This can be used to stop them from registering yaml files
|
|
31
31
|
* describing for example a Group entity called "admin" that they make
|
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
|
|
2159
|
-
return (
|
|
2161
|
+
var _a2;
|
|
2162
|
+
return (_a2 = this.onProcessingError) == null ? void 0 : _a2.call(this, {
|
|
2160
2163
|
unprocessedEntity,
|
|
2161
2164
|
errors: result.errors
|
|
2162
2165
|
});
|