Skip to content

Commit

Permalink
feat(events): add eventService to LegacyPluginEnvironment
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
  • Loading branch information
pjungermann committed Jan 23, 2024
1 parent 8c7ca46 commit dc41b08
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-nails-hammer.md
@@ -0,0 +1,5 @@
---
'@backstage/backend-dynamic-feature-service': patch
---

Add `eventService` to `LegacyPluginEnvironment`.
2 changes: 2 additions & 0 deletions packages/backend-dynamic-feature-service/api-report.md
Expand Up @@ -9,6 +9,7 @@ import { CatalogBuilder } from '@backstage/plugin-catalog-backend';
import { Config } from '@backstage/config';
import { EventBroker } from '@backstage/plugin-events-node';
import { EventsBackend } from '@backstage/plugin-events-backend';
import { EventService } from '@backstage/plugin-events-node';
import { FeatureDiscoveryService } from '@backstage/backend-plugin-api/alpha';
import { HttpPostIngressOptions } from '@backstage/plugin-events-node';
import { IdentityApi } from '@backstage/plugin-auth-node';
Expand Down Expand Up @@ -186,6 +187,7 @@ export type LegacyPluginEnvironment = {
scheduler: PluginTaskScheduler;
identity: IdentityApi;
eventBroker: EventBroker;
eventService: EventService;
pluginProvider: BackendPluginProvider;
};

Expand Down
2 changes: 2 additions & 0 deletions packages/backend-dynamic-feature-service/src/manager/types.ts
Expand Up @@ -29,6 +29,7 @@ import { IdentityApi } from '@backstage/plugin-auth-node';
import { PermissionEvaluator } from '@backstage/plugin-permission-common';
import {
EventBroker,
EventService,
HttpPostIngressOptions,
} from '@backstage/plugin-events-node';

Expand Down Expand Up @@ -64,6 +65,7 @@ export type LegacyPluginEnvironment = {
scheduler: PluginTaskScheduler;
identity: IdentityApi;
eventBroker: EventBroker;
eventService: EventService;
pluginProvider: BackendPluginProvider;
};

Expand Down

0 comments on commit dc41b08

Please sign in to comment.