-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.0] b/c plugin for deprecation #40664
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
|
Please can you suggest an extension that can be used to test the plugin with |
|
at the moment I think not even Joomla it self works without the plugin... I will change it to draft for the moment. |
…plugin-mod-1 [CMS PR 40664] SQL and ExtensionsHelper fixes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we not leave the old file and do a n include of the new location for BC reasons? This looks for me like a rather hard break.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the whole point of the plugin, that you are able to disable deprecation. just require it from the new location would make no difference to now and make the plugin useless.
|
Speaking from past experience the main problem that we have to avoid with this plugin is not the code but the communication of what it does. If it is not enabled by default then we will get lots of issues reported on forums etc where the first response to any issue will always be to enable the plugin even if it is completely unrelated |
True, that's one of the concerns I was thinking about and started to talk to benjamin. For upgrades, I think having it always active is the safest way for us and the b/c promise Multiple options came to my mind on new installations (which may also could effect upgrades)
Options 3-4 are not so good options in my opinion. 1 or 2 would work. In both cases I would like to add a quick Icon telling the site owner that the plugin is enabled and that x extensions doesn't announce full compatibility with Joomla 5. I would also like to collect the calls to deprecated functions (based on our existing deprecation log) and show it to the user and of course to the extension developer. Not sure if this works in all situation but could provide some help. |
# Conflicts: # tests/Unit/Libraries/Cms/Html/HtmlDateTest.php # tests/Unit/Libraries/Cms/Html/HtmlNumberTest.php # tests/Unit/Libraries/Cms/Html/HtmlStringTest.php # tests/Unit/Libraries/Cms/Html/HtmlTelephoneTest.php
|
please add the plugin to |
do you mean this entry? https://github.com/joomla/joomla-cms/pull/40664/files#diff-45688fa5398ae3d4bab3daa80bc4d2ea4785370233b82a7326f9676f965ec9ebR286 |
|
my bad - i missed it |
|
I'm merging this for now for a minimal impact version of the plugin as base for other deprecations. |
…a#41211) * Add deleted files and folders from PRs joomla#40664 , joomla#41070 and joomla#41101 * Remove false alarm due to missing upmerge of PR joomla#41101
Add a plugin which provides backward compatibility for the deprecation which has been deprecated prior Joomla! 5.0. This plugin will be activated for upgrades automatically and maybe be disabled for new Joomla! 5 installations.
At this point in time it's not clear we introduce an additional XML parameter which defines the needed b/c plugin version (for example 4.0 means that the extension needs the backward compatible polyfills based on Joomla 4.0 version and needs the plugin in Joomla 5).
Cleanup is still needed
Summary of Changes
Current Status of the plugin:
Testing Instructions
Use an joomla 4 extension which needs one or all of the polyfills and try it with activated and disabled plugin.
Actual result BEFORE applying this Pull Request
Works.
Expected result AFTER applying this Pull Request
Works with active plugin, may crash without active plugin if the extension uses b/c code.
Link to documentations
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