mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-02 06:08:01 +00:00
This commit is contained in:
parent
4cd5c2bea2
commit
c529465c60
@ -124,6 +124,10 @@ public class SlackWebhookEventPublisher extends AbstractEventPublisher {
|
|||||||
String followers = parseFollowers((List<EntityReference>) fieldChange.getNewValue());
|
String followers = parseFollowers((List<EntityReference>) fieldChange.getNewValue());
|
||||||
String entityUrl = getEntityUrl(event);
|
String entityUrl = getEntityUrl(event);
|
||||||
attachment.setText(followers + " started following " + entityUrl);
|
attachment.setText(followers + " started following " + entityUrl);
|
||||||
|
} else if (fieldChange.getName().contains("description")) {
|
||||||
|
title.append("Added description to ");
|
||||||
|
title.append(fieldChange.getName());
|
||||||
|
attachment.setText((String) fieldChange.getNewValue());
|
||||||
}
|
}
|
||||||
attachment.setTitle(title.toString());
|
attachment.setTitle(title.toString());
|
||||||
attachments.add(attachment);
|
attachments.add(attachment);
|
||||||
@ -146,7 +150,8 @@ public class SlackWebhookEventPublisher extends AbstractEventPublisher {
|
|||||||
if (fieldChange.getName().equals("owner")) {
|
if (fieldChange.getName().equals("owner")) {
|
||||||
attachment.setText(parseOwnership((String) fieldChange.getOldValue(), (String) fieldChange.getNewValue()));
|
attachment.setText(parseOwnership((String) fieldChange.getOldValue(), (String) fieldChange.getNewValue()));
|
||||||
} else {
|
} else {
|
||||||
attachment.setText((String) fieldChange.getNewValue());
|
String updatedStr = fieldChange.getOldValue() + " to " + fieldChange.getNewValue();
|
||||||
|
attachment.setText(updatedStr);
|
||||||
}
|
}
|
||||||
attachments.add(attachment);
|
attachments.add(attachment);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user