? ? Pending

User tests: Successful: Unsuccessful:

avatar miguelbgouveia
miguelbgouveia
25 Feb 2016

Pull Request for Issue # .

Summary of Changes

Testing Instructions

Creation of an identifier field property in order to define the table field that store the identifier.
In order to create a plugin to components that have identifier field in table other than id.

avatar miguelbgouveia miguelbgouveia - open - 25 Feb 2016
avatar miguelbgouveia miguelbgouveia - change - 25 Feb 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Feb 2016
Labels Added: ?
avatar miguelbgouveia
miguelbgouveia - comment - 25 Feb 2016

I was creating an smart search plugin for a specific component.
The problem is that component use a table where the identifier field don't have the 'id' name.
To resolve the problem it will be good if I could specified the field identifier name in cases that the name is other than 'id'.

avatar miguelbgouveia miguelbgouveia - change - 25 Feb 2016
Title
Define identifier field for smart search plugins
[com_finder]Define identifier field for smart search plugins
avatar miguelbgouveia miguelbgouveia - change - 25 Feb 2016
Title
[com_finder]Define identifier field for smart search plugins
[com_finder] define identifier field for smart search plugins
avatar brianteeman brianteeman - change - 27 Feb 2016
Category Search
avatar brianteeman
brianteeman - comment - 22 Aug 2016

I am tempted to close this. It is solving a problem that shouldnt exist as you should have an id

@chrisdavenport thoughts


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

avatar mbabker
mbabker - comment - 22 Aug 2016

With this patch, it would be consistent with JTable which has API methods to allow you to define a primary key other than an id column. Also note the core database schema does not always use id as the primary key; the #__extensions table uses a extension_id primary key.

avatar brianteeman
brianteeman - comment - 22 Aug 2016

@mbabker well can you test it then!!

avatar chrisdavenport
chrisdavenport - comment - 23 Aug 2016

I've come across this problem before, but I've always been able to solve it by renaming the column. Others may not be so fortunate. So I think it makes sense and we should accept it once we have the usual 2+ independent tests.

avatar euismod2336 euismod2336 - test_item - 4 Nov 2016 - Tested unsuccessfully
avatar euismod2336
euismod2336 - comment - 4 Nov 2016

I have tested this item ? unsuccessfully on f13f36b

Created test table with pk as primary key. Created smart search plugin to index the table. Indexing went correct if $item->id = $item->pk and incorrect if $item->id was not set. After clearing and applying patch, modified the identifier_field but items not indexed.

I think the change isn't thorough enough, in functions like categoryStateChange, where all the children are modified, it should also account for the new field.


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

avatar miguelbgouveia
miguelbgouveia - comment - 4 Nov 2016

My PR should work, can you send me your smart seach plugin to see what goes wrong?

And you are right, in the categoryStateChange should consider this field as well. I will try to correct that.

avatar euismod2336
euismod2336 - comment - 4 Nov 2016

@miguelbgouveia http://paste.ofcode.org/iRz7rxGMESsH2MP2z9xDAU at the bottom i added the sql from the table i used.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Jan 2017

@miguelbgouveia is there something new to test?

avatar miguelbgouveia
miguelbgouveia - comment - 6 Jan 2017

Unfortunately I am not more working with the joomla CMS and and I have no time to verify and correct the problem in the present. Maybe in future I can attend this issue.

avatar mbabker
mbabker - comment - 21 May 2017

This PR needs a new owner or it will have to be closed as abandoned.

avatar joomla-cms-bot joomla-cms-bot - change - 20 Aug 2017
Category Search Administration com_finder Search
avatar brianteeman
brianteeman - comment - 20 Aug 2017

As it has been several months since the last comment by @mbabker I am closing this as abandoned

avatar brianteeman brianteeman - change - 20 Aug 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-08-20 12:05:37
Closed_By brianteeman
avatar brianteeman brianteeman - close - 20 Aug 2017

Add a Comment

Login with GitHub to post a comment