[3.x] Added some missing deprecations#30938
[3.x] Added some missing deprecations#30938rdeutz merged 2 commits intojoomla:stagingfrom alikon:patch-81
Conversation
|
I'm not sure if it's a good idea to do it without flood protection but maybe you could add "will be removed in Joomla! 4.0" ? Don't know how the order deprecation warnings are named |
|
What kind of flood protection do you have in mind? This is only added when you have debug and api deprecations enabled right? |
yes |
|
iirc we have some "log only once" if statements for other deprecations but maybe I'm wrong. If this function is called really often it could lead to a performance penalty for 3.x series. |
Only once you have debug + api deprecation logging enabled right? Else nothing is written right? |
This only logs something if you enable debug and enable logging of deprecated api in the plugin. It is off by default. AND it warns you to only have it running for a short period of time. I guess you've never used it |
yes that's true, but it is already like this when you enable LOG Api deprecations, and plus this should be done only on purpose
i not aware about this..... |
|
I have tested this item ✅ successfully on ecaa6c2 Plugins: System - Debug > Log Deprecated API = Yes This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30938. |
|
@alikon why are only your PR getting the hacktoberfest tag? |
|
due to changed rules https://hacktoberfest.digitalocean.com/hacktoberfest-update |
|
|
yes exactly these are the new rules |
|
In other words you do not need to add the label. but if you are going to choose that option then you should be applying it to all PRs not just yours or those that someone asks for the label. Most people dont know to ask. I want everyone to plant a tree |
We have the |
|
Update 2020-10-17: Meanwhile I've decided to join, too. Wanna plant a tree, too. |
|
yes the label is just one of the options available, sometimes a pr need some time to be merged and /or approved |
|
so we dont need the label - thats good to know!! |
|
I have tested this item ✅ successfully on ecaa6c2 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30938. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30938. |
Summary of Changes
Added some missing deprecations:
isAdmin()isSite()getCfg()Testing Instructions
enable debug plugin
enable Log Depreated API
install some extensions that use one ofthose deprecated methods
or simply create a dummy sistem plugin like this one
Actual result BEFORE applying this Pull Request
no depreactions logged
Expected result AFTER applying this Pull Request
2020-10-06T09:41:08+00:00 WARNING 172.16.238.1 deprecated Joomla\CMS\Application\CMSApplication::isAdmin() is deprecated. Use JFactory->getApplication()->isClient('administrator') instead.