Do not forget to cherry-pick fixes from here : #42
We must change line 309 of tastGateway to be sure to generate a now time in UTC. We could have used Unix timestamp (always generated in UTC) but dateTime object are easy to use.
Let's change line 309
// Is used to verify cyclic schedule with date format.
$now = new DateTime();
with
$now = new DateTime('now', new DateTimeZone('UTC'));
dockx thibault (7a640a4c) at 29 Mar 14:06
dockx thibault (54298ff6) at 29 Mar 13:32
dockx thibault (493966ea) at 29 Mar 00:51
dockx thibault (51908c6a) at 28 Mar 20:55
[Tasks] - Make the generic tasks even more generic, allowing the object type string to be custom in case of added plugins
Currently, the creation of subTasks is handled by :
public function createSlaveTasks (array $listOfDN, string $attributeType, array $attrs = NULL): void
example :
// Call the method from parent tasks object (first tab) to create sub-tasks.
$this->parent->getBaseObject()->createSlaveTasks($listOfDN, $attributeType);
The variable attributeType was previously set for life cycle and mail tasks. (fdTasksGranularDN, fdTasksGranularMail). To differentiate the usage of DN (CN/UID or MAIL). We can still use that logic that could become beneficial for harder tasks in the future, set in the CORE.
Currently, a new argument should be passed to define fdTasksGranularType.
Modification should occur here :
case 'fdTasksGranularDN' :
$prepData['tasksGranular'] = [
"fdTasksGranularDN" => $dn,
"fdTasksGranularType" => 'Life Cycle',
];
break;
}
Life Cycle was hard-coded on purpose but could definitely receive a string variable now. As more plugins will be developed, such as notifications, which also base itself on the concept of "pure" DN such as life cycle.
Added Note LastExec is currently using date format based on time() which is unix UTC format. Somehow using Date changes the local dateTime to local time. We have to have UTC globally. gmDate instead of Date could resolve the issue easily. As generalizeTime in FD use Z which is UTC already.
dockx thibault (6c811323) at 28 Mar 18:06
[Orchestrator] MAIL_SEC="<ssl/tls"> error typo in the orchestrator configuration.
" should be fixed to not throw error in case mail is left untouched.
Related to #41
dockx thibault (d8b2d7b3) at 26 Mar 11:48
Merge branch '41-orchestrator-mail_sec-ssl-tls-error-typo-in-the-or...
... and 2 more commits
dockx thibault (b8e94838) at 26 Mar 10:18
dockx thibault (549f24e6) at 26 Mar 10:12
Related to #41
dockx thibault (c9df17dc) at 26 Mar 10:11
[Orchestrator] MAIL_SEC="<ssl/tls"> error typo in the orchestrator configuration.
" should be fixed to not throw error in case mail is left untouched.
dockx thibault (df8e8a31) at 25 Mar 16:42
dockx thibault (51908c6a) at 25 Mar 16:25
Merge branch '6320-tasks-mail-class-can-have-one-method-static-to-b...
... and 2 more commits