-
Notifications
You must be signed in to change notification settings - Fork 35
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
INT B-22169 #14534
INT B-22169 #14534
Conversation
…ges for international shipments
…history forgottens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works as described, seeing the expected different blurbs for a domestic vs international address change request
This BL should also fix the issue described here, added a comment noting that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functional, meets AC. Identified bugs but are not relevant to this backlog item.
First bug: notification counter not updating properly
https://github.com/user-attachments/assets/4d6d0676-43eb-42cb-a78e-d0804de61f28
Second bug: prime can create oconus addresses without a USPRC FK and thus no rate area. This leads to this backlog item encountering a breaking error
2025-01-09T17:54:57.127Z ERROR ghcapi/mto_shipment.go:1036 ghcapi.ReviewShipmentAddressUpdateHandler {"git_branch": "INT-B-22169", "git_commit": "7055ac68700ff7970eb5031dcb4accc2648f5e15", "host": "officelocal:3000", "milmove_trace_id": "b92313d1-0135-4f78-893d-fe81190c587a", "session_id": "tHx8rNupAZa8eDdC1xx34ahWyDLecMG7LPqPkGBX7dI", "error": "error updating estimated pricing for shipment's service items: pq: Rate area not found for address 387ade30-7eae-4495-9a6c-e16aec6f8f4b for service item ID 56e91c2d-015d-4243-9657-3ed34867abaa"}
github.com/transcom/mymove/pkg/handlers/ghcapi.(*ReviewShipmentAddressUpdateHandler).Handle.ReviewShipmentAddressUpdateHandler.Handle.func1.1
/Users/cameron.jewell_cn/Projects/mymove/pkg/handlers/ghcapi/mto_shipment.go:1036
github.com/transcom/mymove/pkg/handlers/ghcapi.(*ReviewShipmentAddressUpdateHandler).Handle.ReviewShipmentAddressUpdateHandler.Handle.func1
/Users/cameron.jewell_cn/Projects/mymove/pkg/handlers/ghcapi/mto_shipment.go:1062
github.com/transcom/mymove/pkg/handlers.(*Config).AuditableAppContextFromRequestWithErrors.func1
/Users/cameron.jewell_cn/Projects/mymove/pkg/handlers/config.go:152
Coming from payload
{
"contractorRemarks": "New address",
"newAddress": {
"streetAddress1": "Storage Facility",
"city": "Allakaket",
"state": "AK",
"postalCode": "99720",
"country": "US",
"county": "Yukon-Koyukuk",
"isOconus": true,
"destinationGbloc": "NVBJ"
}
}
on endpoint prime/v1/mto-shipments/:mtoShipmentID/hipment-address-updates
This falls under E-06198
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awaiting feedback from scrum master before approving
https://caci-bits.slack.com/archives/C060PJCD1BQ/p1736447118261759
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small issue regarding something missing from storybook. About to run testing instructions, if they go well and this is resolved then I'll be good to approve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might have another issue, though I'm not sure if it was introduced here or not. When I denied a destination address change request as the TOO, it showed in the H&AL as "Status: Approved" with no address update.
Edit: For reference, both of the below entries were denied destination address update requests.
"added move history objects for reviewing address updates" - After checking on main, these were introduced here so this issue is definitely coming from this, unfortunately
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...tants/MoveHistory/EventTemplates/ReviewShipmentAddressUpdate/reviewShipmentAddressUpdate.jsx
Outdated
Show resolved
Hide resolved
edcd335
Happo diffs accepted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
migrations/app/schema/20250110153428_add_shipment_address_updates_to_move_history.up.sql
Outdated
Show resolved
Hide resolved
pkg/services/shipment_address_update/shipment_address_update_requester.go
Outdated
Show resolved
Hide resolved
ac981ee
Re-requesting review from @antgmann, @cameroncaci, and @brianmanley-caci following small code change regarding reusable variables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried a few different scenarios (intl, domestic, same zip) and everything worked as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@antgmann can I get a Happo check? |
@antgmann beat me to it nvm haha |
Agility ticket
Summary
We need to consider OCONUS rate area changed when requesting shipment destination address requests. This is a different process than CONUS because we use different sources of truth (
re_oconus_rate_areas
).I also noticed that there was some move history blanks and am addressing those in this PR.
This PR does the following:
serviceID
can be null when getting rate areas with the db func, adjusted thatshipment_address_update_requester.go
that checks for rate area changes for OCONUS/CONUS addressesAddressUpdatePreview.jsx
with international blurbs to be more accurate in informing the TOO when reviewing destination requests for international shipmentsShipmentForm
when the TOO approves the request, previously there was an issue with it not updating if the radio button was checked toNo
How to test
Screenshots