[core/apis] added pluginId to feature flag metadata

This commit is contained in:
Bilawal Hameed
2020-03-26 17:14:47 +01:00
parent 92d091dec8
commit b2438a22cb
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -90,7 +90,10 @@ export default class AppBuilder {
break;
}
case 'feature-flag': {
registeredFeatureFlags.push({ name: output.name });
registeredFeatureFlags.push({
pluginId: plugin.config.id,
name: output.name,
});
break;
}
default:
@@ -71,6 +71,7 @@ export const FeatureFlags = new FeatureFlagsImpl();
* Backstage components. This enables viewing all of the available flags.
*/
export interface FeatureFlagsEntry {
pluginId: string;
name: FeatureFlagName;
}