-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5] add2scheduler-privacyconsents #40553
Conversation
Co-authored-by: jsanders <j53.sanders@gmail.com>
Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
Co-authored-by: jsanders <j53.sanders@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR, can you please remove the functionallity from the plg_system_privacyconsents plugin please.
@alikon What is missing is the SQL changes in base.sql to add the new task plugin to the extensions table (if possible with reasonable default params) and an update SQL script for doing the same. Use the newest present update SQL which does an insert into the extensions table as example, and give the files the right name, e.g. "5.0.0-2023-06-12.sql". It could also make sense to use one common update SQL for this PR and the other one #40519 . The new plugin needs also to be added to the extensions helper. |
* add2schedulerdeleteactionlogs * cs * Rename 5.0.0-2023-06-27.sql to 5.0.0-2023-08-05.sql shift * Rename 5.0.0-2023-06-27.sql to 5.0.0-2023-08-05.sql shift * Rename 5.0.0-2023-08-05.sql to 5.0.0-2023-08-25.sql * Rename 5.0.0-2023-08-05.sql to 5.0.0-2023-08-25.sql * Update plugins/task/deleteactionlogs/src/Extension/DeleteActionLogs.php Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com> * blank-line * blank-line * blank-line * remove config node * Rename 5.0.0-2023-08-25.sql to 5.0.0-2023-08-30.sql * Rename 5.0.0-2023-08-25.sql to 5.0.0-2023-08-30.sql * Deprecate language strings * Single quotes * Remove extra reference assignment for dispatcher argument * Do it in the same way as in PR #40553 * Rename 5.0.0-2023-08-30.sql to 5.0.0-2023-09-02.sql * Rename 5.0.0-2023-08-30.sql to 5.0.0-2023-09-02.sql * Fix lastrun default on update * CS * deploy version * Do nothing if params is an empty JSON * Fix migration methods and comment typos * Use the right task type * Fix undefined array element "exec-day" --------- Co-authored-by: Richard Fath <richard67@users.noreply.github.com> Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com> Co-authored-by: Richard Fath <richard.fath@t-online.de>
thank you all for your help |
@richard67 Should some content of '#__privacy_consents' updated (content of subject) during upgrade to J5? joomla-cms/plugins/task/privacyconsent/src/Extension/PrivacyConsent.php Lines 127 to 132 in 087821f
|
Possibly. Can't check now. But the query looks as if it would fail for the old consents created with the old subject. Maybe it would be easier to extend this query so it checks for both subjects (language strings)? |
I've asked the other maintainers to check that. |
@alikon Could you check the above comments and advise? |
could be a solution to add an update to the |
I think yes. Can you do that? |
yes i'll do |
@alikon But I am not really sure. There is still the system plugin using a similar string for email subjects. I don’t know which of these or if both are relevant for the functionality of your task. |
i'll check it better but no more |
@alikon I saw some code of the system plugin still using that string. So please double check. And if you make a PR please provide some testing instructions. I am too tired now already. |
wrong grep or on the wrong barnch 😇 |
@alikon If the fix will not make it into beta 1 tomorrow, it should be in a new update SQL script. |
@alikon I could find the string It inserts a record with subject And here in the The new task scheduler plugin sends the remainder mails with the mail template. This uses The So I think the right fix will be to change the query in the task scheduler plugin to use Do you agree? @heelc29 Thanks for checking. What do you think? Am I missing something? |
👍 good team working |
Summary of Changes
Testing Instructions
Hint: The execution times and hours shown for tasks in the administrator are in the UTC timezone.
New installation
Make a new installation with this PR applied.
Check if there is an enabled task scheduler plugin "Task - Privacy Consents".
Check if there is any scheduled task using that plugin.
Update
On a Joomla 4.4-dev version or 4.4.0 alpha 4, note the endabled status and the configuration parameters in the "Expiration" fieldset of the of the "System - Privacy Consent" plugin.
Now either disable that plugin or enable it and optionally change some of the configuration parameters in the "Expiration" fieldset 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 "Expiration" fieldset of the "System - Privacy Consent" plugin has been removed.
Check if there is a task scheduler plugin "Task - Privacy Consents".
Check enabled status and configuration parameters of that plugin.
Check if there is a scheduled task "PrivacyConsent" using that plugin. If so, check the configuration parameters, too.
Repeat the previous steps with different endabled status of the "System - Privacy Consent" plugin and - if enabled - different configuration parameters in the "Expiration" fieldset of that plugin.
Actual result BEFORE applying this Pull Request
Reminders on and deletion of expired consents are done with the "System - Privacy Consent" plugin.
Expected result AFTER applying this Pull Request
New installation
The "Task - Privacy Consents" plugin is enabled.
There is no scheduled task using that plugin because on a new installation the "System - Privacy Consent" is disabled.
Update
The "Expiration" fieldset has been removed from the configuration parameters of the "System - Privacy Consent" plugin by the update.
A new task scheduler plugin "Task - Privacy Consents" has been created and is enabled.
If the "System - Privacy Consent" plugin was enabled and field "Enabled" was set to "Yes" in the "Expiration" fieldset of that plugin before the update, a new scheduled task "PrivacyConsent" has been created and is enabled.
The task executes every n days, with n being the "Periodic check (days)" value which was set in the "Expiration" fieldset of the system plugin before the update, default 30.
The configuration parameters "Expiration" and "Remind" of that task are set to the same values as the same parameters in the in the "Expiration" fieldset of the old system plugin.
If the old "System - Privacy Consent" plugin was disabled or field "Enabled" was set to "No" in the "Expiration" fieldset of that plugin before the update, there is no task for that plugin.
Link to documentations
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