Skip to content

OBPIH-7291 Assign count modal fixes, fix unassigning person for count/recount#5340

Merged
alannadolny merged 5 commits intoft/OBPIH-7287-cycle-count-assignmentfrom
OBPIH-7291
Jun 17, 2025
Merged

OBPIH-7291 Assign count modal fixes, fix unassigning person for count/recount#5340
alannadolny merged 5 commits intoft/OBPIH-7287-cycle-count-assignmentfrom
OBPIH-7291

Conversation

@alannadolny
Copy link
Collaborator

No description provided.

@alannadolny alannadolny self-assigned this Jun 17, 2025
@github-actions github-actions bot added domain: frontend Changes or discussions relating to the frontend UI domain: backend Changes or discussions relating to the backend server labels Jun 17, 2025
@codecov
Copy link

codecov bot commented Jun 17, 2025

Codecov Report

❌ Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.39%. Comparing base (680a522) to head (cad8b2d).

Files with missing lines Patch % Lines
...g/pih/warehouse/inventory/CycleCountService.groovy 0.00% 8 Missing ⚠️
...se/inventory/CycleCountRequestUpdateCommand.groovy 0.00% 7 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Collaborator

@awalkowiak awalkowiak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this "0" be moved to COUNT_INDEX const or something?

cycleCountRequest.countAssignee = countAssignment.assignee
cycleCountRequest.countDeadline = countAssignment.deadline
}
CycleCountAssignmentCommand recountAssignment = command.getAssignmentByCountIndex("1")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this "0" be moved to FIRST_RECOUNT_INDEX or RECOUNT_INDEX const or something?

countDeadline: dateWithoutTimeZone({
date: deadline,
}),
1: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move these keys to const too?

Copy link
Collaborator

@awalkowiak awalkowiak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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

@alannadolny alannadolny merged commit 0d151a3 into ft/OBPIH-7287-cycle-count-assignment Jun 17, 2025
7 checks passed
@alannadolny alannadolny deleted the OBPIH-7291 branch June 17, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: backend Changes or discussions relating to the backend server domain: frontend Changes or discussions relating to the frontend UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants