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