zitadel/cmd/start
Tim Möhlmann 3aba942162
feat: add debug events API (#8533)
# Which Problems Are Solved

Add a debug API which allows pushing a set of events to be reduced in a
dedicated projection.
The events can carry a sleep duration which simulates a slow query
during projection handling.

# How the Problems Are Solved

- `CreateDebugEvents` allows pushing multiple events which simulate the
lifecycle of a resource. Each event has a `projectionSleep` field, which
issues a `pg_sleep()` statement query in the projection handler :
  - Add
  - Change
  - Remove
- `ListDebugEventsStates` list the current state of the projection,
optionally with a Trigger
- `GetDebugEventsStateByID` get the current state of the aggregate ID in
the projection, optionally with a Trigger


# Additional Changes

- none

# Additional Context

-  Allows reproduction of https://github.com/zitadel/zitadel/issues/8517
2024-09-11 08:24:00 +00:00
..
config_test.go fix(setup): decode role mappings (#7760) 2024-04-14 12:55:54 +03:00
config.go feat: enable application performance profiling (#8442) 2024-08-16 13:26:53 +00:00
flags.go refactor(fmt): run gci on complete project (#7557) 2024-04-03 10:43:43 +00:00
start_from_init.go feat(cmd): mirror (#7004) 2024-05-30 09:35:30 +00:00
start_from_setup.go feat(cmd): mirror (#7004) 2024-05-30 09:35:30 +00:00
start.go feat: add debug events API (#8533) 2024-09-11 08:24:00 +00:00