? Composer Dependency Changed ? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
19 Feb 2022

Summary of Changes

Injects the database instance into the model. So we don't have to rely on the global db anymore. Additionally it deprecates the use of the database in the model constructor and uses the aware interface and trait from the db package.

Testing Instructions

  • Browse around in the back end and front end of Joomla
  • Open the back end user list view
  • Open the back end modules list view

Actual result BEFORE applying this Pull Request

All works.

Expected result AFTER applying this Pull Request

All works.

avatar laoneo laoneo - open - 19 Feb 2022
avatar laoneo laoneo - change - 19 Feb 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Feb 2022
Category Libraries
avatar laoneo laoneo - change - 19 Feb 2022
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 19 Feb 2022
Category Libraries Administration com_config com_installer com_menus com_modules com_users Front End com_content Libraries
avatar laoneo laoneo - change - 19 Feb 2022
The description was changed
avatar laoneo laoneo - edited - 19 Feb 2022
avatar wilsonge
wilsonge - comment - 22 Feb 2022

This looks wrong to me. The only place that should be database aware is the model. All controller and views database queries should be eventually moved into the model. not be made database aware

avatar joeforjoomla
joeforjoomla - comment - 22 Feb 2022

This looks wrong to me. The only place that should be database aware is the model. All controller and views database queries should be eventually moved into the model. not be made database aware

Totally agree with @wilsonge

avatar laoneo
laoneo - comment - 23 Feb 2022

This looks wrong to me. The only place that should be database aware is the model. All controller and views database queries should be eventually moved into the model. not be made database aware

I agree too, and the problem is that there are queries which do not actually fit into a model, for example against the extensions table. I mean I can move all of them to the model of the view, but would be nicer to have them just from the beginning on the right place.

avatar joomla-cms-bot joomla-cms-bot - change - 23 Feb 2022
Category Libraries Administration com_config com_installer com_menus com_modules com_users Front End com_content Administration com_config Libraries
6c925fc 23 Feb 2022 avatar laoneo cs
avatar wilsonge
wilsonge - comment - 23 Feb 2022

This looks better. I don't think that factory should be databaseaware. Just the model. But definitely better than what we had before.

avatar laoneo
laoneo - comment - 25 Feb 2022

True, removed the interface.

avatar BPBlueprint
BPBlueprint - comment - 8 Mar 2022

I have tested this item successfully on 67cdd83


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

avatar BPBlueprint BPBlueprint - test_item - 8 Mar 2022 - Tested successfully
avatar joomla-cms-bot joomla-cms-bot - change - 10 Mar 2022
Category Libraries Administration com_config Administration com_config External Library Composer Change Libraries
avatar laoneo laoneo - change - 10 Mar 2022
Labels Added: Composer Dependency Changed
avatar laoneo laoneo - change - 10 Mar 2022
The description was changed
avatar laoneo laoneo - edited - 10 Mar 2022
avatar joomla-cms-bot joomla-cms-bot - change - 5 Apr 2022
Category Libraries Administration com_config External Library Composer Change Administration com_config External Library Composer Change Libraries Unit Tests
avatar laoneo laoneo - change - 5 Apr 2022
Labels Added: ?
4a66003 5 Apr 2022 avatar laoneo typo
avatar roland-d roland-d - close - 14 Apr 2022
avatar roland-d roland-d - merge - 14 Apr 2022
avatar roland-d roland-d - change - 14 Apr 2022
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-04-14 11:38:10
Closed_By roland-d
avatar roland-d
roland-d - comment - 14 Apr 2022

Thank you everybody

Add a Comment

Login with GitHub to post a comment