mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
1d4ec6cdba
* feat: set quotas * fix: start new period on younger anchor * cleanup e2e config * fix set notifications * lint * test: fix quota projection tests * fix add quota tests * make quota fields nullable * enable amount 0 * fix initial setup * create a prerelease * avoid success comments * fix quota projection primary key * Revert "fix quota projection primary key" This reverts commite72f4d7fa1
. * simplify write model * fix aggregate id * avoid push without changes * test set quota lifecycle * test set quota mutations * fix quota unit test * fix: quotas * test quota.set event projection * use SetQuota in integration tests * fix: release quotas 3 * reset releaserc * fix comment * test notification order doesn't matter * test notification order doesn't matter * test with unmarshalled events * test with unmarshalled events (cherry picked from commitae1af6bc8c
)
17 lines
717 B
Go
17 lines
717 B
Go
package quota
|
|
|
|
import (
|
|
"github.com/zitadel/zitadel/internal/eventstore"
|
|
)
|
|
|
|
func RegisterEventMappers(es *eventstore.Eventstore) {
|
|
// AddedEventType is not emitted anymore.
|
|
// For ease of use, old events are directly mapped to SetEvent.
|
|
// This works, because the data structures are compatible.
|
|
es.RegisterFilterEventMapper(AggregateType, AddedEventType, SetEventMapper).
|
|
RegisterFilterEventMapper(AggregateType, SetEventType, SetEventMapper).
|
|
RegisterFilterEventMapper(AggregateType, RemovedEventType, RemovedEventMapper).
|
|
RegisterFilterEventMapper(AggregateType, NotificationDueEventType, NotificationDueEventMapper).
|
|
RegisterFilterEventMapper(AggregateType, NotifiedEventType, NotifiedEventMapper)
|
|
}
|