User tests: Successful: Unsuccessful:
Pull Request for Issue #46262 .
From what I see, there are some problems with current implementation of version history
There are some issues with current code, one of them is marked as release blocker. And there is logical error, complicated, not reliable code, too. Install blog sample data does not work.
Should work OK.
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
Status | New | ⇒ | Pending |
Category | ⇒ | SQL Administration com_admin Postgresql com_content com_contenthistory Libraries |
Labels |
Added:
PR-6.0-dev
|
Category | SQL Administration com_admin Postgresql com_content com_contenthistory Libraries | ⇒ | SQL Administration com_admin Postgresql com_content com_contenthistory Installation Libraries |
I have tested this item ✅ successfully on 46526ae
Tested successfully
@softforge Could you test again with the latest changes (just in case if you are not already on it)?
I have tested this item ✅ successfully on 1146667
I've tested so many scenarios that it would be too long to describe, on a new installation as well as on a site updated from 5.4-dev to the custom update URL for this PR, with some versions created before the update.
When restoring an old version (is_legacy=1) from before the update to 6, the behaviour is the same as it is on 5.x, i.e. tags are not restored and lost, and changes on fields are not restored. That is like without this PR and like on 5.x.
When restoring versions created after the update or on the new installation, everything works like without this PR, i.e. issues #46211 and #46213 are still fixed.
Installation of blog sample data works, i.e. issue #46262 is fixed.
Multilanguage sample data and testing sample data work, too.
Labels |
Added:
Release Blocker
bug
|
@joomdonation Could you change the testing instructions? Currently they still refer to the draft status.
@richard67 Updated. Hopefully it is clear enough.
I have tested this item ✅ successfully on 1cb445c
I've tested on a new installation as well as on a site updated from 5.4-dev to the custom update URL for this PR, with some versions created before the update.
When restoring an old version (is_legacy=1) from before the update to 6, the behaviour is the same as it is on 5.x, i.e. tags are not restored and lost in the edit form, and changes on fields are not restored in the edit form. That is like without this PR and like on 5.x.
When restoring versions created after the update or on the new installation, everything works like without this PR, i.e. issues #46211 and #46213 are still fixed, and tag and fields information is properly restored from these versions.
Installation of blog sample data works, i.e. issue #46262 is fixed.
Multilanguage sample data and testing sample data work, too.
Finally, this PR fixes an issue with repeatable subform fields in the history version comparison. Without this PR you get an error about array to string conversion.
Will retest later.
Category | SQL Administration com_admin Postgresql com_content com_contenthistory Libraries Installation | ⇒ | SQL Administration com_admin Postgresql com_categories com_content com_contenthistory Installation Libraries |
@joomdonation It needs to remove the obsolete use Joomla\CMS\Versioning\VersionableTableInterface;
statement from file libraries/src/Table/Category.php
to make the cs checker happy.
Update: Fixed with commit bc7e7ad .
Category | SQL Administration com_admin Postgresql com_content com_contenthistory Libraries Installation com_categories | ⇒ | SQL Administration com_admin Postgresql com_categories com_content com_contenthistory com_tags Installation Libraries |
Category | SQL Administration com_admin Postgresql com_content com_contenthistory Libraries Installation com_categories com_tags | ⇒ | SQL Administration com_admin Postgresql com_banners com_categories com_contact com_content com_contenthistory com_tags Installation Libraries |
I have tested this item ✅ successfully on 7d101ca
Some known behaviour quirks. These have been documented for future attention.
Tested articles, tags, custom fields inc. subforms.
Tested Contacts, Banners, Clients, Tags
Tested categories across all types where exists.
I have tested this item ✅ successfully on 7d101ca
Same tests as described in my previous results + some more things with subforms.
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-10-12 17:16:15 |
Closed_By | ⇒ | softforge | |
Labels |
Added:
RTC
|
I see two other bugs (out of scope of this PR):
save_history
is no longer take in accountjoomla-cms/plugins/behaviour/versionable/src/Extension/Versionable.php
Lines 128 to 130 in ef7b7e0
@Bodge-IT @softforge Should I create a new issue for that? - because this PR is now merged
Thank you @joomdonation and all those involved in this epic work
I see two other bugs (out of scope of this PR):
* component parameter `save_history` is no longer take in account https://github.com/joomla/joomla-cms/blob/ef7b7e0a0b28db5fac3de60eedfbbc465f92ac0e/plugins/behaviour/versionable/src/Extension/Versionable.php#L128-L130 * if the item is deleted, the history item is not deleted
@Bodge-IT @softforge Should I create a new issue for that? - because this PR is now merged
Yes please Christian, lets review from there.
I see two other bugs (out of scope of this PR):
- component parameter
save_history
is no longer take in account
joomla-cms/plugins/behaviour/versionable/src/Extension/Versionable.php
Lines 128 to 130 in ef7b7e0
- if the item is deleted, the history item is not deleted
@Bodge-IT @softforge Should I create a new issue for that? - because this PR is now merged
Yes please
Is that issue a release blocker, too?
My first tests on a new installation with this PR look good. I will continue with testing, also update from 5.4 to see if the update SQL works, and report back results later.