Skip to content
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

OrderContents: Initialize line item with empty adjustments #4286

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Feb 28, 2022

If we do not explicitly add an empty array here, a subsequent call to
line_item.adjustments will trigger an unnecessary DB hit.

Checklist:

If we do not explicitly add an empty array here, a subsequent call to
`line_item.adjustments` will trigger an unnecessary DB hit.
@mamhoff
Copy link
Contributor Author

mamhoff commented Feb 28, 2022

I think the failing spec is spurious and not related. Can an admin please trigger a rebuild?

@tvdeyen
Copy link
Member

tvdeyen commented Feb 28, 2022

@mamhoff Thanks! triggered a re-run

Copy link
Member

@jarednorman jarednorman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loving all these optimizations.

@tvdeyen tvdeyen merged commit f786b62 into solidusio:master Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants