From b1995df9f35e371f7f75d5a17f5c7151bd11fda8 Mon Sep 17 00:00:00 2001 From: Patrick Jungermann Date: Mon, 18 Jul 2022 22:56:24 +0200 Subject: [PATCH] chore(catalog): adjust refs in msgraph deprecation warnings Adjust references in deprecation warnings to point to stable URL/document. Signed-off-by: Patrick Jungermann --- .changeset/violet-mayflies-mix.md | 5 +++++ .../src/processors/MicrosoftGraphOrgEntityProvider.ts | 2 +- .../src/processors/MicrosoftGraphOrgReaderProcessor.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/violet-mayflies-mix.md diff --git a/.changeset/violet-mayflies-mix.md b/.changeset/violet-mayflies-mix.md new file mode 100644 index 0000000000..a4d078ac35 --- /dev/null +++ b/.changeset/violet-mayflies-mix.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-backend-module-msgraph': patch +--- + +Adjust references in deprecation warnings to point to stable URL/document. diff --git a/plugins/catalog-backend-module-msgraph/src/processors/MicrosoftGraphOrgEntityProvider.ts b/plugins/catalog-backend-module-msgraph/src/processors/MicrosoftGraphOrgEntityProvider.ts index 4a52ddc665..4c38198b0d 100644 --- a/plugins/catalog-backend-module-msgraph/src/processors/MicrosoftGraphOrgEntityProvider.ts +++ b/plugins/catalog-backend-module-msgraph/src/processors/MicrosoftGraphOrgEntityProvider.ts @@ -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', diff --git a/plugins/catalog-backend-module-msgraph/src/processors/MicrosoftGraphOrgReaderProcessor.ts b/plugins/catalog-backend-module-msgraph/src/processors/MicrosoftGraphOrgReaderProcessor.ts index decd84ec1f..1267648481 100644 --- a/plugins/catalog-backend-module-msgraph/src/processors/MicrosoftGraphOrgReaderProcessor.ts +++ b/plugins/catalog-backend-module-msgraph/src/processors/MicrosoftGraphOrgReaderProcessor.ts @@ -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;