? ? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
20 May 2021

Code review.

Not a typo.

This method cannot be used - as _buildQuery method doesnt even exist.

I do not believe this method is ever called, and after considerable testing I cannot locate any code or gui interface that would call it.

Happy to be proved wrong, but even if something did call it, they would get a PHP error because _buildQuery method doesnt exist as a string in the whole of a Joomla 4 site.

avatar PhilETaylor PhilETaylor - open - 20 May 2021
avatar PhilETaylor PhilETaylor - change - 20 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 May 2021
Category Front End com_content
avatar rdeutz rdeutz - change - 21 May 2021
Title
[4] Not a typo. Delete whole method from class as it contains calls to methods that dont exist.
[4] Delete whole method from class as it contains calls to methods that dont exist.
avatar rdeutz rdeutz - edited - 21 May 2021
avatar chmst chmst - test_item - 22 May 2021 - Tested successfully
avatar chmst
chmst - comment - 22 May 2021

I have tested this item successfully on 127e4a7

Code review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34060.

avatar joomdonation
joomdonation - comment - 23 May 2021

How do you think about remove _getList method from same class, too ? There is no reason we have to override that method like we are doing at the moment. I would vote to take this change to remove the method before 4.0 release.

avatar PhilETaylor
PhilETaylor - comment - 23 May 2021

If they are generically all the same and there is a parent method that does the same thing then they should be removed.

I would say though that that should be a different PR. This PR is focused on a method that clearly cannot ever be used as the _buildQuery method doesnt exist anywhere in code, so would cause a PHP Fatal error if this code was ever used and so its very obvious that this method has not been called in its current state for many years and can be removed

avatar joomdonation joomdonation - test_item - 23 May 2021 - Tested successfully
avatar joomdonation
joomdonation - comment - 23 May 2021

I have tested this item successfully on 127e4a7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34060.

avatar joomdonation joomdonation - change - 23 May 2021
Status Pending Ready to Commit
avatar joomla-cms-bot joomla-cms-bot - edited - 23 May 2021
avatar joomdonation
joomdonation - comment - 23 May 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34060.

avatar PhilETaylor
PhilETaylor - comment - 23 May 2021

from same class, too

Ah I missed that you mean "this class", the one I changed. Yes it looks odd having a odd setting, that can be done in the view if it was actually needed. (Hint: its not needed)

avatar joomdonation
joomdonation - comment - 23 May 2021

@PhilETaylor Maybe a different PR. Sometime, we have strange code in our codebase. For now, this PR is RTC.

avatar PhilETaylor
PhilETaylor - comment - 23 May 2021

@PhilETaylor Maybe a different PR. Sometime, we have strange code in our codebase. For now, this PR is RTC.

This is #34118

avatar richard67 richard67 - change - 26 May 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-05-26 19:38:25
Closed_By richard67
Labels Added: ? ?
avatar richard67 richard67 - close - 26 May 2021
avatar richard67 richard67 - merge - 26 May 2021
avatar richard67
richard67 - comment - 26 May 2021

Thanks!

Add a Comment

Login with GitHub to post a comment