Merge pull request #12708 from Bonial-International-GmbH/pjungermann/msgraph/deprecation-adjust-ref

chore(catalog): adjust refs in msgraph deprecation warnings
This commit is contained in:
Ben Lambert
2022-07-19 13:30:10 +02:00
committed by GitHub
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;