Skip to content

Commit

Permalink
fixed Shesmu case status prematurely marked complete (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
djcooke authored Feb 28, 2024
1 parent 77939ec commit 10454c2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ private int getRefreshFailures() {
private CaseStatus getCaseStatus(Case kase) {
if (kase.isStopped()) {
return CaseStatus.STOPPED;
} else if (kase.getDeliverables().stream().anyMatch(
deliverable -> deliverable.getReleases().stream().anyMatch(CaseRelease::getQcPassed))) {
} else if (!kase.getDeliverables().isEmpty() && kase.getDeliverables().stream()
.allMatch(deliverable -> deliverable.getReleases().stream()
.allMatch(release -> Boolean.TRUE.equals(release.getQcPassed())))) {
return CaseStatus.COMPLETED;
} else {
return CaseStatus.ACTIVE;
Expand Down

0 comments on commit 10454c2

Please sign in to comment.