refactor: merge relational table projections into one handler (#11740)

## Problem description

During tests we found concurrency issues in the relational table
projections. Tests got flaky if a table (e.g. organization domains) had
too many foreign keys to tables which were projected by another handler.

## Resolution

The projections of the relational tables got merged into one handler to
enforce sequential reduction of events.

## Additional info

- closes https://github.com/zitadel/zitadel/issues/11703
- closes https://github.com/zitadel/zitadel/issues/10810

---------

Co-authored-by: Marco Ardizzone <[email protected]>
This commit is contained in:
Silvan
2026-03-10 17:01:46 +00:00
committed by GitHub
co-authored by Marco Ardizzone
parent 689b90d9d9
commit de1cab9976
30 changed files with 4174 additions and 4259 deletions
@@ -367,6 +367,12 @@ func AddNoOpStatement() func(eventstore.Event) Exec {
}
}
func AddStatement(e Exec) func(eventstore.Event) Exec {
return func(event eventstore.Event) Exec {
return NewStatement(event, e).Execute
}
}
func AddCreateStatement(columns []Column, opts ...execOption) func(eventstore.Event) Exec {
return func(event eventstore.Event) Exec {
return NewCreateStatement(event, columns, opts...).Execute