? Success

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
3 Jun 2017

Summary of Changes

This removes the method ContactModelContact::getContactQuery(). I was unable to find any place in our codebase where we use it and to be honest, it looks as if this was added 8 years ago rather by mistake. All changes since then seem to have been mass-refactorings. While the method does return more or less correct data, it does not return all data that you get with ContactModelContact::getItem(). Since the method is protected and in a component, there should be no issue with backwards compatibility.

avatar Hackwar Hackwar - open - 3 Jun 2017
avatar Hackwar Hackwar - change - 3 Jun 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jun 2017
Category Front End com_contact
avatar brianteeman
brianteeman - comment - 3 Jun 2017

Isnt the correct thing to do is to mark it as deprecated and then remove it in J4

We cant know if some extension/site is using it for example

avatar mbabker
mbabker - comment - 3 Jun 2017

The only way someone could be doing that is if they were extending the model class. As a protected method, you can't call it from outside without using trickery to bypass the scope limitation. So the safest path would be deprecate and remove in 4.0, but from a practical perspective...

avatar brianteeman
brianteeman - comment - 4 Jun 2017

you can't call it from outside without using trickery to bypass the scope limitation

so someone could ;)

i think we need to be strict on this stuff if we are using semver

avatar Hackwar Hackwar - change - 4 Jun 2017
Labels Added: ?
avatar Hackwar
Hackwar - comment - 4 Jun 2017

@brianteeman I'm partially agreeing with you. The SemVer supporter in me says to do this in 4.0, but the developer in me says that whoever uses this must be the stupidest developer out there, since there is a getItem() method which does the same and even more and if I had the choice between using a proper named function with an undertstandeable name vs. a strangely named method which does not return everything that I expect, I would use the former...

avatar brianteeman
brianteeman - comment - 4 Jun 2017

We can't fix stupid

avatar Bakual
Bakual - comment - 4 Jun 2017

There is absolutely no reason to not follow SemVer here.
Deprecate in J3 and remove in J4.

avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Added:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Added:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Removed:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Removed:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Added:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Added:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Removed:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Removed:
avatar Quy Quy - change - 12 May 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-05-12 19:26:22
Closed_By Quy
avatar joomla-cms-bot joomla-cms-bot - change - 12 May 2018
Closed_Date 2018-05-12 19:26:22 2018-05-12 19:26:23
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot
joomla-cms-bot - comment - 12 May 2018

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/16460

avatar joomla-cms-bot joomla-cms-bot - close - 12 May 2018
avatar Quy
Quy - comment - 12 May 2018

See PR #20353


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

Add a Comment

Login with GitHub to post a comment