? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
24 Sep 2019

Pull Request for Issue #26387 .

Summary of Changes

Don't perform update queries where they are not needed.
Make sure that the queries performed are correct

Testing Instructions

Perform a clean install
Check the db table and you will see that modules have no start publishing date

Export the database

apply the pr

Perform a clean install
Check the db table and you will see that modules have a start publishing date

Export the database

Compare the two database exports

The only differences between the two exports will be sessions, admin password and the timestamps.

There should be no difference for the userid
There should be a difference with the modules publish_up date which should be the time of the install and not 0000

Benefits

Less queries performed that are not needed reduces the installation time etc

3c81cc5 24 Sep 2019 avatar brianteeman date
avatar brianteeman brianteeman - open - 24 Sep 2019
avatar brianteeman brianteeman - change - 24 Sep 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Sep 2019
Category Installation
avatar richard67
richard67 - comment - 24 Sep 2019

@brianteeman Is there maybe a step "Apply the changes of this PR" (or similar) missing in the testing instructions between the 1st export and the 2nd clean install?

avatar brianteeman brianteeman - change - 24 Sep 2019
The description was changed
avatar brianteeman brianteeman - edited - 24 Sep 2019
avatar brianteeman
brianteeman - comment - 24 Sep 2019

obviously - but as it wasn't that obvious I updated the instructions

avatar richard67
richard67 - comment - 24 Sep 2019

Code review looks good to me, can do real test tonight after work (if still necessary then).

avatar mbabker
mbabker - comment - 24 Sep 2019

Just as a fair warning, this change probably breaks “fixing” timestamps and user IDs in the localise.sql or custom.sql file if you use those to seed tables with data like the sample data SQL files did. The timestamps are less of an issue, but the user IDs potentially leaves you in a spot where things look broken in the backend.

avatar brianteeman
brianteeman - comment - 24 Sep 2019

@mbabker - forgot that.

of course there would still be an issue with custom.sql being used for custom installations (with extensions) which could not be updated as this function would not be aware of those tables and fields

avatar brianteeman
brianteeman - comment - 24 Sep 2019

also the script is still wrong in its existing format for the use cases you described

avatar brianteeman brianteeman - change - 24 Sep 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-09-24 12:53:23
Closed_By brianteeman
Labels Added: ?
avatar brianteeman brianteeman - close - 24 Sep 2019
avatar wilsonge
wilsonge - comment - 25 Oct 2019

Just got pointed at this by Richard. I'm happy to remove the date code like done here in favour of people using GET_DATE in their sql. but agree with michael the created by/modified by user needs to remain

avatar richard67
richard67 - comment - 26 Oct 2019

See PR #26825 .

Add a Comment

Login with GitHub to post a comment