@backstage/plugin-catalog-backend 0.19.4 → 0.21.1

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,227 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
+ ## 0.21.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 4f5bde47e9: Add support for permissions to the DefaultCatalogCollator.
8
+ - Updated dependencies
9
+ - @backstage/search-common@0.2.2
10
+ - @backstage/backend-common@0.10.5
11
+ - @backstage/plugin-permission-node@0.4.1
12
+
13
+ ## 0.21.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 9f2a8dc423: **BREAKING**: Removed all remnants of the old catalog engine implementation.
18
+
19
+ The old implementation has been deprecated for over half a year. To ensure that
20
+ you are not using the old implementation, check that your
21
+ `packages/backend/src/plugins/catalog.ts` creates the catalog builder using
22
+ `CatalogBuilder.create`. If you instead call `new CatalogBuilder`, you are on
23
+ the old implementation and will experience breakage if you upgrade to this
24
+ version. If you are still on the old version, see [the relevant change log
25
+ entry](https://github.com/backstage/backstage/blob/master/plugins/catalog-backend/CHANGELOG.md#patch-changes-27)
26
+ for migration instructions.
27
+
28
+ The minimal `packages/backend/src/plugins/catalog.ts` file is now:
29
+
30
+ ```ts
31
+ export default async function createPlugin(
32
+ env: PluginEnvironment,
33
+ ): Promise<Router> {
34
+ const builder = await CatalogBuilder.create(env);
35
+ builder.addProcessor(new ScaffolderEntitiesProcessor());
36
+ const { processingEngine, router } = await builder.build();
37
+ await processingEngine.start();
38
+ return router;
39
+ }
40
+ ```
41
+
42
+ The following classes and interfaces have been removed:
43
+
44
+ - The `CatalogBuilder` constructor (see above; use `CatalogBuilder.create`
45
+ instead)
46
+ - `AddLocationResult`
47
+ - `CommonDatabase`
48
+ - `CreateDatabaseOptions`
49
+ - `createNextRouter` (use `createRouter` instead - or preferably, use the
50
+ `router` field returned for you by `catalogBuilder.build()`)
51
+ - `Database`
52
+ - `DatabaseEntitiesCatalog` (use `EntitiesCatalog` instead)
53
+ - `DatabaseLocationsCatalog` (use `LocationService` instead)
54
+ - `DatabaseLocationUpdateLogEvent`
55
+ - `DatabaseLocationUpdateLogStatus`
56
+ - `DatabaseManager`
57
+ - `DbEntitiesRequest`
58
+ - `DbEntitiesResponse`
59
+ - `DbEntityRequest`
60
+ - `DbEntityResponse`
61
+ - `DbLocationsRow`
62
+ - `DbLocationsRowWithStatus`
63
+ - `DbPageInfo`
64
+ - `EntitiesCatalog.batchAddOrUpdateEntities` (was only used by the legacy
65
+ engine)
66
+ - `EntityUpsertRequest`
67
+ - `EntityUpsertResponse`
68
+ - `HigherOrderOperation`
69
+ - `HigherOrderOperations`
70
+ - `LocationReader`
71
+ - `LocationReaders`
72
+ - `LocationResponse`
73
+ - `LocationsCatalog`
74
+ - `LocationUpdateLogEvent`
75
+ - `LocationUpdateStatus`
76
+ - `NextCatalogBuilder` (use `CatalogBuilder.create` instead)
77
+ - `NextRouterOptions` (use `RouterOptions` instead)
78
+ - `ReadLocationEntity`
79
+ - `ReadLocationError`
80
+ - `ReadLocationResult`
81
+ - `Transaction`
82
+
83
+ The `RouterOptions` interface has been un-deprecated, and has instead found use
84
+ for passing into `createRouter`. Its shape has been significantly changed to
85
+ accommodate the new router.
86
+
87
+ ### Patch Changes
88
+
89
+ - e15ce5c16e: Integrate authorization into the delete entities endpoint
90
+ - dce98a92f7: Now when entities are deleted, the parent entity state is updated such that it will "heal" accidental deletes on the next refresh round.
91
+ - 02687954ca: Fixed a typo and made a little clarification to a warning message
92
+ - 48248e2db5: Integrate permissions into entity ancestry endpoint in catalog-backend
93
+ - 68edbbeafd: Fix bug with resource loading in permission integration
94
+ - 7e38acaa9e: Integrate permissions into catalog-backend location endpoints
95
+ - 6680853e0c: Export conditional permission policy helpers from catalog-backend
96
+ - 2b27e49eb1: Internal update to match status field changes in `@backstage/catalog-model`.
97
+ - Updated dependencies
98
+ - @backstage/integration@0.7.2
99
+ - @backstage/plugin-permission-common@0.4.0
100
+ - @backstage/backend-common@0.10.4
101
+ - @backstage/config@0.1.13
102
+ - @backstage/plugin-permission-node@0.4.0
103
+ - @backstage/plugin-catalog-common@0.1.1
104
+ - @backstage/catalog-model@0.9.10
105
+ - @backstage/catalog-client@0.5.5
106
+
107
+ ## 0.21.0-next.0
108
+
109
+ ### Minor Changes
110
+
111
+ - 9f2a8dc423: **BREAKING**: Removed all remnants of the old catalog engine implementation.
112
+
113
+ The old implementation has been deprecated for over half a year. To ensure that
114
+ you are not using the old implementation, check that your
115
+ `packages/backend/src/plugins/catalog.ts` creates the catalog builder using
116
+ `CatalogBuilder.create`. If you instead call `new CatalogBuilder`, you are on
117
+ the old implementation and will experience breakage if you upgrade to this
118
+ version. If you are still on the old version, see [the relevant change log
119
+ entry](https://github.com/backstage/backstage/blob/master/plugins/catalog-backend/CHANGELOG.md#patch-changes-27)
120
+ for migration instructions.
121
+
122
+ The minimal `packages/backend/src/plugins/catalog.ts` file is now:
123
+
124
+ ```ts
125
+ export default async function createPlugin(
126
+ env: PluginEnvironment,
127
+ ): Promise<Router> {
128
+ const builder = await CatalogBuilder.create(env);
129
+ builder.addProcessor(new ScaffolderEntitiesProcessor());
130
+ const { processingEngine, router } = await builder.build();
131
+ await processingEngine.start();
132
+ return router;
133
+ }
134
+ ```
135
+
136
+ The following classes and interfaces have been removed:
137
+
138
+ - The `CatalogBuilder` constructor (see above; use `CatalogBuilder.create`
139
+ instead)
140
+ - `AddLocationResult`
141
+ - `CommonDatabase`
142
+ - `CreateDatabaseOptions`
143
+ - `createNextRouter` (use `createRouter` instead - or preferably, use the
144
+ `router` field returned for you by `catalogBuilder.build()`)
145
+ - `Database`
146
+ - `DatabaseEntitiesCatalog` (use `EntitiesCatalog` instead)
147
+ - `DatabaseLocationsCatalog` (use `LocationService` instead)
148
+ - `DatabaseLocationUpdateLogEvent`
149
+ - `DatabaseLocationUpdateLogStatus`
150
+ - `DatabaseManager`
151
+ - `DbEntitiesRequest`
152
+ - `DbEntitiesResponse`
153
+ - `DbEntityRequest`
154
+ - `DbEntityResponse`
155
+ - `DbLocationsRow`
156
+ - `DbLocationsRowWithStatus`
157
+ - `DbPageInfo`
158
+ - `EntitiesCatalog.batchAddOrUpdateEntities` (was only used by the legacy
159
+ engine)
160
+ - `EntityUpsertRequest`
161
+ - `EntityUpsertResponse`
162
+ - `HigherOrderOperation`
163
+ - `HigherOrderOperations`
164
+ - `LocationReader`
165
+ - `LocationReaders`
166
+ - `LocationResponse`
167
+ - `LocationsCatalog`
168
+ - `LocationUpdateLogEvent`
169
+ - `LocationUpdateStatus`
170
+ - `NextCatalogBuilder` (use `CatalogBuilder.create` instead)
171
+ - `NextRouterOptions` (use `RouterOptions` instead)
172
+ - `ReadLocationEntity`
173
+ - `ReadLocationError`
174
+ - `ReadLocationResult`
175
+ - `Transaction`
176
+
177
+ The `RouterOptions` interface has been un-deprecated, and has instead found use
178
+ for passing into `createRouter`. Its shape has been significantly changed to
179
+ accommodate the new router.
180
+
181
+ ### Patch Changes
182
+
183
+ - e15ce5c16e: Integrate authorization into the delete entities endpoint
184
+ - dce98a92f7: Now when entities are deleted, the parent entity state is updated such that it will "heal" accidental deletes on the next refresh round.
185
+ - 02687954ca: Fixed a typo and made a little clarification to a warning message
186
+ - 48248e2db5: Integrate permissions into entity ancestry endpoint in catalog-backend
187
+ - 68edbbeafd: Fix bug with resource loading in permission integration
188
+ - 2b27e49eb1: Internal update to match status field changes in `@backstage/catalog-model`.
189
+ - Updated dependencies
190
+ - @backstage/plugin-permission-common@0.4.0-next.0
191
+ - @backstage/backend-common@0.10.4-next.0
192
+ - @backstage/config@0.1.13-next.0
193
+ - @backstage/plugin-permission-node@0.4.0-next.0
194
+ - @backstage/catalog-model@0.9.10-next.0
195
+ - @backstage/plugin-catalog-common@0.1.1-next.0
196
+ - @backstage/catalog-client@0.5.5-next.0
197
+ - @backstage/integration@0.7.2-next.0
198
+
199
+ ## 0.20.0
200
+
201
+ ### Minor Changes
202
+
203
+ - cd529c4094: In order to integrate the permissions system with the refresh endpoint in catalog-backend, a new AuthorizedRefreshService was created as a thin wrapper around the existing refresh service which performs authorization and handles the case when authorization is denied. In order to instantiate AuthorizedRefreshService, a permission client is required, which was added as a new field to `CatalogEnvironment`.
204
+
205
+ The new `permissions` field in `CatalogEnvironment` should already receive the permission client from the `PluginEnvrionment`, so there should be no changes required to the catalog backend setup. See [the create-app changelog](https://github.com/backstage/backstage/blob/master/packages/create-app/CHANGELOG.md) for more details.
206
+
207
+ ### Patch Changes
208
+
209
+ - 0ae759dad4: Add catalog permission rules.
210
+ - 3b4d8caff6: Allow a custom GithubCredentialsProvider to be passed to the GitHub processors.
211
+ - 6fd70f8bc8: Provide support for Bitbucket servers with custom BaseURLs.
212
+ - 5333451def: Cleaned up API exports
213
+ - 730d01ab1a: Add apply-conditions endpoint for evaluating conditional permissions in catalog backend.
214
+ - 0a6c68582a: Add authorization to catalog-backend entities GET endpoints
215
+ - Updated dependencies
216
+ - @backstage/config@0.1.12
217
+ - @backstage/integration@0.7.1
218
+ - @backstage/backend-common@0.10.3
219
+ - @backstage/plugin-permission-node@0.3.0
220
+ - @backstage/errors@0.2.0
221
+ - @backstage/catalog-client@0.5.4
222
+ - @backstage/catalog-model@0.9.9
223
+ - @backstage/plugin-permission-common@0.3.1
224
+
3
225
  ## 0.19.4
4
226
 
5
227
  ### Patch Changes