[5.4] Autoupdate email groups#45721
Conversation
|
It still should check for Users with |
Co-authored-by: Brian Teeman <brian@teeman.net>
administrator/components/com_joomlaupdate/src/Model/NotificationModel.php
Outdated
Show resolved
Hide resolved
Co-authored-by: Brian Teeman <brian@teeman.net>
…onModel.php Co-authored-by: Brian Teeman <brian@teeman.net>
administrator/components/com_joomlaupdate/src/Model/NotificationModel.php
Outdated
Show resolved
Hide resolved
administrator/components/com_joomlaupdate/src/Model/NotificationModel.php
Outdated
Show resolved
Hide resolved
|
I have tested this item ✅ successfully on bc99f0b
|
|
I have tested this item ✅ successfully on bc99f0b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45721. |
|
I have tested this item ✅ successfully on bc99f0b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45721. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45721. |
administrator/components/com_joomlaupdate/src/Model/NotificationModel.php
Outdated
Show resolved
Hide resolved
administrator/components/com_joomlaupdate/src/Model/NotificationModel.php
Outdated
Show resolved
Hide resolved
…onModel.php Co-authored-by: Brian Teeman <brian@teeman.net>
is there an email validation check or did you just mean "obviously if the email address is invalid then they wont receive the email" |
|
As the last change was just a code comment clarification, the PR doesn't require new tests, and RTC is still valid. |
There is a email validation check. |
|
Thank you @chmst for your contribution. Thank you @brianteeman, @richard67, @Fedik and @HLeithner for supporting. Thank you @exlemor and @rbuelund for testing. |
|
The test was repeated w/o the given workaround as Alpha (Test) Automated Updates package 5.4.115 with joomla-5.4.0-beta2, with this PR included, is available now. Slightly modified with taking file and database dump after the configuration, checking log files after installation and unregistered from Automated Updates. Recreated from file and database dump for next test. ✅ Running Automated Update 7 (seven) times and checked the email received as specified 👍 😄 |
--------- Co-authored-by: Brian Teeman <brian@teeman.net> Co-authored-by: Heiko Lübbe <github@heikol.de> Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
Pull Request for Issue (#45685 (comment)).
Change this PR to configure user group(s) (like for the standard task operations) instead of having an input field for email addresses.
Summary of Changes
The PR fixes the hard coded default super user group = 8 for notifications, it gets all super user groups from assets.
Every user who is not blocked and has permission "sendEmail" and has a valid email address can receive a notification.
The user must be in a user group which can be selected in the form.
If there is no input in the field or if the selected groups are empty, all active super users get a notification.
Testing Instructions
Make one or more user groups with different users.
User can have senEmali Options or not, can be blocked or not, can be super users or not.
Play around with empty groups, blocked users ..
Add / remove / change selected user groups in the automated update configuration.
Check if all and only users with valid email-address and permission to receive system emails get the email after autoUpdate.
There is a quick and dirty workaround for testing the sendNotification method without the automated update.
Add this into any displayContoller.php, for example com_content:
https://github.com/joomla/joomla-cms/blob/5.4-dev/administrator/components/com_content/src/Controller/DisplayController.php in the display method.
Then go to a view of that component in backend. This acrivate the sendNotification Method.
You can check the email-addresses here:
administrator\components\com_joomlaupdate\src\Model\NotificationModel.php befor the messages are sent:
Simple code snippet if you don't use xdebug:
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
The input form for the Plugin

The output:
All depends on the input and on the differen users configuration. All users from the input who are not blocked and have sendMail = 1 are listed, only one times.
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed