mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-09 01:28:11 +00:00
This commit is contained in:
parent
b8f1491b8f
commit
fe0f9d88e9
@ -91,7 +91,8 @@ public class ChangeEventHandler implements EventHandler {
|
|||||||
if (Entity.shouldDisplayEntityChangeOnFeed(changeEvent.getEntityType())) {
|
if (Entity.shouldDisplayEntityChangeOnFeed(changeEvent.getEntityType())) {
|
||||||
// ignore usageSummary updates in the feed
|
// ignore usageSummary updates in the feed
|
||||||
boolean shouldIgnore = false;
|
boolean shouldIgnore = false;
|
||||||
if (Entity.TABLE.equals(changeEvent.getEntityType()) && changeEvent.getChangeDescription() != null) {
|
if (List.of(Entity.TABLE, Entity.DASHBOARD).contains(changeEvent.getEntityType())
|
||||||
|
&& changeEvent.getChangeDescription() != null) {
|
||||||
List<FieldChange> fields = changeEvent.getChangeDescription().getFieldsUpdated();
|
List<FieldChange> fields = changeEvent.getChangeDescription().getFieldsUpdated();
|
||||||
shouldIgnore = fields.stream().anyMatch(field -> field.getName().equals("usageSummary"));
|
shouldIgnore = fields.stream().anyMatch(field -> field.getName().equals("usageSummary"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user