Skip to content

Commit

Permalink
add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
bseber committed May 21, 2023
1 parent 13307a7 commit 87edffa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public Map<UserLocalId, OvertimeDuration> accumulatedOvertimeToDate(LocalDate da
final Map<String, UserLocalId> localIdById = userManagementService.findAllUsersByLocalIds(userLocalIds).stream()
.collect(toMap(user -> user.id().value(), User::localId));

final Map<String, List<TimeEntryBreakEntityView>> byUserIdValue = overtimeRepository.getWorkDurationsToDate(false, localIdById.keySet(), dateExclusive)
// TODO create overtime snapshots (e.g. every month) so we don't have to read/calculate the whole past...
// workDuration has to be considered with plannedWorkingHours to calculate the overtimeDuration. otherwise it's just... the actual worked hours...
final Map<String, List<TimeEntryEntityDurationView>> byUserIdValue = overtimeRepository.getWorkDurationsToDate(false, localIdById.keySet(), dateExclusive)
.stream()
.collect(groupingBy(TimeEntryEntityDurationView::getUserId));
Expand Down

0 comments on commit 87edffa

Please sign in to comment.