PR-5.2-dev Code Review Pending

User tests: Successful: Unsuccessful:

avatar pe7er
pe7er
18 Jan 2025

Refactored JDatabaseDriver to Joomla\Database\DatabaseDriver

Summary of Changes

Refactored some params to use Joomla\Database\DatabaseDriver instead

Testing Instructions

Code review

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar pe7er pe7er - open - 18 Jan 2025
avatar pe7er pe7er - change - 18 Jan 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jan 2025
Category Administration Installation
avatar Hackwar
Hackwar - comment - 18 Jan 2025

Are you sure that it should be DatabaseDriver and not DatabaseDriverInterface?

avatar richard67 richard67 - test_item - 19 Jan 2025 - Tested successfully
avatar richard67
richard67 - comment - 19 Jan 2025

I have tested this item ✅ successfully on c855172


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

avatar richard67 richard67 - test_item - 19 Jan 2025 - Not tested
avatar richard67
richard67 - comment - 19 Jan 2025

I have not tested this item.

Reverting my test result as I hadn't seen @Hackwar 's comment.


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

avatar pe7er
pe7er - comment - 19 Jan 2025

Are you sure that it should be DatabaseDriver and not DatabaseDriverInterface?

No, I'm not. I chose to replace JDatabaseDriver with DatabaseDriver because
plugins/behaviour/compat/src/classmap/classmap.php states

JLoader::registerAlias('JDatabaseDriver', '\Joomla\Database\DatabaseDriver', '6.0');

If it should be DatabaseDriverInterface, could you please correct it?

avatar laoneo
laoneo - comment - 20 Jan 2025

Yes please change it to the interface as the model doesn't get the concrete class injected.

avatar pe7er pe7er - change - 20 Jan 2025
Labels Added: PR-5.2-dev Code Review
avatar pe7er
pe7er - comment - 20 Jan 2025

Yes please change it to the interface as the model doesn't get the concrete class injected.

Thanks!

I've refactored \JDatabaseDriver to DatabaseInterface

avatar Hackwar Hackwar - change - 20 Jan 2025
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-01-20 13:05:16
Closed_By Hackwar
avatar Hackwar Hackwar - close - 20 Jan 2025
avatar Hackwar Hackwar - merge - 20 Jan 2025

Add a Comment

Login with GitHub to post a comment