feat: instance remove (#4345)

* feat(instance): add remove instance event with projections cleanup

* fix(instance): corrected used id to clean up projections

* fix merge

* fix: correct unit test projection names

* fix: current sequence of lists and query for ensuring keypair based projections

Co-authored-by: Livio Spring <[email protected]>
Co-authored-by: Fabi <[email protected]>
This commit is contained in:
Stefan Benz
2022-10-20 14:36:52 +02:00
committed by GitHub
co-authored by Livio Spring Fabi
parent 6e89b7d0a1
commit c2a5b785fb
90 changed files with 1548 additions and 426 deletions
@@ -37,7 +37,6 @@ func TestOrgMetadataProjection_reduces(t *testing.T) {
aggregateType: org.AggregateType,
sequence: 15,
previousSequence: 10,
projection: OrgMetadataProjectionTable,
executer: &testExecuter{
executions: []execution{
{
@@ -73,7 +72,6 @@ func TestOrgMetadataProjection_reduces(t *testing.T) {
aggregateType: org.AggregateType,
sequence: 15,
previousSequence: 10,
projection: OrgMetadataProjectionTable,
executer: &testExecuter{
executions: []execution{
{
@@ -101,7 +99,6 @@ func TestOrgMetadataProjection_reduces(t *testing.T) {
aggregateType: org.AggregateType,
sequence: 15,
previousSequence: 10,
projection: OrgMetadataProjectionTable,
executer: &testExecuter{
executions: []execution{
{
@@ -128,7 +125,6 @@ func TestOrgMetadataProjection_reduces(t *testing.T) {
aggregateType: org.AggregateType,
sequence: 15,
previousSequence: 10,
projection: OrgMetadataProjectionTable,
executer: &testExecuter{
executions: []execution{
{
@@ -152,7 +148,7 @@ func TestOrgMetadataProjection_reduces(t *testing.T) {
event = tt.args.event(t)
got, err = tt.reduce(event)
assertReduce(t, got, err, tt.want)
assertReduce(t, got, err, OrgMetadataProjectionTable, tt.want)
})
}
}