User tests: Successful: Unsuccessful:
move sessiongc from system plugin to scheduler/task plugin
Hint: The execution times and hours shown for tasks in the administrator are in the UTC timezone.
Make a new installation with this PR applied.
Check if there is an enabled task scheduler plugin "Task - Session Data Purge".
Check if there is an enabled scheduled task "SessionGC" using that plugin.
Check that the new task shall run every 24 hours at the hour when the Joomla installation was made.
On a Joomla 4.4-dev version or 4.4.0 alpha 4, note the endabled status and the configuration parameters of the "System - Session Data Purge" plugin.
Now either disable that plugin or enable it and optionally change some of the configuration parameters to a value different to the default.
Update to the patched package or custom update URL created by Drone for this PR.
Check if the "System - Session Data Purge" plugin has been uninstalled.
Check if there is a task scheduler plugin "Task - Session Data Purge".
Check enabled status and configuration parameters of that plugin.
Check if there is a scheduled task "SessionGC" using that plugin. If so, check the configuration parameters, too.
Repeat the previous steps with different endabled status and configuration parameters of the "System - Session Data Purge" plugin.
Deletion of outdated session data is done with the "System - Session Data Purge" plugin.
The "Task - Session Data Purge" plugin is enabled, and a scheduled task "SessionGC" is enabled to run every 24 hours at the hour of the Joomla installation.
The "System - Session Data Purge" plugin has been uninstalled by the update.
A new task scheduler plugin "Task - Session Data Purge" has been created and is enabled.
If the old "System - Session Data Purge" plugin was enabled before the update, a new scheduled task "SessionGC" has been created and is enabled.
It will execute every 24 hours at the hour of the Joomla installation.
The configuration parameters "Enable Session Data Cleanup", "Enable Session Metadata Cleanup", "Probability" and "Divisor" of that task are set to the same values as the same parameters in the old system plugin's parameters:
If the old "System - Session Data Purge" plugin was disabled before the update, there is no task for that plugin.
Please select:
Documentation link for docs.joomla.org: link will be added later
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Category | ⇒ | Administration com_admin SQL Postgresql Language & Strings Installation Libraries Front End Plugins |
Status | New | ⇒ | Pending |
Labels |
Added:
Language Change
PR-5.0-dev
|
Where is the code to add the task in the database for new J5.0 installations?
@alikon @heelc29 is right: As on a new J5 installation the secciongc plugin would be enabled by default, it needs something like this here: https://github.com/joomla/joomla-cms/pull/40788/files#diff-fa733b616bbcc3e559d5003d630a5ba449c1cec34c00d1f44aa6d6c7d1dc75d0
Where is the code to add the task in the database for new J5.0 installations?
@alikon @heelc29 is right: As on a new J5 installation the secciongc plugin would be enabled by default, it needs something like this here: https://github.com/joomla/joomla-cms/pull/40788/files#diff-fa733b616bbcc3e559d5003d630a5ba449c1cec34c00d1f44aa6d6c7d1dc75d0
done thx for reporting
Labels |
Added:
Feature
|
done
@heelc29, @richard67
thanks
@alikon I've allowed myself to update the branch and apply some small code style fix. Now I think it needs better testing instructions. I suggest something as follows for this PR here, and will later make suggestions also for the other 4 PRs. Feel free to just copy it and paste into the descriptions of the PRs, or modify them as you want.
Make a new installation with this PR applied.
Check if there is an enabled task scheduler plugin "Task - Session Data Purge".
Check if there is an enabled scheduled task "SessionGC" using that plugin.
Check that the new task shall run every 24 hours at the hour when the Joomla installation was made.
On a Joomla 4.4-dev version or 4.4.0 alpha 4, note the endabled status and the configuration parameters of the "System - Session Data Purge" plugin.
Now either disable that plugin or enable it and optionally change some of the configuration parameters to a value different to the default.
Update to the patched package or custom update URL created by Drone for this PR.
Check if the "System - Session Data Purge" plugin has been uninstalled.
Check if there is a task scheduler plugin "Task - Session Data Purge".
Check enabled status and configuration parameters of that plugin.
Check if there is a scheduled task "SessionGC" using that plugin. If so, check the configuration parameters, too.
Repeat the previous steps with different endabled status and configuration parameters of the "System - Session Data Purge" plugin.
Deletion of outdated session data is done with the "System - Session Data Purge" plugin.
The "Task - Session Data Purge" plugin is enabled, and a scheduled task "SessionGC" is enabled to run every 24 hours at the hour of the Joomla installation.
The "System - Session Data Purge" plugin has been uninstalled by the update.
A new task scheduler plugin "Task - Session Data Purge" has been created and is enabled.
If the old "System - Session Data Purge" plugin was enabled before the update, a new scheduled task "SessionGC" has been created and is enabled.
It will execute every 24 hours at the hour of the Joomla installation.
The configuration parameters "Enable Session Data Cleanup", "Enable Session Metadata Cleanup", "Probability" and "Divisor" of that task are set to the same values as the same parameters in the old system plugin's parameters:
If the old "System - Session Data Purge" plugin was disabled before the update, there is no task for that plugin.
Labels |
Added:
Documentation Required
|
The language strings for the backend, e.g. the plugin name, are not translated. The reason could be the casing of the Plugin PHP files, "SessionGC" instead of "Sessiongc".
I have tested this item ? unsuccessfully on cc22a2a
The language strings for the task in backend, e.g. the task type in the task list, or the parameter labels and descriptions in the form, are not translated. The reason could be the casing of the Plugin PHP files, "SessionGC" instead of "Sessiongc".
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-09-04 09:38:56 |
Closed_By | ⇒ | HLeithner |
thanks richard for finishing this pr.
thank you all for your help
Where is the code to add the task in the database for new J5.0 installations?