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-21350-INT Bulk assignment modal equal assignment button #14840

Merged
merged 35 commits into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
4b5ad20
Merge branch main into B-21350-MAIN2
paulstonebraker Feb 20, 2025
0917f7f
add equal assignment button to bulk assignment modal
paulstonebraker Feb 20, 2025
cc8edc1
Merge branch B-21350-MAIN2 into B-21350-INT
paulstonebraker Feb 20, 2025
07e23ea
Merge branch 'main' into B-21350-MAIN2
paulstonebraker Feb 20, 2025
314f9d9
code cleanup for bulk assignment
paulstonebraker Feb 21, 2025
0721107
Merge branch 'main' into B-21350-MAIN2
paulstonebraker Feb 21, 2025
f34a3e0
Merge branch B-21348-Bulk-Assignment-Save into B-21350-MAIN2
paulstonebraker Feb 24, 2025
90f8039
Merge branch B-21350-MAIN2 into B-21350-INT
paulstonebraker Feb 24, 2025
9813048
Merge branch integrationTesting into B-21350-INT
paulstonebraker Feb 24, 2025
d568687
fix typo in bulk assignment modal
paulstonebraker Feb 24, 2025
02d3fe6
Merge branch 'B-21350-MAIN2' into B-21350-INT
paulstonebraker Feb 24, 2025
9002180
update bulk assignment modal test
paulstonebraker Feb 24, 2025
23d281d
Merge branch 'B-21350-MAIN2' into B-21350-INT
paulstonebraker Feb 24, 2025
0e3e1c1
update bulk assignment move history test to reflect changes on main
paulstonebraker Feb 24, 2025
c0b23e9
add test case that was lost in merge
paulstonebraker Feb 24, 2025
915e9a2
Merge branch integrationTesting into B-21350-INT
paulstonebraker Feb 24, 2025
dc4654b
Merge branch 'integrationTesting' into B-21350-INT
paulstonebraker Feb 24, 2025
a22ec0a
Merge branch 'integrationTesting' into B-21350-INT
paulstonebraker Feb 25, 2025
7bf34dc
Merge branch main into B-21350-MAIN2
paulstonebraker Feb 26, 2025
0194ed9
add last name, first name order by for office user fetcher
paulstonebraker Feb 26, 2025
9d7a35f
Merge branch integrationTesting into B-21350-INT
paulstonebraker Feb 26, 2025
261381e
Merge branch B-21350-MAIN2 into B-21350-INT
paulstonebraker Feb 26, 2025
5081a7d
Merge branch 'integrationTesting' into B-21350-INT
paulstonebraker Feb 27, 2025
28c56e0
apply stashed changes for cancel and error fixes, test updates
paulstonebraker Feb 28, 2025
d48df35
merge integrationTesting
paulstonebraker Feb 28, 2025
4357eca
Merge branch 'integrationTesting' into B-21350-INT
paulstonebraker Mar 2, 2025
7ba091c
update css for storybook
paulstonebraker Mar 2, 2025
89b0bc7
Merge branch 'integrationTesting' into B-21350-INT
paulstonebraker Mar 3, 2025
8675ca6
Merge branch 'integrationTesting' into B-21350-INT
paulstonebraker Mar 3, 2025
aa42788
Merge branch 'integrationTesting' into B-21350-INT
paulstonebraker Mar 3, 2025
5f86694
Merge branch 'integrationTesting' into B-21350-INT
paulstonebraker Mar 4, 2025
6fc2928
Merge branch 'integrationTesting' into B-21350-INT
paulstonebraker Mar 4, 2025
88630f6
Merge branch 'integrationTesting' into B-21350-INT
paulstonebraker Mar 4, 2025
971f12a
Merge branch 'integrationTesting' into B-21350-INT
paulstonebraker Mar 5, 2025
3c69d26
Merge branch 'integrationTesting' into B-21350-INT
paulstonebraker Mar 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/handlers/primeapiv2/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ func NewPrimeAPI(handlerConfig handlers.HandlerConfig) *primev2operations.Mymove
primeAPIV2.MtoShipmentUpdateMTOShipmentHandler = UpdateMTOShipmentHandler{
handlerConfig,
shipmentUpdater,
handlerConfig.DTODPlanner(),
vLocation,
handlerConfig.DTODPlanner(),
}

return primeAPIV2
Expand Down
2 changes: 1 addition & 1 deletion pkg/handlers/primeapiv2/mto_shipment.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ func (h CreateMTOShipmentHandler) Handle(params mtoshipmentops.CreateMTOShipment
type UpdateMTOShipmentHandler struct {
handlers.HandlerConfig
services.ShipmentUpdater
planner route.Planner
services.VLocation
planner route.Planner
}

// Handle handler that updates a mto shipment
Expand Down
2 changes: 1 addition & 1 deletion pkg/models/move.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ type Move struct {
TOODestinationAssignedUser *OfficeUser `json:"too_destination_assigned" belongs_to:"office_users" fk_id:"too_destination_assigned_id"`
CounselingOfficeID *uuid.UUID `json:"counseling_transportation_office_id" db:"counseling_transportation_office_id"`
CounselingOffice *TransportationOffice `json:"counseling_transportation_office" belongs_to:"transportation_offices" fk_id:"counseling_transportation_office_id"`
PrimeAcknowledgedAt *time.Time `db:"prime_acknowledged_at"`
PrimeAcknowledgedAt *time.Time `db:"prime_acknowledged_at"`
}

type MoveWithEarliestDate struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/models/mto_shipments.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ type MTOShipment struct {
DestinationSITAuthEndDate *time.Time `json:"destination_sit_auth_end_date" db:"dest_sit_auth_end_date"`
MobileHome *MobileHome `json:"mobile_home" has_one:"mobile_home" fk_id:"shipment_id"`
MarketCode MarketCode `json:"market_code" db:"market_code"`
PrimeAcknowledgedAt *time.Time `db:"prime_acknowledged_at"`
PrimeAcknowledgedAt *time.Time `db:"prime_acknowledged_at"`
}

// TableName overrides the table name used by Pop.
Expand Down
2 changes: 2 additions & 0 deletions pkg/services/office_user/office_user_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func (o *officeUserFetcherPop) FetchOfficeUsersByRoleAndOffice(appCtx appcontext
Where("users_roles.deleted_at IS NULL").
Where("office_users.active = TRUE").
Order("last_name asc").
Order("first_name asc").
All(&officeUsers)

if err != nil {
Expand Down Expand Up @@ -120,6 +121,7 @@ func (o *officeUserFetcherPop) FetchSafetyMoveOfficeUsersByRoleAndOffice(appCtx
Where("users_privileges.deleted_at IS NULL").
Where("privileges.privilege_type = 'safety'").
Order("last_name asc").
Order("first_name asc").
All(&officeUsers)

if err != nil {
Expand Down
Loading
Loading