In order to be able to change their captains, see their activity, etc...
🪜STEPS TO FOLLOW
[x] Step 1: Create new entity LastActivitiesEntity in entities folder : "_yaki_admin_backend/src/main/java/com/xpeho/yaki_adminbackend/domain/entities" that contain two attributes : teamId and lastDeclaration
[x] Step 2: Create new method getLastActivitiesByCustomerId in DeclarationJpaRepository : "_yaki_admin_backend/src/main/java/com/xpeho/yaki_adminbackend/data/sources/DeclarationJpaRepository"
[x] Step 3: Create new method getLastActivities in StatisticsService : "_yaki_admin_backend/src/main/java/com/xpeho/yaki_adminbackend/domain/services/StatisticsService"
[x] Step 4: Implement new method getLastActivities in StatisticsServiceImpl : "_yaki_admin_backend/src/main/java/com/xpeho/yaki_adminbackend/data/services/StatisticsServiceImpl" returning a list of LastActivityEntity using getLastActivitiesByCustomerId method of the DeclarationJpaRepository
[x] Step 5: Add GetMapping for /last-activities in StatisticsController : "_yaki_admin_backend/src/main/java/com/xpeho/yaki_adminbackend/presentation/controllers/StatisticsController" with queryParams ?customerId to return the list of LastActivitiesEntity got using getLastActivities method of StatisticsService
✅ACCEPTANCE CRITERIA
⛔We are able to get the last activity for each team of a customer
🗒️NOTES
🏁PREREQUISITES
📜CONTEXT (User Story)
As a customer
I want to manage the teams linked to my company
In order to be able to change their captains, see their activity, etc...
🪜STEPS TO FOLLOW
✅ACCEPTANCE CRITERIA
📛BLOCKERS
🔍AFFECTED COMPONENT(S) (Scope)
_yaki_admin_backend/src/main/java/com/xpeho/yaki_admin_backend/domain/entities yaki_admin_backend/src/main/java/com/xpeho/yaki_admin_backend/data/sources/DeclarationJpaRepository yaki_admin_backend/src/main/java/com/xpeho/yaki_admin_backend/domain/services/StatisticsService yaki_admin_backend/src/main/java/com/xpeho/yaki_admin_backend/data/services/StatisticsServiceImpl yaki_admin_backend/src/main/java/com/xpeho/yaki_admin_backend/presentation/controllers/StatisticsController_
⛓️LINK TO OTHER ISSUES
🪟SCREEN SHOTS & MOCKUPS
📋TEST STATUSES
What are the test cases required to validate this issue?
What kind of tests has been put in place to ensure the issue is resolved?