@backstage/plugin-catalog-backend 1.18.0-next.1 → 1.18.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 +61 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.cjs.js +1 -1
- package/dist/cjs/{CatalogBuilder-3c393ace.cjs.js → CatalogBuilder-0288ac0b.cjs.js} +25 -18
- package/dist/cjs/CatalogBuilder-0288ac0b.cjs.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/package.json +44 -45
- package/dist/cjs/CatalogBuilder-3c393ace.cjs.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend
|
|
2
2
|
|
|
3
|
+
## 1.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- df12231: Allow setting EntityDataParser using CatalogModelExtensionPoint
|
|
8
|
+
- 15ba00f: Migrated to support new auth services. The `CatalogBuilder.create` method now accepts a `discovery` option, which is recommended to forward from the plugin environment, as it will otherwise fall back to use the `HostDiscovery` implementation.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 2bd1410: Removed unused dependencies
|
|
13
|
+
- 999224f: Bump dependency `minimatch` to v9
|
|
14
|
+
- 6f830bb: Allow passing optional filter to `getEntitiesByRefs`
|
|
15
|
+
- 0fb419b: Updated dependency `uuid` to `^9.0.0`.
|
|
16
|
+
Updated dependency `@types/uuid` to `^9.0.0`.
|
|
17
|
+
- b65788b: Move @backstage/repo-tools to dev dependencies
|
|
18
|
+
- 280edeb: Add index for original value in search table for faster entity facet response
|
|
19
|
+
- dad018f: Do not fail on stitching when the entity contains `null` values associated to deeply nested or long keys.
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- @backstage/plugin-events-node@0.3.0
|
|
22
|
+
- @backstage/backend-common@0.21.4
|
|
23
|
+
- @backstage/integration@1.9.1
|
|
24
|
+
- @backstage/config@1.2.0
|
|
25
|
+
- @backstage/errors@1.2.4
|
|
26
|
+
- @backstage/backend-plugin-api@0.6.14
|
|
27
|
+
- @backstage/plugin-permission-common@0.7.13
|
|
28
|
+
- @backstage/plugin-search-backend-module-catalog@0.1.18
|
|
29
|
+
- @backstage/plugin-catalog-node@1.8.0
|
|
30
|
+
- @backstage/catalog-client@1.6.1
|
|
31
|
+
- @backstage/backend-openapi-utils@0.1.7
|
|
32
|
+
- @backstage/backend-tasks@0.5.19
|
|
33
|
+
- @backstage/plugin-permission-node@0.7.25
|
|
34
|
+
- @backstage/catalog-model@1.4.5
|
|
35
|
+
- @backstage/types@1.1.1
|
|
36
|
+
- @backstage/plugin-catalog-common@1.0.22
|
|
37
|
+
|
|
38
|
+
## 1.18.0-next.2
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- 2bd1410: Removed unused dependencies
|
|
43
|
+
- 6f830bb: Allow passing optional filter to `getEntitiesByRefs`
|
|
44
|
+
- b65788b: Move @backstage/repo-tools to dev dependencies
|
|
45
|
+
- dad018f: Do not fail on stitching when the entity contains `null` values associated to deeply nested or long keys.
|
|
46
|
+
- Updated dependencies
|
|
47
|
+
- @backstage/integration@1.9.1-next.2
|
|
48
|
+
- @backstage/catalog-client@1.6.1-next.1
|
|
49
|
+
- @backstage/backend-common@0.21.4-next.2
|
|
50
|
+
- @backstage/plugin-catalog-node@1.8.0-next.2
|
|
51
|
+
- @backstage/plugin-search-backend-module-catalog@0.1.18-next.2
|
|
52
|
+
- @backstage/backend-openapi-utils@0.1.7-next.2
|
|
53
|
+
- @backstage/backend-plugin-api@0.6.14-next.2
|
|
54
|
+
- @backstage/backend-tasks@0.5.19-next.2
|
|
55
|
+
- @backstage/catalog-model@1.4.5-next.0
|
|
56
|
+
- @backstage/config@1.2.0-next.1
|
|
57
|
+
- @backstage/errors@1.2.4-next.0
|
|
58
|
+
- @backstage/types@1.1.1
|
|
59
|
+
- @backstage/plugin-catalog-common@1.0.22-next.1
|
|
60
|
+
- @backstage/plugin-events-node@0.3.0-next.2
|
|
61
|
+
- @backstage/plugin-permission-common@0.7.13-next.1
|
|
62
|
+
- @backstage/plugin-permission-node@0.7.25-next.2
|
|
63
|
+
|
|
3
64
|
## 1.18.0-next.1
|
|
4
65
|
|
|
5
66
|
### Patch Changes
|
package/alpha/package.json
CHANGED
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-
|
|
7
|
+
var CatalogBuilder = require('./cjs/CatalogBuilder-0288ac0b.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 backendCommon = require('@backstage/backend-common');
|
|
@@ -3353,6 +3353,9 @@ function mapToRows(input, entityId) {
|
|
|
3353
3353
|
const result = [];
|
|
3354
3354
|
for (const { key: rawKey, value: rawValue } of input) {
|
|
3355
3355
|
const key = rawKey.toLocaleLowerCase("en-US");
|
|
3356
|
+
if (key.length > MAX_KEY_LENGTH) {
|
|
3357
|
+
continue;
|
|
3358
|
+
}
|
|
3356
3359
|
if (rawValue === void 0 || rawValue === null) {
|
|
3357
3360
|
result.push({
|
|
3358
3361
|
entity_id: entityId,
|
|
@@ -3362,22 +3365,20 @@ function mapToRows(input, entityId) {
|
|
|
3362
3365
|
});
|
|
3363
3366
|
} else {
|
|
3364
3367
|
const value = String(rawValue).toLocaleLowerCase("en-US");
|
|
3365
|
-
if (
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
});
|
|
3380
|
-
}
|
|
3368
|
+
if (value.length <= MAX_VALUE_LENGTH) {
|
|
3369
|
+
result.push({
|
|
3370
|
+
entity_id: entityId,
|
|
3371
|
+
key,
|
|
3372
|
+
original_value: String(rawValue),
|
|
3373
|
+
value
|
|
3374
|
+
});
|
|
3375
|
+
} else {
|
|
3376
|
+
result.push({
|
|
3377
|
+
entity_id: entityId,
|
|
3378
|
+
key,
|
|
3379
|
+
original_value: null,
|
|
3380
|
+
value: null
|
|
3381
|
+
});
|
|
3381
3382
|
}
|
|
3382
3383
|
}
|
|
3383
3384
|
}
|
|
@@ -4990,7 +4991,12 @@ const spec = {
|
|
|
4990
4991
|
}
|
|
4991
4992
|
}
|
|
4992
4993
|
}
|
|
4993
|
-
}
|
|
4994
|
+
},
|
|
4995
|
+
parameters: [
|
|
4996
|
+
{
|
|
4997
|
+
$ref: "#/components/parameters/filter"
|
|
4998
|
+
}
|
|
4999
|
+
]
|
|
4994
5000
|
}
|
|
4995
5001
|
},
|
|
4996
5002
|
"/entities/by-query": {
|
|
@@ -5619,6 +5625,7 @@ async function createRouter(options) {
|
|
|
5619
5625
|
const request = entitiesBatchRequest(req);
|
|
5620
5626
|
const response = await entitiesCatalog.entitiesBatch({
|
|
5621
5627
|
entityRefs: request.entityRefs,
|
|
5628
|
+
filter: parseEntityFilterParams(req.query),
|
|
5622
5629
|
fields: parseEntityTransformParams(req.query, request.fields),
|
|
5623
5630
|
credentials: await httpAuth.credentials(req)
|
|
5624
5631
|
});
|
|
@@ -7353,4 +7360,4 @@ exports.createCatalogPermissionRule = createCatalogPermissionRule;
|
|
|
7353
7360
|
exports.createRandomProcessingInterval = createRandomProcessingInterval;
|
|
7354
7361
|
exports.parseEntityYaml = parseEntityYaml;
|
|
7355
7362
|
exports.permissionRules = permissionRules;
|
|
7356
|
-
//# sourceMappingURL=CatalogBuilder-
|
|
7363
|
+
//# sourceMappingURL=CatalogBuilder-0288ac0b.cjs.js.map
|