@backstage/plugin-catalog-backend 0.22.0 → 0.24.0-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 +112 -0
- package/alpha/package.json +6 -0
- package/dist/index.alpha.d.ts +1428 -0
- package/dist/index.beta.d.ts +1373 -0
- package/dist/index.cjs.js +1001 -1135
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1019 -982
- package/migrations/20200702153613_entities.js +2 -2
- package/migrations/20200807120600_entitySearch.js +2 -2
- package/migrations/20201005122705_add_entity_full_name.js +1 -1
- package/migrations/20201006130744_entity_data_column.js +1 -1
- package/migrations/20201123205611_relations_table_uniq.js +2 -2
- package/migrations/20201210185851_fk_index.js +2 -2
- package/migrations/20201230103504_update_log_varchar.js +2 -2
- package/migrations/20210209121210_locations_fk_index.js +2 -2
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,117 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend
|
|
2
2
|
|
|
3
|
+
## 0.24.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 66ba5d9023: **BREAKING**: Removed `GitLabDiscoveryProcessor`, which now instead should be imported from `@backstage/plugin-catalog-backend-module-gitlab`. NOTE THAT this processor was part of the default set of processors in the catalog backend, and if you are a user of discovery on GitLab, you MUST now add it manually in the catalog initialization code of your backend.
|
|
8
|
+
|
|
9
|
+
```diff
|
|
10
|
+
// In packages/backend/src/plugins/catalog.ts
|
|
11
|
+
+import { GitLabDiscoveryProcessor } from '@backstage/plugin-catalog-backend-module-gitlab';
|
|
12
|
+
|
|
13
|
+
export default async function createPlugin(
|
|
14
|
+
env: PluginEnvironment,
|
|
15
|
+
): Promise<Router> {
|
|
16
|
+
const builder = await CatalogBuilder.create(env);
|
|
17
|
+
+ builder.addProcessor(
|
|
18
|
+
+ GitLabDiscoveryProcessor.fromConfig(env.config, { logger: env.logger })
|
|
19
|
+
+ );
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**BREAKING**: Removed `AzureDevOpsDiscoveryProcessor`, which now instead should be imported from `@backstage/plugin-catalog-backend-module-azure`. This processor was not part of the set of default processors. If you were using it, you should already have a reference to it in your backend code and only need to update the import.
|
|
23
|
+
|
|
24
|
+
- f115a7f8fd: **BREAKING**: Removed `AwsS3DiscoveryProcessor`, which now instead should be imported from `@backstage/plugin-catalog-backend-module-aws`.
|
|
25
|
+
- 55150919ed: - **BREAKING**: Support for `backstage.io/v1beta2` Software Templates has been removed. Please migrate your legacy templates to the new `scaffolder.backstage.io/v1beta3` `apiVersion` by following the [migration guide](https://backstage.io/docs/features/software-templates/migrating-from-v1beta2-to-v1beta3)
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- ab7cd7d70e: Do some groundwork for supporting the `better-sqlite3` driver, to maybe eventually replace `@vscode/sqlite3` (#9912)
|
|
30
|
+
- e0a69ba49f: build(deps): bump `fs-extra` from 9.1.0 to 10.0.1
|
|
31
|
+
- 616f02ade2: support Bitbucket Cloud's code search to discover catalog files (multiple per repo, Location entities for existing files only)
|
|
32
|
+
- e421d77536: **BREAKING**:
|
|
33
|
+
|
|
34
|
+
- Removed the previously deprecated `runPeriodically` export. Please use the `@backstage/backend-tasks` package instead, or copy [the actual implementation](https://github.com/backstage/backstage/blob/02875d4d56708c60f86f6b0a5b3da82e24988354/plugins/catalog-backend/src/util/runPeriodically.ts#L29) into your own code if you explicitly do not want coordination of task runs across your worker nodes.
|
|
35
|
+
- Removed the previously deprecated `CatalogProcessorLocationResult.optional` field. Please set the corresponding `LocationSpec.presence` field to `'optional'` instead.
|
|
36
|
+
- Related to the previous point, the `processingResult.location` function no longer has a second boolean `optional` argument. Please set the corresponding `LocationSpec.presence` field to `'optional'` instead.
|
|
37
|
+
- Removed the previously deprecated `StaticLocationProcessor`. It has not been in use for some time; its functionality is covered by `ConfigLocationEntityProvider` instead.
|
|
38
|
+
|
|
39
|
+
- 3c2bc73901: Use `setupRequestMockHandlers` from `@backstage/backend-test-utils`
|
|
40
|
+
- c1168bb440: Fixed display of the location in the log message that is printed when entity envelope validation fails.
|
|
41
|
+
- b1aacbf96a: Applied the fix for the `/alpha` entry point resolution that was part of the `v0.70.1` release of Backstage.
|
|
42
|
+
- 3e54f6c436: Use `@backstage/plugin-search-common` package instead of `@backstage/search-common`.
|
|
43
|
+
- Updated dependencies
|
|
44
|
+
- @backstage/backend-common@0.13.0-next.0
|
|
45
|
+
- @backstage/plugin-scaffolder-common@0.3.0-next.0
|
|
46
|
+
- @backstage/catalog-model@0.13.0-next.0
|
|
47
|
+
- @backstage/plugin-catalog-common@0.2.2-next.0
|
|
48
|
+
- @backstage/plugin-search-common@0.3.1-next.0
|
|
49
|
+
- @backstage/catalog-client@0.9.0-next.0
|
|
50
|
+
- @backstage/plugin-permission-node@0.5.4-next.0
|
|
51
|
+
|
|
52
|
+
## 0.23.1
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- Marked `GithubMultiOrgReaderProcessor` as stable, as it was moved to `/alpha` by mistake.
|
|
57
|
+
- Fixed runtime resolution of the `/alpha` entry point.
|
|
58
|
+
- Updated dependencies
|
|
59
|
+
- @backstage/backend-common@0.12.1
|
|
60
|
+
- @backstage/catalog-model@0.12.1
|
|
61
|
+
- @backstage/plugin-catalog-common@0.2.1
|
|
62
|
+
|
|
63
|
+
## 0.23.0
|
|
64
|
+
|
|
65
|
+
### Minor Changes
|
|
66
|
+
|
|
67
|
+
- 0c9cf2822d: **Breaking**: Mark permission-related exports as alpha. This means that the exports below should now be imported from `@backstage/plugin-catalog-backend/alpha` instead of `@backstage/plugin-catalog-backend`.
|
|
68
|
+
|
|
69
|
+
- `catalogConditions`
|
|
70
|
+
- `createCatalogPolicyDecision`
|
|
71
|
+
- `permissionRules`
|
|
72
|
+
- `createCatalogPermissionRule`
|
|
73
|
+
|
|
74
|
+
- 862e416239: **Breaking**: Removed `entityRef` from `CatalogProcessorRelationResult`. The field is not used by the catalog and relation information is already available inside the `reation` property.
|
|
75
|
+
- c85292b768: **Breaking**: Removed optional `handleError()` from `CatalogProcessor`. This optional method is never called by the catalog processing engine and can therefore be removed.
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- 83a83381b0: **DEPRECATED**: The `results` export, and instead adding `processingResult` with the same shape and purpose.
|
|
80
|
+
- 83a83381b0: Internal restructuring to collect the various provider files in a `modules` folder while waiting to be externalized
|
|
81
|
+
- fc6d31b5c3: Deprecated the `BitbucketRepositoryParser` type.
|
|
82
|
+
- 022507c860: A `DefaultCatalogCollatorFactory`, which works with the new stream-based
|
|
83
|
+
search indexing subsystem, is now available. The `DefaultCatalogCollator` will
|
|
84
|
+
continue to be available for those unable to upgrade to the stream-based
|
|
85
|
+
`@backstage/search-backend-node` (and related packages), however it is now
|
|
86
|
+
marked as deprecated and will be removed in a future version.
|
|
87
|
+
|
|
88
|
+
To upgrade this plugin and the search indexing subsystem in one go, check
|
|
89
|
+
[this upgrade guide](https://backstage.io/docs/features/search/how-to-guides#how-to-migrate-from-search-alpha-to-beta)
|
|
90
|
+
for necessary changes to your search backend plugin configuration.
|
|
91
|
+
|
|
92
|
+
- ab7b6cb7b1: **DEPRECATION**: Moved the `CatalogEntityDocument` to `@backstage/plugin-catalog-common` and deprecated the export from `@backstage/plugin-catalog-backend`.
|
|
93
|
+
|
|
94
|
+
A new `type` field has also been added to `CatalogEntityDocument` as a replacement for `componentType`, which is now deprecated. Both fields are still present and should be set to the same value in order to avoid issues with indexing.
|
|
95
|
+
|
|
96
|
+
Any search customizations need to be updated to use this new `type` field instead, including any custom frontend filters, custom frontend result components, custom search decorators, or non-default Catalog collator implementations.
|
|
97
|
+
|
|
98
|
+
- cb09096607: Tweaked the wording of the "does not have a location" errors to include the actual missing annotation name, to help users better in fixing their inputs.
|
|
99
|
+
- 36aa63022b: Use `CompoundEntityRef` instead of `EntityName`, and `getCompoundEntityRef` instead of `getEntityName`, from `@backstage/catalog-model`.
|
|
100
|
+
- b753d22a56: **DEPRECATION**: Deprecated the `RefreshIntervalFunction` and `createRandomRefreshInterval` in favour of the `ProcessingIntervalFunction` and `createRandomProcessingInterval` type and method respectively. Please migrate to use the new names.
|
|
101
|
+
|
|
102
|
+
**DEPRECATION**: Deprecated the `setRefreshInterval` and `setRefreshIntervalSeconds` methods on the `CatalogBuilder` for the new `setProcessingInterval` and `setProcessingIntervalSeconds` methods. Please migrate to use the new names.
|
|
103
|
+
|
|
104
|
+
- Updated dependencies
|
|
105
|
+
- @backstage/catalog-model@0.12.0
|
|
106
|
+
- @backstage/catalog-client@0.8.0
|
|
107
|
+
- @backstage/backend-common@0.12.0
|
|
108
|
+
- @backstage/plugin-catalog-common@0.2.0
|
|
109
|
+
- @backstage/integration@0.8.0
|
|
110
|
+
- @backstage/plugin-permission-common@0.5.2
|
|
111
|
+
- @backstage/plugin-permission-node@0.5.3
|
|
112
|
+
- @backstage/search-common@0.3.0
|
|
113
|
+
- @backstage/plugin-scaffolder-common@0.2.3
|
|
114
|
+
|
|
3
115
|
## 0.22.0
|
|
4
116
|
|
|
5
117
|
### Minor Changes
|