User tests: Successful: Unsuccessful:
This plugin adds the option to use module versions. Every time a module is saved, a new version is stored in the database.
Stored versions can be restored by selection the version you want to restore and clicking the Restore button. The current version is marked with a star. If a version is restored and again saved, then this will be a new version.
The module parameters can be viewed in an accordion as raw output for comparison.
In the plugin parameters there are two options. One to disable the parameter view and one to set the number of versions.
When a module is deleted, also the corresponding versions for that module will be deleted.
Note: The is some styling added, so a npm ci for building the stylesheets is required,
Please select:
Documentation link for docs.joomla.org: Will be created after this PR is merged.
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org: Will be created after this PR is merged.
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Language & Strings Repository NPM Change SQL Installation Postgresql Front End Plugins |
Labels |
Added:
Language Change
NPM Resource Changed
PR-4.3-dev
|
This PR is missing the update sql
Because the UI doesnt allow you to compare two versions it makes it very hard to see what has changed
There needs to be a process that creates entries in the module_versions table for all existing modules when joomla is updated to a version that includes this plugin.
Otherwise what happens is that you open an existing article, make a change and save.
there is now ONE entry in the versions table. so if you click on the versions button it will only show you the current version and not the previous version
The most important thing for me would be to see any changes in the menu assignment. this is completely missing
Frontend Module changes
If you edit a module in the frontend then a change is not recorded in the module_versions table
Resolving all of the above and this will be an awesome addition
Resolving all of the above and this will be an awesome addition
Resolving all of the above and this will be an awesome addition
Thank you, Brian @brianteeman , very thorough walkthrough, appreciated!
Why are you not using the version system we have already? Putting that functionality into a system plugin which gets loaded on every page is a wrong approach. This should all be built into the modules component and not into a plugin. What is the reason to have this in a system plugin?
Sorry I forgot to let you know what a better way is. You should look into the contenthistory component how it is done for content. What you also have to do is to save the modules in the history table, add a version to the modules table, maybe also to the modules to menu table. Then make sure only the module with the higest version is loaded. And I am sure I forget something but this should be the way to go.
I am going to close this PR.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-11-02 08:47:19 |
Closed_By | ⇒ | rdeutz |
Thank you all for the feedback, it is much appreciated.
For people interested in using this plugin on there site, please go to https://github.com/R2H-BV/moduleversion/releases to download the latest version. @brianteeman thanks for all your feedback. I'll try to implement the things mentioned by you.
Great stuff. Really looking forward to this. Just wondering if it should use the same ui as versioning in com_content etc?