Skip to content

Commit

Permalink
UnreachableParent: Don't filter for group states
Browse files Browse the repository at this point in the history
Since child edges of a group now have state as well,
filtering for the group's state is not required anymore.
  • Loading branch information
nilmerg committed Jan 15, 2025
1 parent a7dac34 commit 2099654
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions library/Icingadb/Model/UnreachableParent.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ private static function selectNodes(Connection $db, Model $root): Select
'redundancy_group_id' => 'to.redundancy_group_id',
'is_group_member' => new Expression('urn.redundancy_group_id IS NOT NULL AND urn.level > 0')
]);
$nodeQuery->filter(Filter::any(
Filter::equal('state.failed', 'y'),
Filter::equal('to.redundancy_group.state.failed', 'y')
));
$nodeQuery->filter(Filter::equal('state.failed', 'y'));

$nodeSelect = $nodeQuery->assembleSelect();

Expand Down

0 comments on commit 2099654

Please sign in to comment.