Skip to content

Commit

Permalink
feat: exclude standards with a group name from automatic population
Browse files Browse the repository at this point in the history
OCD-4408
  • Loading branch information
Todd Young committed Dec 6, 2023
1 parent 156dca6 commit 994ac5c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ private List<Standard> getValidStandardsForCriteriaAndListing(CertificationCrite
List<StandardCriteriaMap> maps = standardDao.getAllStandardCriteriaMap();
maps.removeIf(map -> !map.getCriterion().getId().equals(criterion.getId()));
return maps.stream()
.filter(map -> map.getStandard().getEndDay() == null
||map.getStandard().getEndDay().isAfter(certificationDate))
.filter(map -> map.getStandard().getGroupName() == null
&& (map.getStandard().getEndDay() == null
|| map.getStandard().getEndDay().isAfter(certificationDate)))
.map(map -> map.getStandard())
.toList();

Expand Down

0 comments on commit 994ac5c

Please sign in to comment.