PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar richard67
richard67
15 Jun 2023

Pull Request for #40768 (comment) .

Summary of Changes

With my just merged PR #40768 , extensions uninstallation with optional parameter migration on update was implemented in 5.0-dev.

But the enabled status of the extension is not passed to the migration function, so that function can not work differently depending on that status. There might also be other columns in the extensions table which might be of interest of a migration function.

This PR here fixes that by selecting all columns with the database query, so the $row object passed to the migration function contains them all.

Testing Instructions

Code review should be enough.

Actual result BEFORE applying this Pull Request

The extensions uninstallation with parameter migration on update passes only the extension_id and the params properties of the extension to the migration function.

Expected result AFTER applying this Pull Request

The extensions uninstallation with parameter migration on update passes all properties of the extension to the migration function.

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 15 Jun 2023
Category Administration com_admin
avatar richard67 richard67 - open - 15 Jun 2023
avatar richard67 richard67 - change - 15 Jun 2023
Status New Pending
avatar richard67 richard67 - change - 15 Jun 2023
The description was changed
avatar richard67 richard67 - edited - 15 Jun 2023
avatar richard67 richard67 - change - 15 Jun 2023
The description was changed
avatar richard67 richard67 - edited - 15 Jun 2023
avatar richard67 richard67 - change - 15 Jun 2023
The description was changed
avatar richard67 richard67 - edited - 15 Jun 2023
avatar richard67 richard67 - change - 15 Jun 2023
The description was changed
avatar richard67 richard67 - edited - 15 Jun 2023
avatar richard67 richard67 - change - 16 Jun 2023
Labels Added: PR-5.0-dev
avatar HLeithner
HLeithner - comment - 16 Jun 2023

is there a reason why we don't load all columns?

avatar richard67
richard67 - comment - 16 Jun 2023

is there a reason why we don't load all columns?

@HLeithner You mean with a SELECT * FROM ...? Not really a reason, except maybe that when specifying columns explicitly I can see in the code which columns I have. We won't need all of them, but selecting all is of course better for code maintainability, one secret place less to change. If you want I can do that.

avatar HLeithner
HLeithner - comment - 16 Jun 2023

please change it to * thanks

avatar richard67 richard67 - change - 16 Jun 2023
The description was changed
avatar richard67 richard67 - edited - 16 Jun 2023
avatar richard67 richard67 - change - 16 Jun 2023
Title
[5.0] Add enabled property to parameter for migration methods of extensions uninstallation on update
[5.0] Select all columns in extensions uninstallation on update
avatar richard67 richard67 - edited - 16 Jun 2023
avatar richard67
richard67 - comment - 16 Jun 2023

please change it to * thanks

Done, and title and description changed accordingly.

avatar HLeithner HLeithner - close - 16 Jun 2023
avatar HLeithner HLeithner - merge - 16 Jun 2023
avatar HLeithner HLeithner - change - 16 Jun 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-06-16 11:25:35
Closed_By HLeithner
avatar HLeithner
HLeithner - comment - 16 Jun 2023

thanks

Add a Comment

Login with GitHub to post a comment