fix: Fix project roles/grants projection (#2491)

* fix: project role projections reduce change event

* fix: project grant projections reduce change event

* fix: project grant projections reduce change event

* fix: add project removed event
This commit is contained in:
Fabi
2021-10-08 16:17:12 +02:00
committed by GitHub
parent 1ca2d8adde
commit 29c8fa8bde
3 changed files with 46 additions and 32 deletions

View File

@@ -143,24 +143,6 @@ func TestProjectGrantProjection_reduces(t *testing.T) {
},
},
},
{
name: "reduceProjectGrantChanged no changes",
args: args{
event: getEvent(testEvent(
repository.EventType(project.GrantChangedType),
project.AggregateType,
[]byte(`{}`),
), project.GrantChangedEventMapper),
},
reduce: (&ProjectGrantProjection{}).reduceProjectGrantChanged,
want: wantReduce{
projection: ProjectGrantProjectionTable,
aggregateType: eventstore.AggregateType("project"),
sequence: 15,
previousSequence: 10,
executer: &testExecuter{},
},
},
{
name: "reduceProjectGrantAdded",
args: args{