mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-05 03:54:23 +00:00
Minor : get domain deletion activity feed update (#19961)
This commit is contained in:
parent
3e9a80de18
commit
41b7208108
@ -47,15 +47,18 @@ public class DomainFormatter extends DefaultFieldFormatter {
|
||||
JsonUtils.readOrConvertValue(fieldChange.getOldValue(), EntityReference.class))
|
||||
.withUpdatedDomain(
|
||||
JsonUtils.readOrConvertValue(fieldChange.getNewValue(), EntityReference.class));
|
||||
|
||||
String domainUrl = null;
|
||||
// in case of deletion updated domain will be null
|
||||
if (domainFeedInfo.getUpdatedDomain() != null) {
|
||||
domainUrl =
|
||||
messageDecorator.getEntityUrl(
|
||||
Entity.DOMAIN, domainFeedInfo.getUpdatedDomain().getFullyQualifiedName(), "");
|
||||
}
|
||||
|
||||
FeedInfo feedInfo =
|
||||
new FeedInfo()
|
||||
.withHeaderMessage(
|
||||
getHeaderForOwnerUpdate(
|
||||
operation.value(),
|
||||
messageDecorator.getEntityUrl(
|
||||
Entity.DOMAIN,
|
||||
domainFeedInfo.getUpdatedDomain().getFullyQualifiedName(),
|
||||
"")))
|
||||
.withHeaderMessage(getHeaderForOwnerUpdate(operation.value(), domainUrl))
|
||||
.withFieldName(FIELD_DOMAIN)
|
||||
.withEntitySpecificInfo(domainFeedInfo);
|
||||
populateThreadFeedInfo(thread, threadMessage, Thread.CardStyle.DOMAIN, operation, feedInfo);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user