? ? Success

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
20 Dec 2016

When normalising the fields table (moving assigned_cat_ids to own table #__fields_categories) I introduced the use of a "GROUP_CONCAT". However that only works in MySQL and not in PostgreSQL and MSSQL. @alikon created a PR to port the group concat feature to PostgreSQL but it would still need a solution for MSSQL.

When looking why we need it I found that it is only used for the fiels list manager to show the categories:
assigned_cat_ids

Summary of Changes

This PR proposes to remove that information from the list manager (it's obviously still in the form itself) which removes the need for that GROUP_CONCAT. On the other hand it allows to add a filter for those categories
assigned_cat_ids2

Testing Instructions

  • Apply PR and test that assigning categories to a field still works.
  • Test filtering by category
  • Test that fields with assigned categories only show up in items (eg articles) with that category assigned both when displaying and editing.

Documentation Changes Required

None

avatar Bakual Bakual - open - 20 Dec 2016
avatar Bakual Bakual - change - 20 Dec 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Dec 2016
Category Administration com_fields Language & Strings
avatar laoneo
laoneo - comment - 21 Dec 2016

It works, but I still would like to have the information about assigned categories in the list view. I use this information quite often on my production sites with DPFields.

avatar Bakual
Bakual - comment - 21 Dec 2016

We will have to do separate queries to fetch that. Since it's only used in backend I see no issues with the potential performance impact (they are light queries anyway).
I can add it back hopefuly later today.

avatar laoneo
laoneo - comment - 21 Dec 2016

Thanks.

avatar Bakual Bakual - change - 21 Dec 2016
Labels Added: ? ?
avatar Bakual
Bakual - comment - 21 Dec 2016

Added back the categories using a new helper method.

avatar alikon
alikon - comment - 22 Dec 2016
avatar alikon
alikon - comment - 22 Dec 2016

I have tested this item successfully on 2a84fbe

tested with postgresql


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

avatar alikon alikon - test_item - 22 Dec 2016 - Tested successfully
avatar Bakual
Bakual - comment - 22 Dec 2016

Yep, I know about the content one. Didn't have the time yet to look at it. Have to play with search a bit tomorrow ?

avatar laoneo
laoneo - comment - 23 Dec 2016

I have tested this item successfully on 2a84fbe


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

avatar laoneo laoneo - test_item - 23 Dec 2016 - Tested successfully
avatar jeckodevelopment jeckodevelopment - change - 23 Dec 2016
Status Pending Ready to Commit
Labels
avatar jeckodevelopment
jeckodevelopment - comment - 23 Dec 2016

RTC, thanks


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

avatar jeckodevelopment jeckodevelopment - change - 23 Dec 2016
Milestone Added:
avatar rdeutz rdeutz - reference | b609b31 - 27 Dec 16
avatar rdeutz rdeutz - merge - 27 Dec 2016
avatar rdeutz rdeutz - close - 27 Dec 2016
avatar rdeutz rdeutz - change - 27 Dec 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-12-27 21:44:03
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 27 Dec 2016
avatar rdeutz rdeutz - merge - 27 Dec 2016

Add a Comment

Login with GitHub to post a comment