zitadel/internal/eventstore
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
..
handler feat: add debug events API (#8533) 2024-09-11 08:24:00 +00:00
repository fix(eventstore): precise decimal (#8527) 2024-09-06 12:19:19 +03:00
v1/models fix(eventstore): precise decimal (#8527) 2024-09-06 12:19:19 +03:00
v3 fix(eventstore): precise decimal (#8527) 2024-09-06 12:19:19 +03:00
aggregate.go feat(v3alpha): web key resource (#8262) 2024-08-14 14:18:14 +00:00
asset.go
bench_payload.txt feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
config.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
event_base.go fix(eventstore): precise decimal (#8527) 2024-09-06 12:19:19 +03:00
event.go fix(eventstore): precise decimal (#8527) 2024-09-06 12:19:19 +03:00
eventstore_bench_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_pusher_test.go fix(crdb): obtain latest sequences when the tx is retried (#7795) 2024-04-18 13:07:05 +00:00
eventstore_querier_test.go fix(eventstore): precise decimal (#8527) 2024-09-06 12:19:19 +03:00
eventstore_test.go fix(eventstore): precise decimal (#8527) 2024-09-06 12:19:19 +03:00
eventstore.go fix(eventstore): precise decimal (#8527) 2024-09-06 12:19:19 +03:00
example_test.go fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
field.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
local_crdb_test.go fix(eventstore): precise decimal (#8527) 2024-09-06 12:19:19 +03:00
read_model.go fix(eventstore): precise decimal (#8527) 2024-09-06 12:19:19 +03:00
search_query_test.go fix(eventstore): precise decimal (#8527) 2024-09-06 12:19:19 +03:00
search_query.go fix(eventstore): precise decimal (#8527) 2024-09-06 12:19:19 +03:00
subscription.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
unique_constraint.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
version_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
version.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
write_model.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00