-
-
Notifications
You must be signed in to change notification settings - Fork 806
Refactor Config in Core Joomla Configuration #9924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…pgrade to 6.4.5 (and higher) only
… instead of string
I have tried it on several test installations, but I am unable to install Kunena with this pull request. 0 Call to undefined method Joomla\Filesystem\Folder::exists() Call Stack
|
…as package install script has issues
@rich20 , so this error comes from the package install script, this issue now surfaces because this function is now used again and on previous updates not. Can you rebuild and check if this now works correct? (note, also the build file has changed) @xillibit because in the package script we now only allow updates from 6.4.5, this gives the opportunity to remove all old updates / checks / installs / conversions from the package script as these will never be executed. Just like Joomla when going to 6 it requires being on 5.4 this enables starting with a clean slate. |
Now i get:
To what extent does it still comply with the test specifications with the new script? For example, point five “check if ./administrator/components/com_kunena [tmpl/config | src/View/Config | src/Controller/ConfigController.php | src/Model/ConfigModel.php] have been removed.” No files are removed. |
Thanks @rich20 , I checked on upgrade where that should be on update when removing the files / folders. Should be fixed now. |
… instead of string
…as package install script has issues
… into refactorconfig
@xillibit, just added property defaultPage = recent. another static one that was not available via configuration in 6.4.5 |
This option disable/enableEmoticons used to be found on the BBCode tab, but was removed a long time ago.
This option ThreadedLayouts and other layouts was available in the early days of Kunena, but has never been used in newer versions. We have not removed this setting only so that other template authors can use it. These options have no function in our template.
This setting is located under the “Extra” tab (at the very bottom), but a yes/no button would also suffice.
You're right, it's not the same. There is no length setting for the personal text (at least I can't find such an option). But even in Kunena 6.4, the maximum length is 50 characters; I can't enter more than that. |
Good morning @rich20 , valuable info! so with that information I would propose the following:
1 = done |
'Fix for removing Kunena via Tools' Has the option been completely removed? |
Yes this option has been removed |
This PR now also has the fix for the complete removal of the media/kunena folder when uninstalling the package |
BTW, this is a B/C break for templates: these should update their code. So probably good to note this when we do a RC version? |
Pull Request for Issue # .
Summary of Changes
This is complete refactor of the configuration for com_kunena. It has been completely removed and configuration settings have been converted to Core Joomla Component options.
The usage of the configuration settings in code is (almost fully) unchanged: Library file KunenaConfig.php which is responsible in the code for getting the configuration has been completely rewritten, but the 'interface' with it is still the same
Testing Instructions
Re-importing settings:
the upgrade to 7.0.0.DEV doesn't remove the old configuration table, on installing (upgrading) 7.0.0.DEV, the table contents is converted and imported into the #___extensions table record for com_kunena, field params. This is done one time. If you want to test it again, then you need to set the params for com_kunena in the #__extensions table to '{}'. Installing the 7.0.0.DEV package will then import the configuration again.
Upgrade to 7.0.0.DEV is only possible when the installed version is 6.4.5 or higher: this is because the conversion of the configuration depends on the correct configuration variable names, these have been changed during the releases so we want to make sure we have the correct set
Removed:
The complete Config MVC + tmpl has been removed
Changed properties:
latestCategory, rssExcludedCategories, rssIncludedcategories previously returned a string (comma separated categorie ids), now they return an array. I have changed the TopicController to handle this change.
@xillibit : the following settings are static (they are set by code in 6.4.5 and not via configuration), is this correct or am I missing something?