OBPIH-7291 Assign count modal fixes, fix unassigning person for count/recount#5340
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## ft/OBPIH-7287-cycle-count-assignment #5340 +/- ##
=========================================================================
- Coverage 8.39% 8.39% -0.01%
Complexity 1016 1016
=========================================================================
Files 661 661
Lines 43996 44000 +4
Branches 10641 10642 +1
=========================================================================
Hits 3693 3693
- Misses 39735 39739 +4
Partials 568 568 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
awalkowiak
left a comment
There was a problem hiding this comment.
Overall looks good to me, I have just minor change request
| cycleCountRequest.countDeadline = command.countDeadline | ||
| cycleCountRequest.recountAssignee = command.recountAssignee | ||
| cycleCountRequest.recountDeadline = command.recountDeadline | ||
| CycleCountAssignmentCommand countAssignment = command.getAssignmentByCountIndex("0") |
There was a problem hiding this comment.
Could this "0" be moved to COUNT_INDEX const or something?
| cycleCountRequest.countAssignee = countAssignment.assignee | ||
| cycleCountRequest.countDeadline = countAssignment.deadline | ||
| } | ||
| CycleCountAssignmentCommand recountAssignment = command.getAssignmentByCountIndex("1") |
There was a problem hiding this comment.
Could this "0" be moved to FIRST_RECOUNT_INDEX or RECOUNT_INDEX const or something?
| countDeadline: dateWithoutTimeZone({ | ||
| date: deadline, | ||
| }), | ||
| 1: { |
There was a problem hiding this comment.
Can we move these keys to const too?
There was a problem hiding this comment.
@alannadolny Just one additional question - is there a way to clear the assignee? Looks like once it is set it cannot be cleared from cycle count request, only changed. Is that correct? NVM, I see it now
0d151a3
into
ft/OBPIH-7287-cycle-count-assignment
No description provided.