Skip to content

Commit

Permalink
Merge pull request eclipse-tractusx#1163 from eclipse-tractusx/featur…
Browse files Browse the repository at this point in the history
…e/xxx-fix-notification-description

feature(chore):xxx - fixed notification description.
  • Loading branch information
ds-mmaul authored Jul 4, 2024
2 parents 6be3b1c + 52aa1f7 commit c8000f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ _**For better traceability add the corresponding GitHub issue number in each cha
- #786 Introduced internal url for notification contracts.
- #994 improved bpn edc configuration view uux
- #1082 fix update of parts when synchronizing with IRS
- #xxx fixed notification description on receiver side
- #875 owasp dependency check tool is now used from github action image instead of maven plugin
- XXX fixed display of semantic data model in parts as planned table

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.eclipse.tractusx.traceability.notification.domain.base.model.Notification;
import org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationAffectedPart;
import org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationMessage;
import org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationStatus;

import java.util.List;

Expand All @@ -48,8 +49,14 @@ public static EDCNotification createEdcNotification(String senderEDC, Notificati
notificationMessage.getMessageId()
);

String message = null;
if (notification.getNotificationStatus() != null && notification.getNotificationStatus().equals(NotificationStatus.SENT)){
message = notification.getDescription();
} else{
message = notificationMessage.getMessage();
}
EDCNotificationContent content = new EDCNotificationContent(
notificationMessage.getMessage(),
message,
extractAssetIds(notificationMessage)
);

Expand Down

0 comments on commit c8000f2

Please sign in to comment.