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.
The WHERE
clause of the update statement is made as precise as possible in order to really make sure to update only the desired modules.
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 dashboard and other dashboards (users, privary, ...).
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 dashboard and other dashboards (users, privary, ...).
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.#__modules
have not been modified during the update.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 |
The first update looks the same as the second. What am I missing?
Sorry forgot to add the test environment part
Database Type mysql
Database Version 10.5.7-MariaDB
Database Collation latin1_swedish_ci
Database Connection Collation utf8mb4_general_ci
Database Connection Encryption None
Database Server Supports Connection Encryption No
PHP Version 7.3.27
@brianteeman There are cases with space and without space between name and value, that's the difference between the first 2.
ah - i see that now. guess I need new glasses
@brianteeman Thanks for testing.
I have tested this item
Tested on MariaDB. The PR works as decribed. Own modules, added to the dashboard by the user, remain unchanged, this is ok. If a user has changed the sizes of modules before this PR, they are overwritten. As these changes had no consequences before #33045 was merged, this is correct too.
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-04-30 11:23:53 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
?
|
This should be reverted. User data should not be randomly changed without good reason.
The good reason can be found in the issue.
It's not good enough.
@SharkyKZ How good a reason is depends not only on the severity of the issue but also on the importance of the data we update or not update. Here we are updating only stuff which never existed before J4 and where one very unlikely ever has made some important changes, the parameters of the template styles of the "Atum" template admin modules. Be honest: Who do you think has made any important changes on these? It would be different if I'd update some menu item stuff, but here I think your concerns are more academical than of practical relevance.
Update: Had mixed it up with another PR so had to correct something in my previous comment, see strike through. But it also applies here that it's something which came with J4 and not from J3 what we update.
He is just trolling.
This merge was tested by @brianteeman @chmst Approved by @alikon and merged by @rdeutz - unfortunately Sharky believes he is better than you all. It seems his ban from the project has ended and not long enough.
This is not the only PR today he has
In general I agree that changing params like this PR does should not be done BUT as explained by @richard67 there are always exceptions and this is one
I just see I've mixed up this one here with another one so I had to correct my previous comment a bit, see the strike through text. But the main message stays the same.
I have tested this item✅ successfully on e72a196
Does what it says
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33375.