Skip to content

Conversation

@zero-24
Copy link
Contributor

@zero-24 zero-24 commented Oct 8, 2016

Pull Request for Issue #12351

Summary of Changes

This implements a minimum database feature into com_joomlaupdate so we can check for minimum supported database version per type

Testing Instructions

First Please review the code.

Test the Core

  • Install 3.7.x (https://github.com/joomla/joomla-cms/archive/3.7.x.zip)
  • set this as custom update server http://www.jah-tz.de/downloads/core/nightlies/next_minor_list.xml
  • confirm that com_joomlaupdate still points to 3.7.0-dev2
  • apply this patch
  • confirm that com_joomlaupdate still points to 3.7.0-dev2
  • Do NOT install this update
  • change the custom update server to http://www.jah-tz.de/downloads/core/nightlies/next_minor_list2.xml
  • confirm that you get the We can't find a download URL .... message in com_joomlaupdate
  • change the custom update server to http://www.jah-tz.de/downloads/core/nightlies/next_minor_list3.xml
  • confirm that com_joomlaupdate still points to 3.7.0-dev2 (if you meat the requirements of mysql 5.5.3 else you should get the warning)

Test Extensions

Documentation Changes Required

Document the new tag if implemented as this can also be used by 3party extensions

JLIB_INSTALLER_ABORT_TPL_INSTALL_UNKNOWN_CLIENT="Template Install: Unknown client type [%s]"
JLIB_INSTALLER_AVAILABLE_UPDATE_PHP_VERSION="For the extension %1$s version %2$s is available, but it requires at least PHP version %3$s while your system only has %4$s"
JLIB_INSTALLER_AVAILABLE_UPDATE_DB_MINIMUM="For the extension %1$s version %2$s is available, but your current database %3$s in version %4$s is not supported please contact your host in to update you Databseversion at least to version %5$s"
JLIB_INSTALLER_AVAILABLE_UPDATE_DB_TYPE="For the extension %1$s version %2$s is available, but your current database %3$s is not supported anymore"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a full stop at the end

JLIB_INSTALLER_ABORT_TPL_INSTALL_ROLLBACK="Template Install: %s"
JLIB_INSTALLER_ABORT_TPL_INSTALL_UNKNOWN_CLIENT="Template Install: Unknown client type [%s]"
JLIB_INSTALLER_AVAILABLE_UPDATE_PHP_VERSION="For the extension %1$s version %2$s is available, but it requires at least PHP version %3$s while your system only has %4$s"
JLIB_INSTALLER_AVAILABLE_UPDATE_DB_MINIMUM="For the extension %1$s version %2$s is available, but your current database %3$s in version %4$s is not supported please contact your host in to update you Databseversion at least to version %5$s"
Copy link
Contributor

@brianteeman brianteeman Oct 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets fix the germish ;)

+JLIB_INSTALLER_AVAILABLE_UPDATE_DB_MINIMUM="For the extension %1$s version %2$s is available, but your current database %3$s is version %4$s and is not supported. Please contact your web host to update you Database version to at least version %5$s."

@zero-24
Copy link
Contributor Author

zero-24 commented Oct 8, 2016

Thanks fixed @brianteeman

@brianteeman
Copy link
Contributor

Tried to test this but at this point
change the custom update server to http://www.jah-tz.de/downloads/core/nightlies/next_minor_list2.xml
confirm that you get the You don't support the minimum .... message in com_joomlaupdate

I get the "We can't find a download URL" message

@zero-24
Copy link
Contributor Author

zero-24 commented Oct 8, 2016

@brianteeman yes this is the correct message. On writing the instructions i did not had the title in my mind.

@brianteeman
Copy link
Contributor

confirm that com_joomlaupdate still points to 3.7.0-dev2 (if you meat the requirements of mysql 5.5.3 else you should get the warning)

Is there any way I can test this? Maybe you can force it to look for a minimum requirement of 9.9?

@zero-24
Copy link
Contributor Author

zero-24 commented Oct 8, 2016

i have just fixed the instructions thanks!

Is there any way I can test this? Maybe you can force it to look for a minimum requirement of 9.9?

99.5.3 is used in test 2. ;) -> The reason you don't get the update

The 3. is just a test to make sure nothing breaks and you get the update if you meat the requirements

@brianteeman
Copy link
Contributor

Extension update. The message I get is

onrz

This is confusing - the first sentence will lead me to think that the problem is that I can not connect to the update server

@zero-24
Copy link
Contributor Author

zero-24 commented Oct 8, 2016

That are 2 different errors ;) The first one is from the test report extension (see: #12258) and the seccond warning is my warning so everything works as expected.

JLIB_INSTALLER_ABORT_TPL_INSTALL_ROLLBACK="Template Install: %s"
JLIB_INSTALLER_ABORT_TPL_INSTALL_UNKNOWN_CLIENT="Template Install: Unknown client type [%s]"
JLIB_INSTALLER_AVAILABLE_UPDATE_PHP_VERSION="For the extension %1$s version %2$s is available, but it requires at least PHP version %3$s while your system only has %4$s"
JLIB_INSTALLER_AVAILABLE_UPDATE_DB_MINIMUM="For the extension %1$s version %2$s is available, but your current database %3$s is version %4$s and is not supported. Please contact your web host to update you Database version to at least version %5$s."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops - my fault - missed one

to update you Database version
==>
to update your Database version

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed: a2647cd

@brianteeman
Copy link
Contributor

OK - all good then. - But they are warnings - should they be errors?

Also I missed a typo

On 8 October 2016 at 21:55, zero-24 [email protected] wrote:

That are 2 different errors ;) The first one is from the test report
extension (see: #12258 #12258)
and the seccond warning is my warning so everything works as expected.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#12355 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8RfrxpHDyULUFVikbhfo-MY97sKGks5qyANDgaJpZM4KR0KZ
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

@zero-24
Copy link
Contributor Author

zero-24 commented Oct 8, 2016

OK - all good then.

Thanks!

But they are warnings - should they be errors?

I can do both i have set is at warning as the PHP Minimum message is also just a warning.

@brianteeman
Copy link
Contributor

I have tested this item ✅ successfully on a2647cd


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12355.

@brianteeman
Copy link
Contributor

OK - I am not bothered myself if its a warning or error

On 8 October 2016 at 22:02, zero-24 [email protected] wrote:

OK - all good then.

Thanks!

But they are warnings - should they be errors?

I can do both i have set is at warning as the PHP Minimum message is also
just a warning.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#12355 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8afmto0MtIZdiV3nmn-bYOdGgGWmks5qyATJgaJpZM4KR0KZ
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

);

JFactory::getApplication()->enqueueMessage($dbMsg, 'warning');

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One empty line too much ;)

@zero-24 zero-24 added this to the Joomla 3.7.0 milestone Oct 10, 2016
@jeckodevelopment
Copy link
Member

I have tested this item ✅ successfully on ce23227


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12355.

@brianteeman
Copy link
Contributor

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12355.

@joomla-cms-bot joomla-cms-bot removed the Language Change This is for Translators label Oct 18, 2016
@brianteeman
Copy link
Contributor

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12355.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Oct 18, 2016
@rdeutz rdeutz merged commit 0af7caf into joomla:staging Oct 18, 2016
@zero-24
Copy link
Contributor Author

zero-24 commented Oct 18, 2016

Thanks!

@zero-24 zero-24 deleted the database_minimum branch October 18, 2016 17:43
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Oct 18, 2016
@zero-24
Copy link
Contributor Author

zero-24 commented Mar 18, 2017

I have just added the option supported_databases to this doku: https://docs.joomla.org/Deploying_an_Update_Server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants