-
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-20229 refactor fuel pricer #12974
B-20229 refactor fuel pricer #12974
Conversation
scripts/run-server-test
Outdated
fi | ||
#gotest_args+=("-ldflags=-extldflags=-Wl,-ld_classic") | ||
|
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.
Could we comment why this is commented?
https://caci-bits.slack.com/archives/C05DX3AG6EL/p1717687099941339
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.
ill add more to the line- but in short-
our (Mac) build is broken for the go linker on the go version we are using- this forces the use of the older linker
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/20240604203456_add_effective_expiraton_date_ghc_fuel.up.sql
Outdated
Show resolved
Hide resolved
migrations/app/schema/20240604203456_add_effective_expiraton_date_ghc_fuel.up.sql
Outdated
Show resolved
Hide resolved
migrations/app/schema/20240604203456_add_effective_expiraton_date_ghc_fuel.up.sql
Show resolved
Hide resolved
pkg/payment_request/service_param_value_lookups/eia_fuel_price_lookup.go
Outdated
Show resolved
Hide resolved
pkg/payment_request/service_param_value_lookups/eia_fuel_price_lookup.go
Outdated
Show resolved
Hide resolved
pkg/services/ghcdieselfuelprice/ghc_diesel_fuel_price_storer.go
Outdated
Show resolved
Hide resolved
I ran through the same scenario and do not get this error. |
I had a pickup date 2 days after the latest ghc_diesel_fuel_prices. So my pick-up date was 06-12-2024 and in the DB the latest record had an effective date of 2024-06-04 and an end date of 2024-06-10. This records fuel_price_in_milicents was selected even though the pick up date was after its end date. It looks like in this case it picked the latest. Is that expected? Also how do we get these updated prices? If June 12th is 2 days from now but there is no ghc_diesel_fuel_prices with that date in its range what is that a likely situation and what do we expect to happen in that case? |
Yes- this is what it should do- |
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 locally and seems good to go. You have some failing tests, but I'd bet they're flaky.
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 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.
Replicated your results locally, looks good!
B-20229
Summary
Update FRA weekly effective period
Background
the app pulls the diesel prices every day looking for newly published prices
EIA publishes new prices generally every Monday, before this change they would just be effective until the next publication.
This change makes it so that when new diesel prices are published they are only valid from tueday( or the day after they are published0 through the following Monday
to test
make tasks_save_ghc_fuel_price_data
to get the latest pricing data for your test