-
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
MAIN B-21702 #14528
MAIN B-21702 #14528
Conversation
…cing needs to be updated
… zip distance looker upper please save me lord
Bundle StatsHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded
Removed
Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
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.
Approving. All commits in Int PRS are in this one.
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.
Seeing some diffs between lines changed in between this PR and the INT - would there be a missing upstream or something? I don't see those lines like serviceAreaPriceDUPK :=
and serviceAreaPriceDPK :=
in main already pkg/services/mto_service_item/mto_service_item_creator_test.go
Not a missing upstream, but G-Unit has a |
Which I'll ping @loganwc here about since he will need to update those functions with my changes when this gets merged |
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.
This block belongs to @CoryKleinjanCACI and his B-21464
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.
Found 4 diffs, the one Maria pointed out is the most impactful
---break---
fixing headache failing tests after db truncate changes
Main
489de36
Int
38f2c58
pkg/services/mto_service_item/mto_service_item_creator_test.go has file changes in int but not main. This is just a test file change, does not impact production
---break---
Diff between 1d3144f and b64bd5f is based on function calls needing the parameter, int has more of these function calls hence the diff. I don’t like this diff, but it will not impact a production deployment. Upstream wasn’t set properly
diff <(git show --stat 1d3144f4bc39b240a3a3db95a9019d073da42fb0) <(git show --stat b64bd5f80b6119f8d388096a85191096cab3d322)
File in question mto_service_item_updater_test.go
---break---
adding test for shipment address updates on intl shipments
diff <(git show --stat f0ed4c7ec7fb725aae8582086109f0cb4997867d) <(git show --stat cacd86d2fcda4071889f8a0392ab08743e141206)
Maria pointed it out cacd86d#r1907507796
---break---
updated migration, all tests with added parameter for zip distance calculation
diff <(git show --stat 1d3144f4bc39b240a3a3db95a9019d073da42fb0) <(git show --stat b64bd5f80b6119f8d388096a85191096cab3d322)
Same thing as 1d3144f and b64bd5f, func calls and 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.
If the two files and their changes are being covered by @loganwc for pkg/services/mto_service_item/mto_service_item_creator_test.go
and @CoryKleinjanCACI for pkg/services/shipment_address_update/shipment_address_update_requester.go
- I am good with this and didn't have concerns for the other files
@CoryKleinjanCACI & @loganwc please read up & be aware of code changes that will be required in your |
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.
Diffs covered under #14528 (comment)
INT PR 1
INT PR 2
Agility ticket
SECOND NOTE
Please test these carefully & thoroughly
Summary
When we order basic iHHG service items, we also want the ability to see the estimated price when we have the estimated weight on the shipment. In order to do this, the UI has to allow the estimated price section show for iHHG service items AND we have to populate the
pricing_estimate
data any time that pertinent data is provided and/or changed.This PR contains a buttload of file changes because I changed the
db-truncate
to stop deleting static data we use for pricing & other additional params. This required the creation of a couple factories, and many many many changes in test data because now we are using data pulled from the db instead of data created within tests & then saved to the test db.In a nutshell, we want to calculate estimated pricing & display that estimated pricing when the following things happen:
Some stickler details we need to ensure we have:
poe_location
orpod_location
forPOEFSC
orPODFSC
basic service itemsshipment.prime_estimated_weight
addresses.us_post_region_cities_id
Without the above details, pricing ain't gonna happen.
Some additional things happening in this PR with migrations:
get_zip_code
function to not return an error, this was causing unnecessary errors when we didn't have the port location stuff yetget_rate_area_id
function to take in thecontract_id
- this is useful when there are multiple contractsget_port_location_info_for_shipment
function that will return the port ZIP associated with the shipment as well as if it is aPOEFSC
orPODFSC
get_rate_area_id
as well as taking in amileage
value that we are getting from DTOD prior to the pricing func being called - this is a business requirement and AC on the featureHow to test
iHHG
shipment (don't approve yet) - do that however you wish, but please keep in mind we do not have total coverage on CONUS -> AK OCONUS ZIP codes (I have had good luck with ZIPs of major bases and the998
ZIPpricing_estimate
value on any of the service itemspricing_estimate
value on the service items - this is because we need the mileage from/to the port and since we don't have apoe_location_id
orpod_location_id
on thePOEFSC
/PODFSC
service itemeTag
for the fuel surcharge service item (Prime v3getMoveTaskOrder
) & the service itemid
- swagger UI makes it easyeTag
pricing_estimate
values on all the basic service itemsPODFSC
- which areOCONUS
->CONUS
shipmentsghc_diesel_fuel_prices
is lower than $2.50 so a lot of the times I get a negative value for that. You could update the last row in that table to be something greater (say400,000
instead of243,300
and that value will be positive. You can also runmake tasks_save_ghc_fuel_price_data
to try and get updated values imported into your dev db.Agility ticket
Issue agility
Previous INT PR
Summary
During testing Dan Schuster decided that he'd rather see the estimated pricing on all the iHHG basic service items even when we don't have the port data so making some adjustments here to allow that to happen.
This PR does the following:
How to test