Language Change PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar chmst
chmst
21 Aug 2025

Follow-up for PR #45721

Summary of Changes

Until now, recipients of update notifications are defined as a comma separated list of email addresses.
This means: First find the email-addresses of super users, then maintain the list when super users leave or are added or when they change emailaddress.

This PR works like in AutoUpdate notification: #45721

All Super Users get the update notification. Additionally other user groups can be added. Recipients must be active and have the sendEmail Option allowed.

The Updatescript will remove the old email option from parameters in the table. If there were old entries, they will be deleted. These entries were a subset of super users, so there is no break.

Testing Instructions

  1. Run the update script. The mysql script is tested, the postgresql script is generated by AI and needs a tester with these skills.

  2. Make different users, different user groups, they can be empty, have super users not, have sendEmail activated or not and can be blocked or not.

  3. Go to scheduled tasks and open the Update Notification Plugin. Check if user Groups can be added.

  4. Testing if the email addresses now are correct is tricky.

Actual result BEFORE applying this Pull Request

Comma separated list of super users or the super user (id = 8) per default
grafik

Expected result AFTER applying this Pull Request

It is possible to select user groups from a list. Super Users are added per default and must notr be selected.
grafik

Link to documentations

Please select:

  • Documentation link for docs.joomla.org: [(https://docs.joomla.org/J3.x:Plugin_Joomla_Update_Notification#Super_User_Email]

  • No documentation changes for manual.joomla.org needed

avatar chmst chmst - open - 21 Aug 2025
avatar chmst chmst - change - 21 Aug 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Aug 2025
Category SQL Administration com_admin Postgresql Language & Strings Front End Plugins
avatar chmst chmst - change - 21 Aug 2025
The description was changed
avatar chmst chmst - edited - 21 Aug 2025
33595cb 22 Aug 2025 avatar chmst cs
avatar chmst chmst - change - 22 Aug 2025
Labels Added: Language Change PR-5.4-dev
0770103 22 Aug 2025 avatar chmst cs
avatar brianteeman
brianteeman - comment - 22 Aug 2025

Do I read this correct.

Before this PR a site owner could set a limited number of super users to receive this specific email but now all super users will receive the email.

If I read it correctly and this is the case then this is a change in behaviour on an existing site that should not happen in a minor release

avatar chmst
chmst - comment - 22 Aug 2025

I made this as draft, so we can discuss.
We should have equal behaviour here and for automaded update notifications.

If we don't want to inform all super users, then we could make a users selection of all users who have the super user rights or sendEmail option = "on".
On the one hand it is better if only one super user is responsible, on the other hand it could be that nobody gets a notification, as it is now when super users change.

I am ok with J6.0, release managers can decide.

avatar brianteeman
brianteeman - comment - 22 Aug 2025

My only concern is that this proposes a change of behaviour on existing sites with no notification

avatar chmst chmst - change - 22 Aug 2025
The description was changed
avatar chmst chmst - edited - 22 Aug 2025
avatar travisrisner
travisrisner - comment - 22 Aug 2025

What if there is another parameter using a radio for "Send to list of email addresses" or "Send to user groups" (probably different wording). Both comma separated list and group selection fields can exist and be toggled with a showon. By default it keeps the comma separated list on so it doesn't break current installations, but still allows you to set the functionality to send to a group instead.

avatar muhme
muhme - comment - 31 Aug 2025

👍 I am in favour of standardising the notification settings for update notifications so that they can be configured by groups, as is already the case for advanced scheduled tasks configurations and is new with 5.4 for automated updates.

@travisrisner Even this is I nice idea to avoid the break, I don't like adding another parameter like ‘Send to list of email addresses' as it complicates things. Sending to groups with 'Super Users' group as default is understandable and reduce Joomla administration with handling permissions in one place. And if we have a parallel opportunity to send by email addresses we have to document, test and maintain this forever.

As already written, this is a break for existing sites, they have email addresses configured, even if there won't be many of them. The effect would be that not the configured email addresses, but all superusers with receive email configured would receive the emails. I see three solutions:

  1. Document the effekt, at least within the release notes
  2. If configured emails are detected during the upgrade process, a warning and a hint how to solve will appear
  3. Implement a seamless transition: During the upgrade:
  • Check if email addresses are configured
  • If so, then create a new group with those users
  • And use this group for update notifications
  • This has to handle some non-standard situations, as:
    • Email addresses are configured, but no user exists -> to be ignored
    • User exists, but is not in the super user group -> to be ignored
    • User exists, but is not enabled -> ???
    • Resulting list is empty -> fall back again to default Super Users group

@brianteeman Yes, number '1. Document' we have todo in each case.

And I would tend to '2. Warning' if possible. I think there are too few use cases to '3. Implement, test and maintain the seamless transition'. And the effect is only that now all members of the Super Users group get the email.

avatar brianteeman
brianteeman - comment - 31 Aug 2025

If you do this as a post-installation message then you can display it conditionally only to those sites that are effected by this change in behaviour. Better than burying this breaking change in a note in the documentation.

avatar chmst
chmst - comment - 31 Aug 2025

Thank you for your opinin. I think that this is the best solution.

And I would tend to '2. Warning' if possible. I think there are too few use cases to '3. Implement, test and maintain the seamless transition'. And the effect is only that now all members of the Super Users group get the email.

and postinstall message will be a new challenge.

avatar chmst chmst - change - 31 Aug 2025
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2025-08-31 21:36:10
Closed_By chmst
avatar chmst chmst - close - 31 Aug 2025
avatar chmst
chmst - comment - 31 Aug 2025

There are still questions open:

  1. We accept only super user groups for these messages.
    Therefor the select field can only show super user groups and must get an additional attribute for superusers only.

For existing user groups we need this: (also see comments above)
The owners of the comma separated addresses have to be added into a newly generated usergroup with permission "core.admin".
The original input field then can be removed
a ) This new usergroup needs a name which does not exist in the system. I could use "super user update notification" if this does not exist yet or use a time-date suffix for the super user group.
b) Is it possible to do this during an update, using a update script? @richard67.

As Suggested, a postinstall message additionally to the information in release notes will be added.

I close this one and make a new PR with the better code from the autoupdate PR. Thanks for the hints @HLeithner!

Probably better for 6.0 or 6.1?

avatar HLeithner
HLeithner - comment - 1 Sep 2025

@chmst since it's too late for 6.0, please target 6.1

Add a Comment

Login with GitHub to post a comment