@backstage/plugin-catalog-backend 1.25.3-next.1 → 1.26.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,31 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
+ ## 1.26.0-next.2
4
+
5
+ ### Minor Changes
6
+
7
+ - 78475c3: Allow offset mode paging in entity list provider
8
+
9
+ ### Patch Changes
10
+
11
+ - c2b63ab: Updated dependency `supertest` to `^7.0.0`.
12
+ - Updated dependencies
13
+ - @backstage/backend-common@0.25.0-next.2
14
+ - @backstage/backend-plugin-api@1.0.0-next.2
15
+ - @backstage/catalog-client@1.7.0-next.1
16
+ - @backstage/integration@1.15.0-next.0
17
+ - @backstage/backend-openapi-utils@0.1.18-next.2
18
+ - @backstage/plugin-permission-node@0.8.3-next.2
19
+ - @backstage/catalog-model@1.6.0
20
+ - @backstage/config@1.2.0
21
+ - @backstage/errors@1.2.4
22
+ - @backstage/types@1.1.1
23
+ - @backstage/plugin-catalog-common@1.0.26
24
+ - @backstage/plugin-catalog-node@1.12.7-next.2
25
+ - @backstage/plugin-events-node@0.4.0-next.2
26
+ - @backstage/plugin-permission-common@0.8.1
27
+ - @backstage/plugin-search-backend-module-catalog@0.2.2-next.2
28
+
3
29
  ## 1.25.3-next.1
4
30
 
5
31
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend__alpha",
3
- "version": "1.25.3-next.1",
3
+ "version": "1.26.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
@@ -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-BQ7aDMTH.cjs.js');
7
+ var CatalogBuilder = require('./cjs/CatalogBuilder-DeLH-BIi.cjs.js');
8
8
  var backendPluginApi = require('@backstage/backend-plugin-api');
9
9
  var pluginEventsNode = require('@backstage/plugin-events-node');
10
10
  var alpha$1 = require('@backstage/plugin-catalog-node/alpha');
@@ -2579,6 +2579,9 @@ class DefaultEntitiesCatalog {
2579
2579
  }
2580
2580
  ]);
2581
2581
  }
2582
+ if (isQueryEntitiesInitialRequest(request) && request.offset !== void 0) {
2583
+ dbQuery.offset(request.offset);
2584
+ }
2582
2585
  dbQuery.limit(isFetchingBackwards ? limit : limit + 1);
2583
2586
  countQuery.count("final_entities.entity_id", { as: "count" });
2584
2587
  const [rows, [{ count }]] = await Promise.all([
@@ -4986,6 +4989,9 @@ const spec = {
4986
4989
  {
4987
4990
  $ref: "#/components/parameters/limit"
4988
4991
  },
4992
+ {
4993
+ $ref: "#/components/parameters/offset"
4994
+ },
4989
4995
  {
4990
4996
  $ref: "#/components/parameters/orderField"
4991
4997
  },
@@ -5516,6 +5522,7 @@ async function createRouter(options) {
5516
5522
  }).get("/entities/by-query", async (req, res) => {
5517
5523
  const { items, pageInfo, totalItems } = await entitiesCatalog.queryEntities({
5518
5524
  limit: req.query.limit,
5525
+ offset: req.query.offset,
5519
5526
  ...parseQueryEntitiesParams(req.query),
5520
5527
  credentials: await httpAuth.credentials(req)
5521
5528
  });
@@ -7296,4 +7303,4 @@ exports.createCatalogPermissionRule = createCatalogPermissionRule;
7296
7303
  exports.createRandomProcessingInterval = createRandomProcessingInterval;
7297
7304
  exports.parseEntityYaml = parseEntityYaml;
7298
7305
  exports.permissionRules = permissionRules;
7299
- //# sourceMappingURL=CatalogBuilder-BQ7aDMTH.cjs.js.map
7306
+ //# sourceMappingURL=CatalogBuilder-DeLH-BIi.cjs.js.map