-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
base: main
Are you sure you want to change the base?
Conversation
…n of events applied
…n of events applied
openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/EntityRepository.java
Show resolved
Hide resolved
@@ -2786,6 +2802,7 @@ public class EntityUpdater { | |||
protected boolean majorVersionChange = false; | |||
protected final User updatingUser; | |||
private boolean entityChanged = false; | |||
@Getter protected ChangeDescription incrementalChangeDescription = null; |
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.
@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.
Describe your changes:
Fixes #17723
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>