@backstage/plugin-catalog-backend-module-incremental-ingestion 0.7.12 → 0.7.13-next.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @backstage/plugin-catalog-backend-module-incremental-ingestion
2
2
 
3
+ ## 0.7.13-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - e846874: Alter column type for `ingestions.last_error` to remove the 255-character restriction.
8
+ - Updated dependencies
9
+ - @backstage/plugin-catalog-backend@3.8.0-next.0
10
+ - @backstage/backend-defaults@0.17.2-next.0
11
+ - @backstage/plugin-catalog-node@2.2.2-next.0
12
+ - @backstage/backend-plugin-api@1.9.2-next.0
13
+ - @backstage/plugin-events-node@0.4.23-next.0
14
+
3
15
  ## 0.7.12
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Copyright 2026 The Backstage Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ // @ts-check
18
+
19
+ /**
20
+ * @param { import("knex").Knex } knex
21
+ * @returns { Promise<void> }
22
+ */
23
+ exports.up = async function up(knex) {
24
+ await knex.schema.alterTable('ingestions', table => {
25
+ table.text('last_error', 'longtext').nullable().alter();
26
+ });
27
+ };
28
+
29
+ /**
30
+ * @param { import("knex").Knex } knex
31
+ * @returns { Promise<void> }
32
+ */
33
+ exports.down = async function down(knex) {
34
+ const oversizedCountResult = await knex('ingestions')
35
+ .where(knex.raw('LENGTH(last_error) > 255'))
36
+ .count({ count: '*' })
37
+ .first();
38
+ const oversizedCount = Number(oversizedCountResult?.count ?? 0);
39
+
40
+ if (oversizedCount > 0) {
41
+ throw new Error(
42
+ `Migration aborted: Found ${oversizedCount} ingestion entries with 'last_error' exceeding 255 characters. Manual intervention required.`,
43
+ );
44
+ }
45
+
46
+ await knex.schema.alterTable('ingestions', table => {
47
+ table.string('last_error').nullable().alter();
48
+ });
49
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-incremental-ingestion",
3
- "version": "0.7.12",
3
+ "version": "0.7.13-next.0",
4
4
  "description": "An entity provider for streaming large asset sources into the catalog",
5
5
  "backstage": {
6
6
  "role": "backend-plugin-module",
@@ -55,23 +55,23 @@
55
55
  "test": "backstage-cli package test"
56
56
  },
57
57
  "dependencies": {
58
- "@backstage/backend-defaults": "^0.17.1",
59
- "@backstage/backend-plugin-api": "^1.9.1",
60
- "@backstage/catalog-model": "^1.9.0",
61
- "@backstage/config": "^1.3.8",
62
- "@backstage/errors": "^1.3.1",
63
- "@backstage/plugin-catalog-backend": "^3.7.0",
64
- "@backstage/plugin-catalog-node": "^2.2.1",
65
- "@backstage/plugin-events-node": "^0.4.22",
66
- "@backstage/types": "^1.2.2",
58
+ "@backstage/backend-defaults": "0.17.2-next.0",
59
+ "@backstage/backend-plugin-api": "1.9.2-next.0",
60
+ "@backstage/catalog-model": "1.9.0",
61
+ "@backstage/config": "1.3.8",
62
+ "@backstage/errors": "1.3.1",
63
+ "@backstage/plugin-catalog-backend": "3.8.0-next.0",
64
+ "@backstage/plugin-catalog-node": "2.2.2-next.0",
65
+ "@backstage/plugin-events-node": "0.4.23-next.0",
66
+ "@backstage/types": "1.2.2",
67
67
  "express": "^4.22.0",
68
68
  "express-promise-router": "^4.1.0",
69
69
  "knex": "^3.0.0",
70
70
  "luxon": "^3.0.0"
71
71
  },
72
72
  "devDependencies": {
73
- "@backstage/backend-test-utils": "^1.11.3",
74
- "@backstage/cli": "^0.36.2",
73
+ "@backstage/backend-test-utils": "1.11.4-next.0",
74
+ "@backstage/cli": "0.36.3-next.0",
75
75
  "@types/express": "^4.17.6"
76
76
  }
77
77
  }