move off of some alpha exports
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
---
|
||||
'@backstage/plugin-search-backend-module-techdocs': patch
|
||||
'@backstage/plugin-search-backend-module-catalog': patch
|
||||
'@backstage/plugin-search-backend-module-explore': patch
|
||||
---
|
||||
|
||||
Update README
|
||||
@@ -221,7 +221,7 @@ describePerformanceTest('stitchingPerformance', () => {
|
||||
|
||||
const backend = await startTestBackend({
|
||||
features: [
|
||||
import('@backstage/plugin-catalog-backend/alpha'),
|
||||
import('@backstage/plugin-catalog-backend'),
|
||||
mockServices.rootConfig.factory({ data: config }),
|
||||
mockServices.database.factory({ knex }),
|
||||
createBackendModule({
|
||||
|
||||
@@ -108,7 +108,7 @@ describe('resourcesRoutes', () => {
|
||||
},
|
||||
},
|
||||
}),
|
||||
import('@backstage/plugin-kubernetes-backend/alpha'),
|
||||
import('@backstage/plugin-kubernetes-backend'),
|
||||
createBackendModule({
|
||||
pluginId: 'kubernetes',
|
||||
moduleId: 'test-objects-provider',
|
||||
|
||||
@@ -121,8 +121,8 @@ describe('API integration tests', () => {
|
||||
const { server } = await startTestBackend({
|
||||
features: [
|
||||
minimalValidConfigService,
|
||||
import('@backstage/plugin-kubernetes-backend/alpha'),
|
||||
import('@backstage/plugin-permission-backend/alpha'),
|
||||
import('@backstage/plugin-kubernetes-backend'),
|
||||
import('@backstage/plugin-permission-backend'),
|
||||
import('@backstage/plugin-permission-backend-module-allow-all-policy'),
|
||||
createBackendModule({
|
||||
pluginId: 'kubernetes',
|
||||
@@ -187,7 +187,7 @@ describe('API integration tests', () => {
|
||||
const { server } = await startTestBackend({
|
||||
features: [
|
||||
minimalValidConfigService,
|
||||
import('@backstage/plugin-kubernetes-backend/alpha'),
|
||||
import('@backstage/plugin-kubernetes-backend'),
|
||||
createBackendModule({
|
||||
pluginId: 'kubernetes',
|
||||
moduleId: 'testObjectsProvider',
|
||||
@@ -284,7 +284,7 @@ describe('API integration tests', () => {
|
||||
const { server } = await startTestBackend({
|
||||
features: [
|
||||
minimalValidConfigService,
|
||||
import('@backstage/plugin-kubernetes-backend/alpha'),
|
||||
import('@backstage/plugin-kubernetes-backend'),
|
||||
withClusters([
|
||||
{
|
||||
name: 'cluster-name',
|
||||
@@ -377,7 +377,7 @@ describe('API integration tests', () => {
|
||||
const { server } = await startTestBackend({
|
||||
features: [
|
||||
minimalValidConfigService,
|
||||
import('@backstage/plugin-kubernetes-backend/alpha'),
|
||||
import('@backstage/plugin-kubernetes-backend'),
|
||||
withClusters(clusters),
|
||||
createBackendModule({
|
||||
pluginId: 'kubernetes',
|
||||
@@ -440,7 +440,7 @@ describe('API integration tests', () => {
|
||||
const { server } = await startTestBackend({
|
||||
features: [
|
||||
minimalValidConfigService,
|
||||
import('@backstage/plugin-kubernetes-backend/alpha'),
|
||||
import('@backstage/plugin-kubernetes-backend'),
|
||||
withClusters([
|
||||
{
|
||||
name: 'custom-cluster',
|
||||
@@ -579,7 +579,7 @@ metadata:
|
||||
features: [
|
||||
minimalValidConfigService,
|
||||
permissionsMock.factory,
|
||||
import('@backstage/plugin-kubernetes-backend/alpha'),
|
||||
import('@backstage/plugin-kubernetes-backend'),
|
||||
],
|
||||
});
|
||||
app = server;
|
||||
@@ -614,7 +614,7 @@ metadata:
|
||||
const { server } = await startTestBackend({
|
||||
features: [
|
||||
minimalValidConfigService,
|
||||
import('@backstage/plugin-kubernetes-backend/alpha'),
|
||||
import('@backstage/plugin-kubernetes-backend'),
|
||||
withClusters([
|
||||
{
|
||||
name: 'custom-cluster',
|
||||
@@ -689,7 +689,7 @@ metadata:
|
||||
},
|
||||
},
|
||||
}),
|
||||
import('@backstage/plugin-kubernetes-backend/alpha'),
|
||||
import('@backstage/plugin-kubernetes-backend'),
|
||||
createBackendModule({
|
||||
pluginId: 'kubernetes',
|
||||
moduleId: 'testAuthStrategy',
|
||||
@@ -741,7 +741,7 @@ metadata:
|
||||
},
|
||||
},
|
||||
}),
|
||||
import('@backstage/plugin-kubernetes-backend/alpha'),
|
||||
import('@backstage/plugin-kubernetes-backend'),
|
||||
createBackendModule({
|
||||
pluginId: 'kubernetes',
|
||||
moduleId: 'testAuthStrategy',
|
||||
@@ -796,7 +796,7 @@ metadata:
|
||||
},
|
||||
},
|
||||
}),
|
||||
import('@backstage/plugin-kubernetes-backend/alpha'),
|
||||
import('@backstage/plugin-kubernetes-backend'),
|
||||
],
|
||||
}),
|
||||
).rejects.toThrow(
|
||||
|
||||
@@ -90,7 +90,7 @@ describe('Pinniped - tokenCredentialRequest', () => {
|
||||
},
|
||||
},
|
||||
}),
|
||||
import('@backstage/plugin-kubernetes-backend/alpha'),
|
||||
import('@backstage/plugin-kubernetes-backend'),
|
||||
createBackendModule({
|
||||
pluginId: 'kubernetes',
|
||||
moduleId: 'testClusterSupplier',
|
||||
@@ -261,7 +261,7 @@ describe('Pinniped - tokenCredentialRequest', () => {
|
||||
},
|
||||
},
|
||||
}),
|
||||
import('@backstage/plugin-kubernetes-backend/alpha'),
|
||||
import('@backstage/plugin-kubernetes-backend'),
|
||||
createBackendModule({
|
||||
pluginId: 'kubernetes',
|
||||
moduleId: 'testClusterSupplier',
|
||||
|
||||
@@ -109,7 +109,7 @@ const notificationsDebug = createBackendPlugin({
|
||||
});
|
||||
|
||||
const backend = createBackend();
|
||||
backend.add(import('@backstage/plugin-events-backend/alpha'));
|
||||
backend.add(import('@backstage/plugin-events-backend'));
|
||||
backend.add(import('@backstage/plugin-signals-backend'));
|
||||
backend.add(import('@backstage/plugin-auth-backend'));
|
||||
backend.add(import('@backstage/plugin-auth-backend-module-guest-provider'));
|
||||
|
||||
@@ -16,12 +16,10 @@ Add the collator to your backend instance, along with the search plugin itself:
|
||||
```tsx
|
||||
// packages/backend/src/index.ts
|
||||
import { createBackend } from '@backstage/backend-defaults';
|
||||
import { searchPlugin } from '@backstage/plugin-search-backend/alpha';
|
||||
import { searchModuleCatalogCollator } from '@backstage/plugin-search-backend-module-catalog/alpha';
|
||||
|
||||
const backend = createBackend();
|
||||
backend.add(searchPlugin);
|
||||
backend.add(searchModuleCatalogCollator);
|
||||
backend.add(import('@backstage/plugin-search-backend'));
|
||||
backend.add(import('@backstage/plugin-search-backend-module-catalog'));
|
||||
backend.start();
|
||||
```
|
||||
|
||||
@@ -35,12 +33,8 @@ This module also has an extension point, which lets you inject advanced customiz
|
||||
// packages/backend/src/index.ts
|
||||
import { createBackend } from '@backstage/backend-defaults';
|
||||
import { createBackendModule } from '@backstage/backend-plugin-api';
|
||||
import { searchPlugin } from '@backstage/plugin-search-backend/alpha';
|
||||
import { CatalogCollatorEntityTransformer } from '@backstage/plugin-search-backend-module-catalog';
|
||||
import {
|
||||
searchModuleCatalogCollator,
|
||||
catalogCollatorExtensionPoint,
|
||||
} from '@backstage/plugin-search-backend-module-catalog/alpha';
|
||||
import { catalogCollatorExtensionPoint } from '@backstage/plugin-search-backend-module-catalog/alpha';
|
||||
|
||||
const customTransformer: CatalogCollatorEntityTransformer = entity => ({
|
||||
title: entity.metadata.title || entity.metadata.name,
|
||||
@@ -54,8 +48,8 @@ const customTransformer: CatalogCollatorEntityTransformer = entity => ({
|
||||
});
|
||||
|
||||
const backend = createBackend();
|
||||
backend.add(searchPlugin);
|
||||
backend.add(searchModuleCatalogCollator);
|
||||
backend.add(import('@backstage/plugin-search-backend'));
|
||||
backend.add(import('@backstage/plugin-search-backend-module-catalog'));
|
||||
backend.add(
|
||||
createBackendModule({
|
||||
pluginId: 'search',
|
||||
|
||||
@@ -16,12 +16,10 @@ Add the collator to your backend instance, along with the search plugin itself:
|
||||
```tsx
|
||||
// packages/backend/src/index.ts
|
||||
import { createBackend } from '@backstage/backend-defaults';
|
||||
import { searchPlugin } from '@backstage/plugin-search-backend/alpha';
|
||||
import { searchModuleExploreCollator } from '@backstage/plugin-search-backend-module-explore/alpha';
|
||||
|
||||
const backend = createBackend();
|
||||
backend.add(searchPlugin);
|
||||
backend.add(searchModuleExploreCollator);
|
||||
backend.add(import('@backstage/plugin-search-backend'));
|
||||
backend.add(import('@backstage/plugin-search-backend-module-explore'));
|
||||
backend.start();
|
||||
```
|
||||
|
||||
|
||||
@@ -16,12 +16,10 @@ Add the collator to your backend instance, along with the search plugin itself:
|
||||
```tsx
|
||||
// packages/backend/src/index.ts
|
||||
import { createBackend } from '@backstage/backend-defaults';
|
||||
import { searchPlugin } from '@backstage/plugin-search-backend/alpha';
|
||||
import { searchModuleTechDocsCollator } from '@backstage/plugin-search-backend-module-techdocs/alpha';
|
||||
|
||||
const backend = createBackend();
|
||||
backend.add(searchPlugin);
|
||||
backend.add(searchModuleTechDocsCollator);
|
||||
backend.add(import('@backstage/plugin-search-backend'));
|
||||
backend.add(import('@backstage/plugin-search-backend-module-techdocs'));
|
||||
backend.start();
|
||||
```
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ const signalDebug = createBackendPlugin({
|
||||
});
|
||||
|
||||
const backend = createBackend();
|
||||
backend.add(import('@backstage/plugin-events-backend/alpha'));
|
||||
backend.add(import('@backstage/plugin-events-backend'));
|
||||
backend.add(import('@backstage/plugin-auth-backend'));
|
||||
backend.add(import('@backstage/plugin-auth-backend-module-guest-provider'));
|
||||
backend.add(import('../src'));
|
||||
|
||||
Reference in New Issue
Block a user