@backstage/plugin-catalog-backend 0.0.0-nightly-20220419024359 → 0.0.0-nightly-20220422024928

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,6 +1,16 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
- ## 0.0.0-nightly-20220419024359
3
+ ## 0.0.0-nightly-20220422024928
4
+
5
+ ### Patch Changes
6
+
7
+ - 55e09b29dd: Fixing broken types for `knex` when checking returned rows
8
+ - 8cc75993a6: Fixed issue in `PermissionEvaluator` instance check that would cause unexpected "invalid union" errors.
9
+ - Updated dependencies
10
+ - @backstage/backend-common@0.0.0-nightly-20220422024928
11
+ - @backstage/integration@0.0.0-nightly-20220422024928
12
+
13
+ ## 1.1.0
4
14
 
5
15
  ### Minor Changes
6
16
 
@@ -53,15 +63,15 @@
53
63
 
54
64
  - ffec894ed0: add gitlab to AnnotateScmSlugEntityProcessor
55
65
  - Updated dependencies
56
- - @backstage/integration@0.0.0-nightly-20220419024359
57
- - @backstage/plugin-permission-common@0.0.0-nightly-20220419024359
58
- - @backstage/plugin-permission-node@0.0.0-nightly-20220419024359
59
- - @backstage/catalog-model@0.0.0-nightly-20220419024359
60
- - @backstage/plugin-search-common@0.0.0-nightly-20220419024359
61
- - @backstage/backend-common@0.0.0-nightly-20220419024359
62
- - @backstage/plugin-catalog-common@0.0.0-nightly-20220419024359
63
- - @backstage/catalog-client@0.0.0-nightly-20220419024359
64
- - @backstage/plugin-scaffolder-common@0.0.0-nightly-20220419024359
66
+ - @backstage/integration@1.1.0
67
+ - @backstage/plugin-permission-common@0.6.0
68
+ - @backstage/plugin-permission-node@0.6.0
69
+ - @backstage/catalog-model@1.0.1
70
+ - @backstage/plugin-search-common@0.3.3
71
+ - @backstage/backend-common@0.13.2
72
+ - @backstage/plugin-catalog-common@1.0.1
73
+ - @backstage/catalog-client@1.0.1
74
+ - @backstage/plugin-scaffolder-common@1.0.1
65
75
 
66
76
  ## 1.1.0-next.3
67
77
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "0.0.0-nightly-20220419024359",
3
+ "version": "0.0.0-nightly-20220422024928",
4
4
  "main": "../dist/index.cjs.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
package/dist/index.cjs.js CHANGED
@@ -2703,11 +2703,11 @@ class Stitcher {
2703
2703
  entity.metadata.etag = hash;
2704
2704
  }
2705
2705
  const searchEntries = buildEntitySearch(entityId, entity);
2706
- const rowsChanged = await this.database("final_entities").update({
2706
+ const amountOfRowsChanged = await this.database("final_entities").update({
2707
2707
  final_entity: JSON.stringify(entity),
2708
2708
  hash
2709
2709
  }).where("entity_id", entityId).where("stitch_ticket", ticket).onConflict("entity_id").merge(["final_entity", "hash"]);
2710
- if (rowsChanged.length === 0) {
2710
+ if (amountOfRowsChanged === 0) {
2711
2711
  this.logger.debug(`Entity ${entityRef} is already processed, skipping write.`);
2712
2712
  return;
2713
2713
  }
@@ -3475,7 +3475,7 @@ class CatalogBuilder {
3475
3475
  });
3476
3476
  const unauthorizedEntitiesCatalog = new DefaultEntitiesCatalog(dbClient);
3477
3477
  let permissionEvaluator;
3478
- if ("query" in permissions) {
3478
+ if ("authorizeConditional" in permissions) {
3479
3479
  permissionEvaluator = permissions;
3480
3480
  } else {
3481
3481
  logger.warn("PermissionAuthorizer is deprecated. Please use an instance of PermissionEvaluator instead of PermissionAuthorizer in PluginEnvironment#permissions");