-
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
B-21378: Introduce iUB RDD Transit Calculation #14563
B-21378: Introduce iUB RDD Transit Calculation #14563
Conversation
Conflicts |
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.
Does not appear to function for Prime V3 path updateMTOShipment
API call via postman. RDD is only calculated on UpdateMTOShipmentStatus
service, which is not called by UpdateMTOShipment
within mto_shipment_updater.go
An error should also likely return if RDD can't be calculated for the RDD
Endpoint http://primelocal:3000/prime/v3/mto-shipments/:mtoShipmentID
Shipment ID being a UB shipment
{
"scheduledDeliveryDate": "2025-01-20"
}
@cameroncaci additional tests added. Went through with the debugger and those lines are hit by tests. |
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.
You have a failing server test
@danieljordan-caci Fixed |
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.
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.
oh wait, retract that approval - I see you have failing tests still
Agility ticket
Summary
In this PR the goal was to make sure the Required Delivery Date on a UB shipment is populated. To populate the field there are some requirements.
Required delivery date for a UB shipment is made using the following formula:
rdd = (scheduledPickupDate + 1 day) + re_intl_transit_times.ub_transit_time
Then that rdd value is applied to the UB shipment
Is there anything you would like reviewers to give additional scrutiny?
this article explains more about the approach used.
Verification Steps for the Author
These are to be checked by the author.
Verification Steps for Reviewers
These are to be checked by a reviewer.
Setup to Run the Code
How to test
*Note: There may not be a re_intl_transit_times record with a origin_rate_area_id and a destination_rate_area_id that both exists in re_oconus_rate_areas.
In that case you will have to edit an intl_transit_time_record in the DB to have an origin and destination rate area id that does exist in the re_oconus_rate_areas table.
select *
from re_intl_transit_times
where origin_rate_area_id in (select rate_area_id from re_oconus_rate_areas)
and destination_rate_area_id in (select rate_area_id from re_oconus_rate_areas)
Frontend
officeApp
class or custommin-width
styling is used to hide any states the would not be visible to the user.Backend
Database
Any new migrations/schema changes:
Screenshots