[ 
https://issues.apache.org/jira/browse/SYNCOPE-1613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17272132#comment-17272132
 ] 

ASF subversion and git services commented on SYNCOPE-1613:
----------------------------------------------------------

Commit 64a55eb422229a1ea5fbe6efe3c0516d607e3fa3 in syncope's branch 
refs/heads/master from DmitriyBrashevets
[ https://gitbox.apache.org/repos/asf?p=syncope.git;h=64a55eb ]

[SYNCOPE-1613] Use latestExec startDate for "start" field of scheduled tasks 
(#237)



> startAt date is set to start field for SCHEDULED, PULL and PUSH TaskTOs
> -----------------------------------------------------------------------
>
>                 Key: SYNCOPE-1613
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1613
>             Project: Syncope
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.1.3
>            Reporter: Dmitriy B.
>            Assignee: Francesco Chicchiriccò
>            Priority: Major
>             Fix For: 2.1.9, 3.0.0
>
>
> 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.
>  
> {panel:title=Actual Behavior }
> [GET 
> http://localhost:8080/syncope/rest/tasks/1cc291c0-3cd1-46df-8291-c03cd196df6f/executions?size=25&orderby=start+DESC]
> {code:javascript}
> {
>   "@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": []
> }
> {code}
> {panel}
>  
> {panel:title=Expected Behavior}
> [GET 
> http://localhost:8080/syncope/rest/tasks/1cc291c0-3cd1-46df-8291-c03cd196df6f/executions?size=25&orderby=start+DESC]
>   
> {code:javascript}
>  {
>   "@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": []
> }
>  {code}
>  
> {panel}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to