-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
feat: add FMV column to purchases #4328
feat: add FMV column to purchases #4328
Conversation
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.
Overall looks good, but had one request.
spec/system/purchase_system_spec.rb
Outdated
@@ -47,6 +47,15 @@ | |||
expect(page).to have_text(dollar_value(purchases.sum(&:amount_spent_in_cents))) | |||
expect(page).to have_text(dollar_value(3579)) | |||
end | |||
|
|||
it "user sees FMV column" 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.
Can this be a request spec instead of a system spec? It's a lighter load.
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.
Sure thing. I was following the pattern of the test above. Do you want me to move that one too? Or maybe just add a to-do comment to keep this PR scoped to this change?
7b5cc2b
to
338f791
Compare
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.
Looks good! @cielf did you want to take a look?
I think we can put this forward, and that there should be a couple of follow-on things that I'll write up and get into our backlog -- |
I'd be happy to add the totals |
@sean-dickinson: Your PR |
Resolves #4314
Description
item
of eachline_item
to avoid n+1 issues.vendor
here to theincludes
clause as well as I noticed the n+1 in the logs. This is an unrelated change so if you'd like me to revert that I'd be happy to.Type of change
How Has This Been Tested?
Screenshots
Before
After