? ? Pending

User tests: Successful: Unsuccessful:

avatar richard67
richard67
13 Oct 2019

Pull Request for Issue # .

Summary of Changes

Change the value of column field_mappings of the record for com_users in table #__content_types from '"core_created_time":"registerdate"' to '"core_created_time":"registerDate"' so the camel case of the register date columns fits to the name of that columns in table #_users, like is is already correct for column lastvisitDate.

Testing Instructions

Can be merged on review.

Important for maintainer

@wilsonge I've made 2 commits, one for joomla.sql for new installations and one for the update sql script, so in case if you think the update statement is too risky and we should leave updated installations alone, just cherry pick the first commit for the new installations. But I don't really see a risk in the update sql.

avatar richard67 richard67 - open - 13 Oct 2019
avatar richard67 richard67 - change - 13 Oct 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Oct 2019
Category SQL Administration com_admin Postgresql Installation
avatar richard67 richard67 - change - 13 Oct 2019
The description was changed
avatar richard67 richard67 - edited - 13 Oct 2019
avatar richard67 richard67 - change - 13 Oct 2019
The description was changed
avatar richard67 richard67 - edited - 13 Oct 2019
avatar richard67 richard67 - change - 13 Oct 2019
Labels Added: ?
avatar wilsonge
wilsonge - comment - 16 Oct 2019

I'm happy with this. But @alikon i'd like you to do a secondary review on the update statement as punishment someone who's done this before and knows the risk

avatar richard67
richard67 - comment - 16 Oct 2019

@wilsonge @alikon The update with replace statement in the update sql script is safe because the search string "core_created_time":"registerdate" covers the complete parameter name value pair including all double quotes at beginning and end, so partial strings will not match, which was the problem in past issues with such statements.

avatar Wolf-Rost Wolf-Rost - test_item - 19 Oct 2019 - Tested successfully
avatar Wolf-Rost
Wolf-Rost - comment - 19 Oct 2019

I have tested this item successfully on 138d505


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

avatar punambaravkar punambaravkar - test_item - 19 Oct 2019 - Tested unsuccessfully
avatar richard67
richard67 - comment - 19 Oct 2019

@punambaravkar Could you report back how you have tested this PR? It does not make sense to test it with patchtester because it contains sql changes only. You have to run the SQL statements in file administrator/components/com_admin/sql/updates/mysql/4.0.0-2019-10-13.sql in PhpMyAdmin or file administrator/components/com_admin/sql/updates/postgresql/4.0.0-2019-10-13.sql in PhpPgAdmin, depending on which kind of database you use.

avatar richard67
richard67 - comment - 19 Oct 2019

@punambaravkar Please read my previous comment and either change back your test result to "I have not tested this item" in the issue tracker, or test it in the right way. And in general leaving a negative test result without giving any information what has failed is not ok.

avatar richard67
richard67 - comment - 23 Oct 2019

I'm happy with this. But @alikon i'd like you to do a secondary review on the update statement as punishment someone who's done this before and knows the risk

@alikon please do review as George required in his comment above. Execute the SQL statement in the update sql script created by this PR on a J4 installation and then check in PhpWhateverYourDbTypeIsAdmin in table #__content_types that all is like before except of the thing changed with the statement.

avatar alikon
alikon - comment - 24 Oct 2019

review done and update query tested, all good for what i can see

avatar alikon alikon - test_item - 24 Oct 2019 - Tested successfully
avatar alikon
alikon - comment - 24 Oct 2019

I have tested this item successfully on d4871eb


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

avatar Quy Quy - change - 24 Oct 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 24 Oct 2019

RTC


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

avatar wilsonge wilsonge - change - 25 Oct 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-10-25 22:53:43
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 25 Oct 2019
avatar wilsonge wilsonge - merge - 25 Oct 2019
avatar wilsonge
wilsonge - comment - 25 Oct 2019

Thanks!

Add a Comment

Login with GitHub to post a comment