User tests: Successful: Unsuccessful:
This migrates the CMS to use the Framework v2 Database package and removes the CMS code. Largely, this should have minimal impact on most code, but it will force some updates in some cases.
This branch is still an active work in progress (as shown by the code diff it touches a lot of lines of code), but as of this writing it is in a functional state and ready for some heavy testing and peer review.
Some of the notable changes include:
$db->connect()
or $db->disconnect()
action, these can be subscribed to by plugins; the events and their parameters are documented at https://github.com/joomla-framework/database/blob/2.0-dev/src/DatabaseEvents.phpJDatabase
basically) will no longer be supported, exception handling must be implemented (the current code already throws exceptions so this update only requires that your code be supporting 3.x and later)utf8mb4
logic is now abstracted to a separate interface and is NOT available by default on all database drivers, this means uses of the convertUtf8mb4QueryToUtf8
and hasUtf8mb4Support
methods will have to be wrapped in conditionalsWith this branch installed, a user should be able to use the CMS normally.
To be determined, a large code diff is going to mean a lot of reviewing for this one
Status | New | ⇒ | Pending |
Category | ⇒ | Repository Administration com_admin com_config com_finder com_installer Language & Strings External Library Installation Libraries MS SQL |
Labels |
Added:
?
?
?
|
Category | Repository Administration com_admin com_config com_finder com_installer Language & Strings External Library Installation Libraries MS SQL | ⇒ | Repository Administration com_admin com_categories com_config com_finder com_installer com_menus Language & Strings External Library Installation Libraries MS SQL |
Category | Repository Administration com_admin com_config com_finder com_installer Language & Strings External Library Installation Libraries MS SQL com_categories com_menus | ⇒ | Repository Administration com_admin com_categories com_config com_finder com_installer com_joomlaupdate com_menus Language & Strings External Library Installation Libraries MS SQL |
joomla-framework/database#89 Fixes the unit tests once you have merged in staging
I'm merged up. The namespace map file is broken in the 4.0 branch, apparently you can't concat a constant in a static class property on PHP 5.5.
So now we get a application error which is interesting because I didn't get that on my local tests last night.
I saw the namespace thing too last night but decided against staying up beyond 3am to fix. Will un-static that file later and hopefully that will do the trick
Category | Repository Administration com_admin com_config com_finder com_installer Language & Strings External Library Installation Libraries MS SQL com_categories com_menus com_joomlaupdate | ⇒ | Repository Administration com_admin com_categories com_config com_finder com_installer com_joomlaupdate com_menus Language & Strings Unit Tests External Library Installation Libraries MS SQL |
Labels |
Added:
?
|
Milestone |
Added: |
Milestone |
Added: |
Merged back up with current 4.0 branch. My CI failures are the same as are in the base branch right now.
OK I'm going to make a slightly executive decision here. As we aren't getting any tests on this PR I'm going to merge this as is (knowing that it might cause some issues as the framework branch especially as the CMS aren't in sync at the moment). This is as much motivation for me to sync the CMS and framework as anything else. Plus it will make any issues far more obvious to me.
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-06-19 22:50:49 |
Closed_By | ⇒ | wilsonge |
I've just fixed the unit tests from us breaking things at the close of play today. Please can you merge 4.0 back into here so we can let the tests run again please.
Sidenote: Apparently in travis if no unit tests run because of a fatal error apparently PHP 7.x versions count this as a pass (and 5.x fails)