Skip to content

Commit

Permalink
HasProblematicParent: Remove redundant filter on redundancy_group_sta…
Browse files Browse the repository at this point in the history
…te.failed column
  • Loading branch information
raviks789 committed Oct 30, 2024
1 parent baa46d7 commit e3a68ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions library/Icingadb/Model/Behavior/HasProblematicParent.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ public function rewriteColumn($column, ?string $relation = null): ?AliasedExpres
->columns([new Expression('1')])
->utilize('from')
->limit(1)
->filter(Filter::any(
Filter::equal('to.redundancy_group.state.failed', 'y'),
Filter::equal('dependency.state.failed', 'y')
));
->filter(Filter::equal('dependency.state.failed', 'y'));

$subQueryResolver = $subQuery->getResolver()->setAliasPrefix('hpp_');
$subQueryTarget = $subQueryResolver->resolveRelation($subQueryModel->getTableName() . '.from')->getTarget();
Expand Down

0 comments on commit e3a68ec

Please sign in to comment.