-
Notifications
You must be signed in to change notification settings - Fork 41
Changes of Version 5.1.3
Until now, setting the fields “Maximum number of backups per cron” (step createbackup) and “Maximum number of courses deleted per cron” (step coursedelete) to zero prevented any courses from being processed in these steps.
Important: When upgrading the plugin to this new version, all step instances with a value of zero in these fields will automatically be set to “stopped” using the new stop feature (see below).
From now on, a value of zero means — as is standard for Moodle settings — no limit.
You can now stop and reactivate each instance of these two step types at any time. Stopping a step means that the workflow remains active, but no courses in this step will be processed. This feature will soon be available for other step types as well.
Trigger courses if their start date fall in a defined timeframe.
Improve performance of view page, especially for large instances. Admins will now also see courses that they are enrolled, but do not have a course role with the managecourses capability.
Thanks to Philipp Memmel of bycs-lp!
To get rid of processes of courses that do not exist anymore a deletion-task has been added to the livecycle_cleanup_task.
A new function "get_available_actions_for_user" has been added to the step lib where you can filter allowed step actions at user level. Your local code should go here: https://github.com/PhMemmel/moodle-tool_lifecycle/blob/cea46e98c1ab3cac1efb030bda802ed3fa885209/step/interactionlib.php#L125
Thanks to Philipp Memmel of bycs-lp!