Description
After reducing reflection usage in SYNCOPE-1392 SCHEDULED, PULL and PUSH tasks are having org.apache.syncope.common.lib.to.SchedTaskTO#getStartAt date instead of start date of last execution when reading the tasks.
Actual Behavior
[GET http://localhost:8080/syncope/rest/tasks/1cc291c0-3cd1-46df-8291-c03cd196df6f/executions?size=25&orderby=start+DESC]
{ "@class": "org.apache.syncope.common.lib.to.PullTaskTO", "key": "1cc291c0-3cd1-46df-8291-c03cd196df6f", "start": null, "end": "2021-01-26T13:06:51.578+0000", "latestExecStatus": "SUCCESS", "startAt": null, "cronExpression": null, "jobDelegate": null, "name": "Pull Task Name", "description": "", "lastExec": null, "nextExec": null, "active": true, "resource": "Resource Name", ... "executions": [ { "start": "2021-01-25T17:01:39.041+0000", "end": "2021-01-25T17:01:40.488+0000", "key": "830dc52b-c55f-4376-8dc5-2bc55f837673", "jobType": "TASK", "refKey": "1cc291c0-3cd1-46df-8291-c03cd196df6f", "refDesc": "PULL Task DESC", "status": "SUCCESS", "message": "[]" }, ... { "start": "2021-01-26T13:06:51.391+0000", "end": "2021-01-26T13:06:51.578+0000", "key": "f3d306a6-b3e0-4c92-9306-a6b3e0ac920f", "jobType": "TASK", "refKey": "1cc291c0-3cd1-46df-8291-c03cd196df6f", "refDesc": "Task name", "status": "SUCCESS", "message": "[]" } ], "actions": [] }
Expected Behavior
[GET http://localhost:8080/syncope/rest/tasks/1cc291c0-3cd1-46df-8291-c03cd196df6f/executions?size=25&orderby=start+DESC]
{ "@class": "org.apache.syncope.common.lib.to.PullTaskTO", "key": "1cc291c0-3cd1-46df-8291-c03cd196df6f", "start": "2021-01-26T13:06:51.391+0000", "end": "2021-01-26T13:06:51.578+0000", "latestExecStatus": "SUCCESS", "startAt": null, "cronExpression": null, "jobDelegate": null, "name": "Pull Task Name", "description": "", "lastExec": "2021-01-26T13:06:51.391+0000", "nextExec": null, "active": true, "resource": "Resource Name", ... "executions": [ { "start": "2021-01-25T17:01:39.041+0000", "end": "2021-01-25T17:01:40.488+0000", "key": "830dc52b-c55f-4376-8dc5-2bc55f837673", "jobType": "TASK", "refKey": "1cc291c0-3cd1-46df-8291-c03cd196df6f", "refDesc": "PULL Task DESC", "status": "SUCCESS", "message": "[]" }, ... { "start": "2021-01-26T13:06:51.391+0000", "end": "2021-01-26T13:06:51.578+0000", "key": "f3d306a6-b3e0-4c92-9306-a6b3e0ac920f", "jobType": "TASK", "refKey": "1cc291c0-3cd1-46df-8291-c03cd196df6f", "refDesc": "Task name", "status": "SUCCESS", "message": "[]" } ], "actions": [] }
Attachments
Issue Links
- links to