@backstage/plugin-catalog-backend 1.8.0-next.0 → 1.8.0-next.2

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,39 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
+ ## 1.8.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-common@0.18.3-next.2
9
+ - @backstage/backend-plugin-api@0.4.1-next.2
10
+ - @backstage/plugin-permission-node@0.7.6-next.2
11
+ - @backstage/plugin-catalog-node@1.3.4-next.2
12
+ - @backstage/config@1.0.7-next.0
13
+ - @backstage/integration@1.4.3-next.0
14
+
15
+ ## 1.8.0-next.1
16
+
17
+ ### Patch Changes
18
+
19
+ - 52b0022dab7: Updated dependency `msw` to `^1.0.0`.
20
+ - f093ce83d58: Fix a bug where the batch fetch by ref endpoint did not work in conjunction with filtering (e.g. if authorization was enabled).
21
+ - Updated dependencies
22
+ - @backstage/plugin-permission-node@0.7.6-next.1
23
+ - @backstage/errors@1.1.5-next.0
24
+ - @backstage/backend-common@0.18.3-next.1
25
+ - @backstage/catalog-client@1.4.0-next.1
26
+ - @backstage/integration@1.4.3-next.0
27
+ - @backstage/plugin-permission-common@0.7.4-next.0
28
+ - @backstage/backend-plugin-api@0.4.1-next.1
29
+ - @backstage/config@1.0.7-next.0
30
+ - @backstage/catalog-model@1.2.1-next.1
31
+ - @backstage/types@1.0.2
32
+ - @backstage/plugin-catalog-common@1.0.12-next.1
33
+ - @backstage/plugin-catalog-node@1.3.4-next.1
34
+ - @backstage/plugin-scaffolder-common@1.2.6-next.1
35
+ - @backstage/plugin-search-common@1.2.2-next.0
36
+
3
37
  ## 1.8.0-next.0
4
38
 
5
39
  ### Minor Changes
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Catalog Backend
2
2
 
3
3
  This is the backend for the default Backstage [software
4
- catalog](http://backstage.io/docs/features/software-catalog/software-catalog-overview).
4
+ catalog](http://backstage.io/docs/features/software-catalog/).
5
5
  This provides an API for consumers such as the frontend [catalog
6
6
  plugin](https://github.com/backstage/backstage/tree/master/plugins/catalog).
7
7
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "1.8.0-next.0",
3
+ "version": "1.8.0-next.2",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/dist/alpha.cjs.js CHANGED
@@ -2214,14 +2214,22 @@ class DefaultEntitiesCatalog {
2214
2214
  async entitiesBatch(request) {
2215
2215
  const lookup = /* @__PURE__ */ new Map();
2216
2216
  for (const chunk of lodash.chunk(request.entityRefs, 200)) {
2217
- let query = this.database("final_entities").innerJoin("refresh_state", {
2218
- "refresh_state.entity_id": "final_entities.entity_id"
2219
- }).select({
2217
+ let query = this.database("final_entities").innerJoin(
2218
+ "refresh_state",
2219
+ "refresh_state.entity_id",
2220
+ "final_entities.entity_id"
2221
+ ).select({
2220
2222
  entityRef: "refresh_state.entity_ref",
2221
2223
  entity: "final_entities.final_entity"
2222
2224
  }).whereIn("refresh_state.entity_ref", chunk);
2223
2225
  if (request == null ? void 0 : request.filter) {
2224
- query = parseFilter(request.filter, query, this.database);
2226
+ query = parseFilter(
2227
+ request.filter,
2228
+ query,
2229
+ this.database,
2230
+ false,
2231
+ "refresh_state.entity_id"
2232
+ );
2225
2233
  }
2226
2234
  for (const row of await query) {
2227
2235
  lookup.set(row.entityRef, row.entity ? JSON.parse(row.entity) : null);