diff --git a/center/src/main/java/com/microsoft/hydralab/center/service/TestDataService.java b/center/src/main/java/com/microsoft/hydralab/center/service/TestDataService.java index 343621a0b..55073cbd6 100644 --- a/center/src/main/java/com/microsoft/hydralab/center/service/TestDataService.java +++ b/center/src/main/java/com/microsoft/hydralab/center/service/TestDataService.java @@ -118,11 +118,6 @@ public Task getTaskDetail(String id) { deviceTestResult.setAttachments(attachmentService.getAttachments(deviceTestResult.getId(), EntityType.TEST_RESULT)); deviceTestResult.setTaskResult(taskResultRepository.findByTaskRunId(deviceTestResult.getId()).orElse(null)); } - - // for deprecated field - task.getDeviceTestResults().addAll(byTestTaskId); - task.setTestDevicesCount(task.getDeviceCount()); - task.setTestErrorMsg(task.getErrorMsg()); return task; } diff --git a/common/src/main/java/com/microsoft/hydralab/common/entity/common/Task.java b/common/src/main/java/com/microsoft/hydralab/common/entity/common/Task.java index 688e27106..86de73905 100644 --- a/common/src/main/java/com/microsoft/hydralab/common/entity/common/Task.java +++ b/common/src/main/java/com/microsoft/hydralab/common/entity/common/Task.java @@ -85,18 +85,6 @@ public class Task implements Serializable { @Transient private boolean disableRecording = false; - //@Deprecated - @Transient - private List deviceTestResults = new ArrayList<>(); - - //@Deprecated - @Transient - private int testDevicesCount; - - //@Deprecated - @Transient - private String testErrorMsg; - public synchronized void addTestedDeviceResult(TestRun deviceTestResult) { taskRunList.add(deviceTestResult); } @@ -225,4 +213,18 @@ public interface TriggerType { String Schedule = "Schedule"; } + @Deprecated + public List getDeviceTestResults() { + return taskRunList; + } + + @Deprecated + public int getTestDevicesCount() { + return deviceCount; + } + + @Deprecated + public String getTestErrorMsg() { + return errorMsg; + } }