-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Joomla! Update: reinstall Joomla! and Update & Install features | seccond try #9612
Joomla! Update: reinstall Joomla! and Update & Install features | seccond try #9612
Conversation
Add type hints to Joomla! Update's controller
Refactored JUpdater, made it possible to record the current version of an extension into the #__updates table
Model and view template changes
Keeping it it simple and clean
When JUpdater::findUpdates has four (or more) parameters we can use the reinstall support by passing true in the fourth parameter (includeCurrent). Otherwise we have to call findUpdates with three parameters which only gives us available updates. This is necessary since Joomla! Update can run under older Joomla! 3.x releases, most notably 3.4, which lack the reinstall support.
While the FTP credentials were applied, the file write method was ignored. That explains why a buch of users reported that Joomla! Update didn't work for them. Since the included restore.php supports the Hybrid file write mode (direct file writes where possible, FTP only when the file is unwriteable) I added that option as well.
Minor Fixes
The "standalone" component is exactly what we ship in the CMS right now - you can generate the standalone package by running this script https://github.com/joomla/joomla-cms/blob/staging/build.xml#L142 - I haven't had time to do it myself yet so i can't link you to a package |
Whoever said it wont be merged. This is RTC with a milestone of 3.5.2 |
This as is is going to be merged. All we are going to do is also produce a zip of exactly this that people can upload onto older Joomla sites (especially people still stuck on 3.4.8) |
Thanks @brianteeman @wilsonge I obviously misunderstood.... I thought the stand alone zip was instead of having it in the core. |
No it will be in core but by making it something that can be installed it On 7 April 2016 at 22:11, Kevin Griffiths [email protected] wrote:
Brian Teeman |
For reference we made it possible to do this after 3.3.6 needed to be released because of an issue introduced into the restore.php script. The mechanism has never been needed though. |
@zero-24 could you have a look at the merge conflicts, danke |
This PR has received new commits. CC: @richard67, @Webdongle This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9612. |
I will be able to test again tomorrow if still necessary then. |
COM_JOOMLAUPDATE_VIEW_DEFAULT_FTP_PASSWORD="FTP password" | ||
COM_JOOMLAUPDATE_VIEW_DEFAULT_FTP_PORT="FTP port" | ||
COM_JOOMLAUPDATE_VIEW_DEFAULT_FTP_USERNAME="FTP username" | ||
CCOM_JOOMLAUPDATE_VIEW_DEFAULT_FTP_DIRECTORY="FTP Root" |
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.
CCOM?
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.
remove CCOM and replace with COM
This PR has received new commits. CC: @richard67, @Webdongle This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9612. |
Sorry guys i have just fixed it by merging brian's PR thanks @andrepereiradasilva & @brianteeman |
Pull Request for Issue #9469.
Summary of Changes
Added features to Joomla! Update:
Testing Instructions
First test
Note
Please notice that as the 3.5.0 stable package don't include the changes here the new overview is gone for now. But if you follow the seccond test it come back 😄
seccond test
For the code reviewer
The changes between the code by @nikosdion and me can be found here: https://github.com/nikosdion/joomla-cms/compare/feature/joomlaupdate-reinstall...zero-24:feature/joomlaupdate-reinstall
Some other things
The needed update xml for com_joomlaupdate can be found here: joomla/update.joomla.org#6
The com_joomlaupdate package can be found here (it is the same as on my server for updating):
http://www.jah-tz.de/downloads/download.php?file=com_joomlaupdate.zip&folder=extensions/dev/
Limitations of using the com_joomlaupdate standalone. (edit)
You can't use the reinstall feature as the standalone package don't update the updater lib file please see: #9612 (comment)
Thanks
Thanks goes to @nikosdion @wilsonge and @mbabker and com_patchtester (as there we can find how we should create a update packages)