chore(catalog): adjust refs in msgraph deprecation warnings

Adjust references in deprecation warnings to point to stable URL/document.

Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
This commit is contained in:
Patrick Jungermann
2022-07-18 22:56:24 +02:00
parent e657ae1f90
commit b1995df9f3
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-msgraph': patch
---
Adjust references in deprecation warnings to point to stable URL/document.
@@ -211,7 +211,7 @@ export class MicrosoftGraphOrgEntityProvider implements EntityProvider {
options: MicrosoftGraphOrgEntityProviderLegacyOptions,
): MicrosoftGraphOrgEntityProvider {
options.logger.warn(
'Deprecated msgraph config "catalog.processors.microsoftGraphOrg" used. Use "catalog.providers.microsoftGraphOrg" instead. More info at https://github.com/backstage/backstage/blob/master/.changeset/long-bananas-rescue.md',
'Deprecated msgraph config "catalog.processors.microsoftGraphOrg" used. Use "catalog.providers.microsoftGraphOrg" instead. More info at https://github.com/backstage/backstage/blob/master/plugins/catalog-backend-module-msgraph/CHANGELOG.md#040-next1',
);
const config = configRoot.getOptionalConfig(
'catalog.processors.microsoftGraphOrg',
@@ -69,7 +69,7 @@ export class MicrosoftGraphOrgReaderProcessor implements CatalogProcessor {
organizationTransformer?: OrganizationTransformer;
}) {
options.logger.warn(
'MicrosoftGraphOrgReaderProcessor is deprecated. Please use MicrosoftGraphOrgEntityProvider instead. More info at https://github.com/backstage/backstage/blob/master/.changeset/long-bananas-rescue.md',
'MicrosoftGraphOrgReaderProcessor is deprecated. Please use MicrosoftGraphOrgEntityProvider instead. More info at https://github.com/backstage/backstage/blob/master/plugins/catalog-backend-module-msgraph/CHANGELOG.md#040-next1',
);
this.providers = options.providers;
this.logger = options.logger;