RTC Success

User tests: Successful: Unsuccessful:

avatar yvesh
yvesh
26 Jun 2016

Pull Request for Issue #150

Summary of Changes

Updates the default collation for new installations to utf8mb4. Added an update script (version 3.5.1) for previous installations.

Testing Instructions

Installing:
Just build the Web Links package (or use the attached one) and install normally.

Updating:
Build the package with version 3.5.1 in jorobo.ini (or use the attached one) and update with the Joomla! installer. Check if the collation of #__weblinks and the alias column has changed.

screenshot 2016-06-26 14 32 20

pkg-weblinks-3.5.1.zip

avatar yvesh yvesh - open - 26 Jun 2016
avatar zero-24
zero-24 - comment - 26 Jun 2016

@yvesh what is about the mysql versions (client & server) that can't handle uft8mb4?

see: https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_admin/script.php#L1684-L1805

avatar yvesh
yvesh - comment - 26 Jun 2016

@zero-24 you are right. Already suppressed that mess from my memories.. :-) Going to update the PR to check that in the script.php before..

avatar mbabker
mbabker - comment - 26 Jun 2016

You don't need to do this as a complex conditional in your PHP update script. You can make it a regular SQL schema update and since the MySQL drivers downgrade gracefully from utf8mb4 to utf8 if the former's support isn't there you don't need to do any conditionals around things.

See BabDev/Podcast-Manager@39e8904 for how I did it in an extension.

avatar yvesh
yvesh - comment - 26 Jun 2016

@mbabker That's what i did before until @zero-24 complained.. Then i revert it back.. :)

avatar mbabker
mbabker - comment - 26 Jun 2016

The core does it in a massively complex way for reasons I never fully grasped or paid attention to. At an extension level, if you have to do it with PHP scripts then you're doing something majorly wrong.

avatar zero-24
zero-24 - comment - 26 Jun 2016

Ok sorry I don't know that behaviors in the MySQL servers.

avatar yvesh
yvesh - comment - 26 Jun 2016

Okay reverted back to initial version

avatar chrisdavenport chrisdavenport - test_item - 26 Jun 2016 - Tested successfully
avatar chrisdavenport
chrisdavenport - comment - 26 Jun 2016

I have tested this item successfully on c6821b0

New install and upgrade both work correctly.


This comment was created with the J!Tracker Application at issues.joomla.org/weblinks/226.

avatar pritalpatel
pritalpatel - comment - 1 Jul 2016

Thanks, I install the package its work correctly.
weblink

avatar pritalpatel pritalpatel - test_item - 1 Jul 2016 - Tested successfully
avatar pritalpatel
pritalpatel - comment - 1 Jul 2016

I have tested this item successfully on c6821b0


This comment was created with the J!Tracker Application at issues.joomla.org/weblinks/226.

avatar infograf768
infograf768 - comment - 2 Jul 2016

What will happen if a < 3.6.0 site updates weblinks with a change to utf8mb4 ?

avatar mbabker
mbabker - comment - 2 Jul 2016

Technically this would only be valid against a Joomla 3.5 or later install. So an install script and the update server definition should limit presenting this update to only those versions (i.e. Joomla 3.4 shouldn't be able to update to it).

avatar yvesh
yvesh - comment - 3 Jul 2016

Okay if you want i go and change that a third time (had that check already in script.php..).

@mbabker @chrisdavenport @infograf768 Any plans for how long Weblinks should support < 3.5.0 installs?

avatar mbabker
mbabker - comment - 3 Jul 2016

It shouldn't have to.

avatar chrisdavenport
chrisdavenport - comment - 4 Jul 2016

So all we need to do is bump the version requirement in the XML files to 3.5 then?

avatar javigomez
javigomez - comment - 7 Jul 2016

Please @yvesh update your pull with latest master to see if Travis passes this time.

Thanks

avatar yvesh
yvesh - comment - 8 Jul 2016

@javigomez Done, passing now :)

avatar jissues-bot
jissues-bot - comment - 8 Jul 2016

This PR has received new commits.

CC: @chrisdavenport, @pritalpatel

avatar jissues-bot
jissues-bot - comment - 8 Jul 2016

This PR has received new commits.

CC: @chrisdavenport, @pritalpatel

avatar chrisdavenport chrisdavenport - test_item - 8 Jul 2016 - Tested successfully
avatar chrisdavenport
chrisdavenport - comment - 8 Jul 2016

I have tested this item successfully on 5cbb43d


This comment was created with the J!Tracker Application at issues.joomla.org/weblinks/226.

avatar Ruchiranga Ruchiranga - test_item - 27 Jul 2016 - Tested successfully
avatar Ruchiranga
Ruchiranga - comment - 27 Jul 2016

I have tested this item successfully on 5cbb43d

Success


This comment was created with the J!Tracker Application at issues.joomla.org/weblinks/226.

Add a Comment

Login with GitHub to post a comment