chore(removing dead code): removing LabelPolicyAssetsRemovedEventType event is never made (#10742)

# Which Problems Are Solved

The event `LabelPolicyAssetsRemovedEventType` is never actually made
anywhere, this is dead code, this PR will remove it
This commit is contained in:
Iraq
2025-09-22 06:19:34 +00:00
committed by GitHub
parent b6ff4ff16c
commit e5575d6042
10 changed files with 2 additions and 170 deletions
@@ -495,41 +495,6 @@ func TestLabelPolicyProjection_reduces(t *testing.T) {
},
},
},
{
name: "org reduceAssetsRemoved",
args: args{
event: getEvent(
testEvent(
org.LabelPolicyAssetsRemovedEventType,
org.AggregateType,
nil,
), org.LabelPolicyAssetsRemovedEventMapper),
},
reduce: (&labelPolicyProjection{}).reduceAssetsRemoved,
want: wantReduce{
aggregateType: eventstore.AggregateType("org"),
sequence: 15,
executer: &testExecuter{
executions: []execution{
{
expectedStmt: "UPDATE projections.label_policies3 SET (change_date, sequence, light_logo_url, light_icon_url, dark_logo_url, dark_icon_url, font_url) = ($1, $2, $3, $4, $5, $6, $7) WHERE (id = $8) AND (state = $9) AND (instance_id = $10)",
expectedArgs: []interface{}{
anyArg{},
uint64(15),
nil,
nil,
nil,
nil,
nil,
"agg-id",
domain.LabelPolicyStatePreview,
"instance-id",
},
},
},
},
},
},
{
name: "instance reduceAdded",
args: args{
@@ -958,41 +923,6 @@ func TestLabelPolicyProjection_reduces(t *testing.T) {
},
},
},
{
name: "instance reduceAssetsRemoved",
args: args{
event: getEvent(
testEvent(
instance.LabelPolicyAssetsRemovedEventType,
instance.AggregateType,
nil,
), instance.LabelPolicyAssetsRemovedEventMapper),
},
reduce: (&labelPolicyProjection{}).reduceAssetsRemoved,
want: wantReduce{
aggregateType: eventstore.AggregateType("instance"),
sequence: 15,
executer: &testExecuter{
executions: []execution{
{
expectedStmt: "UPDATE projections.label_policies3 SET (change_date, sequence, light_logo_url, light_icon_url, dark_logo_url, dark_icon_url, font_url) = ($1, $2, $3, $4, $5, $6, $7) WHERE (id = $8) AND (state = $9) AND (instance_id = $10)",
expectedArgs: []interface{}{
anyArg{},
uint64(15),
nil,
nil,
nil,
nil,
nil,
"agg-id",
domain.LabelPolicyStatePreview,
"instance-id",
},
},
},
},
},
},
{
name: "org.reduceOwnerRemoved",
reduce: (&labelPolicyProjection{}).reduceOwnerRemoved,