Skip to content

Commit 0b51376

Browse files
committed
UnreachableParent: Don't filter for group states
Since child edges of a group now have state as well, filtering for the group's state is not required anymore.
1 parent e5b499b commit 0b51376

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

library/Icingadb/Model/UnreachableParent.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,7 @@ private static function selectNodes(Connection $db, Model $root): Select
164164
'redundancy_group_id' => 'to.redundancy_group_id',
165165
'is_group_member' => new Expression('urn.redundancy_group_id IS NOT NULL AND urn.level > 0')
166166
]);
167-
$nodeQuery->filter(Filter::any(
168-
Filter::equal('state.failed', 'y'),
169-
Filter::equal('to.redundancy_group.state.failed', 'y')
170-
));
167+
$nodeQuery->filter(Filter::equal('state.failed', 'y'));
171168

172169
$nodeSelect = $nodeQuery->assembleSelect();
173170

0 commit comments

Comments
 (0)