Slide 62
Slide 62 text
GPSDPNQSFIFOTJPOΛ͏
-JTU
0QUJPO
'VUVSFͳͲ
flatMap
map
withFilterΛ࣮͍ͯ͠Δ
for {
:
allProjects <- projectRepository.allRelatedProjectsOrderRecent(ctx.user.id)
userCount <- userRepository.countUsersOfSpace(ctx.space.id)
allProjectIds = allProjects.map(_.id)
myPullRequests <- pullRequestRepository.allMyRequest(user.id, allProjectIds)
activities <- projectActivityRepository.allGroupedActivitiesOfSpace
(allProjectIds, activityTypes, pagination)
:
} yield DashboardContents(
:
allProjects = allProjects,
userCount = userCount,
myPullRequests = myPullRequests,
activities = activities,
:
)
}