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

Fix #17723: Generate Incremental Change Events even when consolidation of events applied #19550

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

harshach
Copy link
Collaborator

Describe your changes:

Fixes #17723

I worked on ... because ...

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

@@ -2786,6 +2802,7 @@ public class EntityUpdater {
protected boolean majorVersionChange = false;
protected final User updatingUser;
private boolean entityChanged = false;
@Getter protected ChangeDescription incrementalChangeDescription = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

@harshach we will need to introduce the same 'incrementalChangeDescription' field in EntityInterface also

ChangeDescription getIncrementalChangeDescription(); and
void setIncrementalChangeDescription(ChangeDescription incrementalChangeDescription);

this is because when we are making a call to postUpdate and updating the search, we are using

if (entity.getChangeDescription() != null && Objects.equals(entity.getVersion(), entity.getChangeDescription().getPreviousVersion())) {

this needs to be replaced with incrementalChangeDescription as we have removed the consolidated changes for parent.

before making the same changes in pr, i want to confirm if we can go ahead and implement the same in EntityInterface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend safe to test Add this label to run secure Github workflows on PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate Incremental Change Events even when consolidation of events applied
3 participants