Make the update listview a bit more informative to the admin. Show a hint for unpublished extensions when an update exist.
Background:
The extension update view lists all the extensions for which an update exists.
But only the installation of the extension and not its actual state (enabled/disabled) is recognised.
I think, it would be a good idea to at least give a hint, if an update for a currently not activated extension is pending.
The administrator can then even form an opinion on whether the update should be carried out, or whether he makes a more detailed check before and eventually even uninstalled the extension, if it isn't necessary anymore.
Currently, if there's one or more updates, a list will be displayed, containing in tabular form the essential information such as: name of extension, currently installed version, new version, changelog, etc.
If the are no unpublished extensions to update, the first seen view is displayed.
But if there is an update for a currently inactive extension, an Info column will be generated on the left and an info icon with short text will be displayed there.
In addition, a message is displayed above the table in an additional info line, indicating that one and several updates are available for deactivated extensions.
This hint line is important, because the list may be long because of multiple entries and the inactive extension may not be immediately visible. If you scroll through the list, you can find it via the info icon.
Creating the appropriate hints is not difficult and can be realized with some smaller changes in this existing files as:
/administrator/components/com_installer/View/Update/HtmlView.php
... check if an unpublished update-item exists
/administrator/components/com_installer/tmpl/update/default.php
... make changes to the view
/administrator/components/com_installer/Model/UpdateModel.php
... get the necessary data
/administrator/language/en-GB/en-GB.com_installer.ini
... some new language keys
If it is wished, I can do the codings.
Labels |
Added:
?
|
Title |
|
Title |
|
Labels |
Added:
J4 Issue
|
Status | New | ⇒ | Discussion |
No, that one wanted to flat out remove disabled extensions from the update list.
Both should be closed as they encourage bad security practices
closed as stated above. Thanks for Info @mbabker @brianteeman
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-06-20 12:33:34 |
Closed_By | ⇒ | franz-wohlkoenig |
@mbabker @brianteeman @franz-wohlkoenig
I can not really share the concerns.
If it is important to update non-activated elements as well, the possibility to exclude an update via the select tick should not be possible. In short, a forced update should be implemented for all installed elements, whether activated or not.
Blindly applying extension updates is a pretty bad idea too. Users ignoring updates is one thing, and it's not something anyone should try to tackle in core. Changing the interface to give the perception that it's OK to ignore updates for disabled extensions is a pretty bad idea in the long run. If it is installed on your site, whether active or not it needs to be maintained. The only safe way to ignore extension updates is to uninstall the extension.
Also, there is this thing about taking a backup and testing updates before applying them in production. Imagine if Joomla just blindly applied extension updates when they were found and a major, backward compatibility breaking, update were applied with no notice.
Distinguishing an extension as enabled or disabled on the update screen is a bad idea (and FWIW WordPress does not do this either). Regardless of whether it is enabled or disabled, it should still be updated as the vendor releases updates. Even as a disabled extension, it is still code on your site and is a possible path toward a hack if not maintained.