@backstage/plugin-catalog-backend 2.0.0-next.3 → 2.0.1-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,109 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
+ ## 2.0.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 4654a78: Update `refresh_state_references.id` to be a big int
8
+ - Updated dependencies
9
+ - @backstage/backend-plugin-api@1.4.0-next.0
10
+ - @backstage/plugin-catalog-node@1.17.1-next.0
11
+ - @backstage/plugin-events-node@0.4.12-next.0
12
+ - @backstage/plugin-permission-node@0.10.1-next.0
13
+ - @backstage/backend-openapi-utils@0.5.4-next.0
14
+
15
+ ## 2.0.0
16
+
17
+ ### Major Changes
18
+
19
+ - 90ab044: **BREAKING**: Removed all deprecated exports, and removed support for the old backend system.
20
+
21
+ It also removes the `CodeOwnersProcessor` from the default set of processors, because it is expensive to run and has vague semantics. You need to update your backend to add it to the `catalogProcessingExtensionPoint` if you wish to continue using it.
22
+
23
+ The following removed exports are available from `@backstage/plugin-catalog-node`:
24
+
25
+ - `locationSpecToMetadataName`
26
+ - `locationSpecToLocationEntity`
27
+ - `processingResult`
28
+ - `EntitiesSearchFilter`
29
+ - `EntityFilter`
30
+ - `DeferredEntity`
31
+ - `EntityRelationSpec`
32
+ - `CatalogProcessor`
33
+ - `CatalogProcessorParser`
34
+ - `CatalogProcessorCache`
35
+ - `CatalogProcessorEmit`
36
+ - `CatalogProcessorLocationResult`
37
+ - `CatalogProcessorEntityResult`
38
+ - `CatalogProcessorRelationResult`
39
+ - `CatalogProcessorErrorResult`
40
+ - `CatalogProcessorRefreshKeysResult`
41
+ - `CatalogProcessorResult`
42
+ - `EntityProvider`
43
+ - `EntityProviderConnection`
44
+ - `EntityProviderMutation`
45
+ - `AnalyzeOptions`
46
+ - `LocationAnalyzer`
47
+ - `ScmLocationAnalyzer`
48
+ - `PlaceholderResolver`
49
+ - `PlaceholderResolverParams`
50
+ - `PlaceholderResolverRead`
51
+ - `PlaceholderResolverResolveUrl`
52
+ - `parseEntityYaml`
53
+
54
+ The following removed exports are available from `@backstage/plugin-catalog-common`:
55
+
56
+ - `LocationSpec`
57
+ - `AnalyzeLocationRequest`
58
+ - `AnalyzeLocationResponse`
59
+ - `AnalyzeLocationExistingEntity`
60
+ - `AnalyzeLocationGenerateEntity`
61
+ - `AnalyzeLocationEntityField`
62
+
63
+ The following removed exports are instead implemented in the new backend system by `@backstage/plugin-search-backend-module-catalog`:
64
+
65
+ - `defaultCatalogCollatorEntityTransformer`
66
+ - `CatalogCollatorEntityTransformer`
67
+ - `DefaultCatalogCollator`
68
+
69
+ The following exports are removed without a direct replacement:
70
+
71
+ - `DefaultCatalogCollatorFactory`
72
+ - `DefaultCatalogCollatorFactoryOptions`
73
+ - `LocationEntityProcessor`
74
+ - `LocationEntityProcessorOptions`
75
+ - `CatalogBuilder`
76
+ - `CatalogEnvironment`
77
+ - `CatalogPermissionRuleInput`
78
+ - `CatalogProcessingEngine`
79
+ - `createRandomProcessingInterval`
80
+ - `ProcessingIntervalFunction`
81
+
82
+ ### Minor Changes
83
+
84
+ - 6c9b88e: **BREAKING ALPHA**: You can no longer import the catalog plugin from the `/alpha` export; please use the regular root default export instead.
85
+ - d88b922: Adds the ability to disable the default entity processors using a new boolean app config item `catalog.disableDefaultProcessors`.
86
+
87
+ ### Patch Changes
88
+
89
+ - 0e710fc: This patch addresses an issue identified in Backstage when configured with a MySQL database. If an entity of type location
90
+ (e..all.yaml) has more than 70 referenced entities, clicking "Refresh" does not update the referenced entities as expected. This occurs because the TEXT type in MySQL has a limit of 65,535 bytes, which is insufficient to store all the referenced entities, causing the refresh operation to fail.
91
+ - 8e0f15f: "Added a note clarifying that `entity-fetch` audit events are not visible by default in the logs and are only displayed when the log severity level is adjusted."
92
+ - Updated dependencies
93
+ - @backstage/integration@1.17.0
94
+ - @backstage/catalog-model@1.7.4
95
+ - @backstage/plugin-catalog-node@1.17.0
96
+ - @backstage/backend-plugin-api@1.3.1
97
+ - @backstage/plugin-permission-common@0.9.0
98
+ - @backstage/plugin-permission-node@0.10.0
99
+ - @backstage/catalog-client@1.10.0
100
+ - @backstage/backend-openapi-utils@0.5.3
101
+ - @backstage/config@1.3.2
102
+ - @backstage/errors@1.2.7
103
+ - @backstage/types@1.2.1
104
+ - @backstage/plugin-catalog-common@1.1.4
105
+ - @backstage/plugin-events-node@0.4.11
106
+
3
107
  ## 2.0.0-next.3
4
108
 
5
109
  ### Patch Changes
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Copyright 2024 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
+ /**
18
+ * @param {import('knex').Knex} knex
19
+ * @returns {Promise<void>}
20
+ */
21
+ exports.up = async function up(knex) {
22
+ if (knex.client.config.client.includes('pg')) {
23
+ await knex.schema.raw(
24
+ `ALTER TABLE refresh_state_references ALTER COLUMN id TYPE bigint;`,
25
+ );
26
+ await knex.schema.raw(
27
+ `ALTER SEQUENCE refresh_state_references_id_seq AS bigint MAXVALUE 9223372036854775807;`,
28
+ );
29
+ } else if (knex.client.config.client.includes('mysql')) {
30
+ await knex.schema.raw(
31
+ `ALTER TABLE refresh_state_references MODIFY id bigint AUTO_INCREMENT;`,
32
+ );
33
+ }
34
+ };
35
+
36
+ /**
37
+ * @param {import('knex').Knex} knex
38
+ * @returns {Promise<void>}
39
+ */
40
+ exports.down = async function down(knex) {
41
+ if (knex.client.config.client.includes('pg')) {
42
+ await knex.schema.raw(
43
+ `ALTER SEQUENCE refresh_state_references_id_seq AS integer MAXVALUE 2147483647;`,
44
+ );
45
+ await knex.schema.raw(
46
+ `ALTER TABLE refresh_state_references ALTER COLUMN id TYPE integer;`,
47
+ );
48
+ } else if (knex.client.config.client.includes('mysql')) {
49
+ await knex.schema.raw(
50
+ `ALTER TABLE refresh_state_references MODIFY id integer AUTO_INCREMENT;`,
51
+ );
52
+ }
53
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "2.0.0-next.3",
3
+ "version": "2.0.1-next.0",
4
4
  "description": "The Backstage backend plugin that provides the Backstage catalog",
5
5
  "backstage": {
6
6
  "role": "backend-plugin",
@@ -73,18 +73,18 @@
73
73
  "test": "backstage-cli package test"
74
74
  },
75
75
  "dependencies": {
76
- "@backstage/backend-openapi-utils": "0.5.3-next.2",
77
- "@backstage/backend-plugin-api": "1.3.1-next.2",
78
- "@backstage/catalog-client": "1.10.0-next.0",
79
- "@backstage/catalog-model": "1.7.3",
76
+ "@backstage/backend-openapi-utils": "0.5.4-next.0",
77
+ "@backstage/backend-plugin-api": "1.4.0-next.0",
78
+ "@backstage/catalog-client": "1.10.0",
79
+ "@backstage/catalog-model": "1.7.4",
80
80
  "@backstage/config": "1.3.2",
81
81
  "@backstage/errors": "1.2.7",
82
- "@backstage/integration": "1.17.0-next.3",
83
- "@backstage/plugin-catalog-common": "1.1.4-next.0",
84
- "@backstage/plugin-catalog-node": "1.17.0-next.2",
85
- "@backstage/plugin-events-node": "0.4.11-next.2",
86
- "@backstage/plugin-permission-common": "0.9.0-next.0",
87
- "@backstage/plugin-permission-node": "0.10.0-next.2",
82
+ "@backstage/integration": "1.17.0",
83
+ "@backstage/plugin-catalog-common": "1.1.4",
84
+ "@backstage/plugin-catalog-node": "1.17.1-next.0",
85
+ "@backstage/plugin-events-node": "0.4.12-next.0",
86
+ "@backstage/plugin-permission-common": "0.9.0",
87
+ "@backstage/plugin-permission-node": "0.10.1-next.0",
88
88
  "@backstage/types": "1.2.1",
89
89
  "@opentelemetry/api": "^1.9.0",
90
90
  "codeowners-utils": "^1.0.2",
@@ -106,12 +106,12 @@
106
106
  "zod": "^3.22.4"
107
107
  },
108
108
  "devDependencies": {
109
- "@backstage/backend-defaults": "0.10.0-next.3",
110
- "@backstage/backend-test-utils": "1.5.0-next.3",
111
- "@backstage/cli": "0.32.1-next.3",
112
- "@backstage/plugin-permission-common": "0.9.0-next.0",
113
- "@backstage/repo-tools": "0.13.3-next.3",
114
- "@backstage/test-utils": "1.7.8-next.2",
109
+ "@backstage/backend-defaults": "0.10.1-next.0",
110
+ "@backstage/backend-test-utils": "1.6.0-next.0",
111
+ "@backstage/cli": "0.32.1",
112
+ "@backstage/plugin-permission-common": "0.9.0",
113
+ "@backstage/repo-tools": "0.14.0-next.0",
114
+ "@backstage/test-utils": "1.7.8",
115
115
  "@types/core-js": "^2.5.4",
116
116
  "@types/express": "^4.17.6",
117
117
  "@types/git-url-parse": "^9.0.0",