Skip to content

Commit

Permalink
ORG-1244: Endret tilbake til bare Aktive medlemmer, etter dialog med …
Browse files Browse the repository at this point in the history
…Line.
  • Loading branch information
hamkel committed Jun 25, 2024
1 parent f393aad commit 583d5bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private List<Member> getForProductArea(UUID id, List<ProductArea> pas, List<Clus
ProductArea productArea = productAreaService.get(id);
return Stream.concat(Stream.concat(
mapPaMembers(List.of(productArea)),
mapTeamMembers(teamService.findByProductArea(id).stream().filter(team -> !team.getStatus().isInactive()).toList(), pas, clusters))
mapTeamMembers(teamService.findByProductArea(id).stream().filter(team -> team.getStatus().isActive()).toList(), pas, clusters))
, mapClusterMembers(filter(clusters, cl -> productArea.getId().equals(cl.getProductAreaId())), pas)
).collect(toList());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static List<DomainObjectStatus> fromQueryParameter(String statusQueryPara
return procesedStrList.stream().map(DomainObjectStatus::valueOf).toList();
}

public boolean isInactive() {
return this == INACTIVE;
public boolean isActive() {
return this == ACTIVE;
}
}

0 comments on commit 583d5bd

Please sign in to comment.