Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

B 22764 int #14921

Open
wants to merge 36 commits into
base: integrationTesting
Choose a base branch
from
Open

B 22764 int #14921

wants to merge 36 commits into from

Conversation

loganwc
Copy link
Contributor

@loganwc loganwc commented Feb 28, 2025

Agility ticket

Summary

This fixes two bugs, first bulk assignment modal no longer displays users who had that respective role deleted.
Second fix is when a services counselor is assigned to a move and their role is deleted they will still be visible in the dropdown until someone else is assigned.

How to test

  1. Create two SC office users with 1 having supervisor privileges (same office)
  2. Access the office app as the non supervisor
  3. Assign yourself to a move
  4. Remove SC role from office user (admin app or populate the deleted_at field in the users_roles table`
  5. Login as the supervisor
  6. other office user will still display in dropdown (1st fix)
  7. unassign that office user
  8. open bulk assignment modal
  9. verify other office user isn't in the modal (2nd fix)

r-mettler and others added 30 commits February 21, 2025 16:55
B-22227 Prime API address validation
…uthorized-to-orders-page

MAIN - B-22300 - add dependents authorized to orders page
@loganwc loganwc added G-Unit Scrum Team G INTEGRATION Slated for Integration Testing labels Feb 28, 2025
@loganwc loganwc self-assigned this Feb 28, 2025
@loganwc loganwc requested a review from a team as a code owner February 28, 2025 02:18
if !userFound {
availableOfficeUsers = append(availableOfficeUsers, *move.TOOAssignedUser)

if assignedUser != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

does it make more sense to move this check back to 2409 and skip this block entirely if there is no assigned user?

@@ -139,7 +139,10 @@ func (o *officeUserFetcherPop) FetchOfficeUsersWithWorkloadByRoleAndOffice(appCt
office_users.last_name,
COUNT(DISTINCT moves.id) AS workload
FROM office_users
JOIN users_roles ON office_users.user_id = users_roles.user_id
JOIN users_roles
ON (
Copy link
Contributor

Choose a reason for hiding this comment

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

any reason for parens here? I think I'd prefer

JOIN users_roles
    ON office_users.user_id = users_roles.user_id 
    AND users_roles.deleted_at IS NULL

but not sure there is a difference performance wise and maybe its just a style thing... won't block for this 🙃

@paulstonebraker
Copy link
Contributor

not sure why but test passes with deleted stuff commented out on my local
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
G-Unit Scrum Team G INTEGRATION Slated for Integration Testing
Development

Successfully merging this pull request may close these issues.

9 participants