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

Promotion Rule CreateItemAdjustments: Use in-memory objects #4285

Merged

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Feb 28, 2022

This changes the function that obtains the line items of an order to
create adjustments for to use in-memory objects rather than querying the
database for line items that have no adjustments with a source from the
current rule.

Promotion rules can easily be preloaded, and there's no need for the DB
call in the previous code.

Checklist:

This changes the function that obtains the line items of an order to
create adjustments for to use in-memory objects rather than querying the
database for line items that have no adjustments with a source from the
current rule.

Promotion rules can easily be preloaded, and there's no need for the DB
call in the previous code.
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Thanks

@waiting-for-dev waiting-for-dev merged commit 592bd68 into solidusio:master Mar 7, 2022
@mamhoff mamhoff deleted the faster-create-item-adjustments branch March 7, 2022 09:35
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.

4 participants