mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 08:50:18 +00:00
* fix: send websocket notification on incident assignment * style: ran java linting
This commit is contained in:
parent
89b083b6f2
commit
91f930d4c4
@ -40,6 +40,7 @@ import org.openmetadata.service.util.EntityUtil;
|
||||
import org.openmetadata.service.util.JsonUtils;
|
||||
import org.openmetadata.service.util.RestUtil;
|
||||
import org.openmetadata.service.util.ResultList;
|
||||
import org.openmetadata.service.util.WebsocketNotificationHandler;
|
||||
import org.openmetadata.service.util.incidentSeverityClassifier.IncidentSeverityClassifierInterface;
|
||||
|
||||
public class TestCaseResolutionStatusRepository
|
||||
@ -324,6 +325,9 @@ public class TestCaseResolutionStatusRepository
|
||||
.withUpdatedAt(System.currentTimeMillis());
|
||||
FeedRepository feedRepository = Entity.getFeedRepository();
|
||||
feedRepository.create(thread);
|
||||
|
||||
// Send WebSocket Notification
|
||||
WebsocketNotificationHandler.handleTaskNotification(thread);
|
||||
}
|
||||
|
||||
private void patchTaskAssignee(Thread originalTask, EntityReference newAssignee, String user) {
|
||||
@ -334,7 +338,11 @@ public class TestCaseResolutionStatusRepository
|
||||
JsonPatch patch = JsonUtils.getJsonPatch(originalTask, updatedTask);
|
||||
|
||||
FeedRepository feedRepository = Entity.getFeedRepository();
|
||||
feedRepository.patchThread(null, originalTask.getId(), user, patch);
|
||||
RestUtil.PatchResponse<Thread> thread =
|
||||
feedRepository.patchThread(null, originalTask.getId(), user, patch);
|
||||
|
||||
// Send WebSocket Notification
|
||||
WebsocketNotificationHandler.handleTaskNotification(thread.entity());
|
||||
}
|
||||
|
||||
public void inferIncidentSeverity(TestCaseResolutionStatus incident) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user