Commit Graph

8 Commits

Author SHA1 Message Date
Patrik Oldsberg 8e06f3cf00 backend-plugin-api: moved loggerToWinstonLogger to backend-common
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-01-04 10:34:34 +01:00
Patrik Oldsberg 217149ae98 events-backend: await subscribers and log errors
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-01-02 14:17:25 +01:00
Fredrik Adelöw c6a2600770 one more timeout that sometimes is not enough
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-12-12 13:07:39 +01:00
Patrik Oldsberg a46a0887a3 refactor all the things to use coreServices
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-02 14:48:15 +01:00
Fredrik Adelöw e6ab8abc6b bump test timeouts in events-backend due to flakiness
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-11-24 16:58:55 +01:00
Patrick Jungermann cf41eedf43 chore(events): apply post-merge comments
Introduces a new interface `RequestDetails` to abstract `Request`
providing access to request body and headers.

**BREAKING:** Replace `request: Request` with `request: RequestDetails` at `RequestValidator`.

**BREAKING:** Remove required field `router` at `HttpPostIngressEventPublisher.fromConfig`
  and replace it with `bind(router: Router)`.
  Additionally, the path prefix `/http` will be added inside `HttpPostIngressEventPublisher`.

Relates-to: PR #13931
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-11-19 15:08:14 +01:00
Patrick Jungermann dc9da28abd feat(events/http): add HTTP endpoint-based event publisher
This plugin adds an event publisher which receives events via (an) HTTP endpoint(s)
and can be used as destination at webhook subscriptions.

Relates-to: #11082
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-11-12 00:02:48 +01:00
Patrick Jungermann 7bbd2403a1 feat(events): add events management capabilities
This change introduces some new plugins which provide the basics
for managing events inside of backstage.
Hereby, it offers extension points to add event publishers and subscribers
as well as to exchange the event broker implementation.

- `@backstage/plugin-events-backend`:
  backend for the events management which connects all parts
  and provides a simple in-memory event broker
- `@backstage/plugin-events-node`:
  interfaces and API for `@backstage/plugin-events-backend`
- `@backstage/plugin-events-test-utils`:
  test utilities like implementations useful for writing tests at modules

All plugins support the new backend-plugin-api.

Relates-to: #11082
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-11-12 00:00:49 +01:00