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:
Oliver Sand
2021-06-10 12:48:41 +02:00
parent 65f5f00c62
commit 8a63e6a523
26 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
---
'@backstage/plugin-catalog-backend': patch
'@backstage/plugin-catalog-backend-extension-msgraph': patch
'@backstage/plugin-catalog-backend-module-msgraph': patch
---
Move `MicrosoftGraphOrgReaderProcessor` from `@backstage/plugin-catalog-backend`
to `@backstage/plugin-catalog-backend-extension-msgraph`.
to `@backstage/plugin-catalog-backend-module-msgraph`.
For now `MicrosoftGraphOrgReaderProcessor` is only deprecated in
`@backstage/plugin-catalog-backend`, but will be removed in the future. While it
+1 -1
View File
@@ -1,5 +1,5 @@
---
'@backstage/plugin-catalog-backend-extension-msgraph': patch
'@backstage/plugin-catalog-backend-module-msgraph': patch
---
Allow customizations of `MicrosoftGraphOrgReaderProcessor` by passing an
+1 -1
View File
@@ -36,7 +36,7 @@
"@backstage/plugin-auth-backend": "^0.3.12",
"@backstage/plugin-badges-backend": "^0.1.6",
"@backstage/plugin-catalog-backend": "^0.10.2",
"@backstage/plugin-catalog-backend-extension-msgraph": "^0.1.0",
"@backstage/plugin-catalog-backend-module-msgraph": "^0.1.0",
"@backstage/plugin-code-coverage-backend": "^0.1.6",
"@backstage/plugin-graphql-backend": "^0.1.8",
"@backstage/plugin-kubernetes-backend": "^0.3.8",
+1 -1
View File
@@ -16,7 +16,7 @@
import {
CatalogBuilder,
createRouter,
createRouter
} from '@backstage/plugin-catalog-backend';
import { Router } from 'express';
import { PluginEnvironment } from '../types';
@@ -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:
@@ -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"
@@ -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 =>