User tests: Successful: Unsuccessful:
Pull Request for Issue #33314 .
This pull request (PR) adds an update SQL script (one for each db type) to fix the bootstrap size and header tag parameters of those admin modules touched by PR #33045 when updating from 4.0 Beta 7 or a previous 4.0 Beta.
In opposite to past cases when we had to manipulate JSON parameters with update SQL scripts, this script here uses JSON functions.
The reason for this is that
REPLACE
for strings.The requirement for point 1. is achieved by including the condition params LIKE '{%}'
into the WHERE
clause of the update statement before extracting the JSON values in subsequent conditions.
Beside this, the WHERE
clause of the update statement is made as precise as necessary in order to update only the desired modules.
Unfortunately this PR can't be merged right now as the minimum version requirements of Joomla 4 for databases are lower than what is needed to support JSON functions.
=> Ping @wilsonge : One more reason to raise the version requirement for MySQL to 5.7 and for MariaDB to 10.2.3 in Joomla 4.
This PR needs to be tested for all supported database types (MySQL, MariaDB and PostgreSQL). In case of MySQL or MariaDB, if you can use both the "MySQLi" and the "MySQL (PDO)" database driver, test with both.
All testers please report back which database and driver types you have tested so it can be properly recorded.
The PR cannot be tested with patchtester because it needs to test database updates. It has to be tested as described below with use of update packages or custom update URL's.
Have an installation of Joomla 4.0 Beta 7 or earlier (but not before Beta 4) with clean admin control panel modules, i.e. you haven't modified them, or make a new installation of 4.0 Beta 7 if you don't have that.
In Global Configuration, switch on "Debug System" and set "Error Reporting" to "Maximum" to be sure to get notice of any PHP or SQL errors.
Update to the latest 4.0 nightly build.
Check the admin control panel.
Result: See section "Actual result BEFORE applying this Pull Request" below. The modules look weird.
Using a tool like e.g. phpMyAdmin or phpPgAdmin (depending on your database type), export the content of table #__modules
(Replace #__
by your table prefix).
Update to the update package built by Drone for this PR.
Check again the admin control panel.
Result: See section "Expected result AFTER applying this Pull Request" below. The modules look as they should.
Export again the content of table #__modules
into a different file than the one used in step 5.
Compare the file created in step 8 with the one created in step 5, and compare the differences you can see with the differences shown in PR #33045 for the base.sql
file for your database type..
Result:
#__modules
which have been modified in file base.sql
with PR #33045 have also been modified when updating to the update package of this PR.#__modules
have not been modified during the update.base.sql
file in PR #33045 .bootstrap_size
and the header_tag
properties have been changed or have been added where missing in the same way as in the base.sql
file in PR #33045 for new installations.See issue #33314.
After updating a Joomla 4.0 Beta 7 (or previous 4.0 Beta) to latest nightly build:
After updating a Joomla 4.0 Beta 7 (or previous 4.0 Beta) to the update package built by drone for this PR, the admin dashboard looks the same as after a new installation of current 4.0-dev or latest nightly without this PR applied.
None.
Status | New | ⇒ | Pending |
Category | ⇒ | SQL Administration com_admin Postgresql |
Title |
|
Title |
|
Labels |
Added:
?
|
Title |
|
Title |
|
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-04-27 16:04:19 |
Closed_By | ⇒ | richard67 | |
Labels |
Added:
?
?
|
Closing in favour of #33375 .