Rename from plugin-catalog-backend-extension-msgraph to plugin-catalog-backend-module-msgraph
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
+2
-2
@@ -8,13 +8,13 @@ users and groups from Office 365.
|
||||
## Getting Started
|
||||
|
||||
1. The processor is not installed by default, therefore you have to add a
|
||||
dependency to `@backstage/plugin-catalog-backend-extension-msgraph` to your
|
||||
dependency to `@backstage/plugin-catalog-backend-module-msgraph` to your
|
||||
backend package.
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/backend
|
||||
yarn add @backstage/plugin-catalog-backend-extension-msgraph
|
||||
yarn add @backstage/plugin-catalog-backend-module-msgraph
|
||||
```
|
||||
|
||||
2. The `MicrosoftGraphOrgReaderProcessor` is not registered by default, so you have to register it in the catalog plugin:
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-extension-msgraph",
|
||||
"name": "@backstage/plugin-catalog-backend-module-msgraph",
|
||||
"version": "0.1.0",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
@@ -14,7 +14,7 @@
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/backstage/backstage",
|
||||
"directory": "plugins/catalog-backend-extension-msgraph"
|
||||
"directory": "plugins/catalog-backend-module-msgraph"
|
||||
},
|
||||
"keywords": [
|
||||
"backstage"
|
||||
+2
-2
@@ -33,7 +33,7 @@ import { CatalogProcessor, CatalogProcessorEmit } from './types';
|
||||
* Extracts teams and users out of a the Microsoft Graph API.
|
||||
*
|
||||
* @deprecated Use the MicrosoftGraphOrgReaderProcessor from package
|
||||
* @backstage/plugin-catalog-backend-extension-msgraph instead.
|
||||
* @backstage/plugin-catalog-backend-module-msgraph instead.
|
||||
*/
|
||||
export class MicrosoftGraphOrgReaderProcessor implements CatalogProcessor {
|
||||
private readonly providers: MicrosoftGraphProviderConfig[];
|
||||
@@ -65,7 +65,7 @@ export class MicrosoftGraphOrgReaderProcessor implements CatalogProcessor {
|
||||
}
|
||||
|
||||
this.logger.warn(
|
||||
'MicrosoftGraphOrgReaderProcessor from @backstage/plugin-catalog is deprecated and will be removed in the future. Please migrate to the new one from @backstage/plugin-catalog-backend-extension-msgraph instead.',
|
||||
'MicrosoftGraphOrgReaderProcessor from @backstage/plugin-catalog is deprecated and will be removed in the future. Please migrate to the new one from @backstage/plugin-catalog-backend-module-msgraph instead.',
|
||||
);
|
||||
|
||||
const provider = this.providers.find(p =>
|
||||
|
||||
Reference in New Issue
Block a user