noosfero | Fixes community search when spreading content with SubOrgPlugin enabled (!1184)

Gabriel Silva gitlab at mg.gitlab.com
Mon Apr 24 16:40:38 BRT 2017


New Merge Request !1184

https://gitlab.com/noosfero/noosfero/merge_requests/1184

Project:Branches: gabrielssilva/noosfero:fix_spread_search to noosfero/noosfero:master
Author:    Gabriel Silva
Assignee:  

Fixes #256 

Postgres requires to specify every column in the select list when using `SELECT DISTINCT` with `ORDER BY`. There is a workaround to order distinct values using a group clause, but it breaks when the sub organizations plugin is active, since the latter adds a scope that would require every column in the group aggregation list.

To avoid this issue, this patch removes the `group` scope and filters duplicated results using Ruby code.


---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1184
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170424/5097ce07/attachment.html>


More information about the Noosfero-dev mailing list