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

OBPIH-5005 Add option to trigger summary refresh for items and adjust… #3580

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

awalkowiak
Copy link
Collaborator

…ments

Copy link
Member

@jmiranda jmiranda left a comment

Choose a reason for hiding this comment

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

If the answer is yes to my question below, then feel free to merge.

@@ -74,6 +82,8 @@ class OrderItem implements Serializable, Comparable<OrderItem> {
Date dateCreated
Date lastUpdated

Boolean disableRefresh = Boolean.TRUE
Copy link
Member

Choose a reason for hiding this comment

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

We usually set this to be false by default? Are there too many cases where we want to disable it by default?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I think it is better to disable it for items and adjustments by default. Otherwise, every flush on related objects will trigger the afterUpdate for those and if there will be a lot of items, then a lot of duplicated triggers. So I think for now the answer is yes.

@awalkowiak awalkowiak merged commit 38d4438 into release/0.8.20 Oct 26, 2022
@awalkowiak awalkowiak deleted the OBPIH-5005 branch October 26, 2022 15:44
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.

None yet

2 participants