feat: promote instance metadata to stable

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2025-09-03 09:48:34 -04:00
committed by Fredrik Adelöw
parent 6fb48a2754
commit a17d9df2ee
15 changed files with 119 additions and 112 deletions
+1 -10
View File
@@ -14,11 +14,6 @@
* limitations under the License.
*/
export type {
BackendFeatureMeta,
InstanceMetadataService,
} from './InstanceMetadataService';
export type {
ActionsRegistryService,
ActionsRegistryActionOptions,
@@ -27,8 +22,4 @@ export type {
export type { ActionsService, ActionsServiceAction } from './ActionsService';
export {
actionsRegistryServiceRef,
actionsServiceRef,
instanceMetadataServiceRef,
} from './refs';
export { actionsRegistryServiceRef, actionsServiceRef } from './refs';
@@ -16,15 +16,6 @@
import { createServiceRef } from '@backstage/backend-plugin-api';
/**
* @alpha
*/
export const instanceMetadataServiceRef = createServiceRef<
import('./InstanceMetadataService').InstanceMetadataService
>({
id: 'core.instanceMetadata',
});
/**
* Service for calling distributed actions
*
@@ -14,19 +14,14 @@
* limitations under the License.
*/
/** @alpha */
export type BackendFeatureMeta =
| {
type: 'plugin';
pluginId: string;
}
| {
type: 'module';
pluginId: string;
moduleId: string;
};
export interface BackendPlugin {
pluginId: string;
modules: {
moduleId: string;
}[];
}
/** @alpha */
export interface InstanceMetadataService {
getInstalledFeatures: () => BackendFeatureMeta[];
getInstalledPlugins: () => readonly BackendPlugin[];
}
@@ -277,4 +277,15 @@ export namespace coreServices {
export const urlReader = createServiceRef<
import('./UrlReaderService').UrlReaderService
>({ id: 'core.urlReader' });
/**
* Information about the current Backstage instance.
*
* @public
*/
export const instanceMetadata = createServiceRef<
import('./InstanceMetadataService').InstanceMetadataService
>({
id: 'core.instanceMetadata',
});
}
@@ -85,4 +85,8 @@ export type {
UrlReaderServiceSearchResponseFile,
} from './UrlReaderService';
export type { BackstageUserInfo, UserInfoService } from './UserInfoService';
export type {
InstanceMetadataService,
BackendPlugin,
} from './InstanceMetadataService';
export { coreServices } from './coreServices';