From 8bc5fc88ef57b2357fb3a610d09ff67437bb9fc0 Mon Sep 17 00:00:00 2001 From: Aurélio A. Heckert Date: Sat, 13 Jun 2015 01:30:52 +0000 Subject: [PATCH] API cant filter People by location --- lib/noosfero/api/v1/people.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/noosfero/api/v1/people.rb b/lib/noosfero/api/v1/people.rb index dbc400a..bb2ccac 100644 --- a/lib/noosfero/api/v1/people.rb +++ b/lib/noosfero/api/v1/people.rb @@ -6,7 +6,17 @@ module Noosfero resource :people do - # Collect comments from articles + # -- A note about privacy -- + # We wold find people by location, but we must test if the related + # fields are public. We can't do it now, with SQL, while the location + # data and the fields_privacy are a serialized settings. + # We must build a new table for profile data, where we can set meta-data + # like: + # | id | profile_id | key | value | privacy_level | source | + # | 1 | 99 | city | Salvador | friends | user | + # | 2 | 99 | lng | -38.521 | me only | automatic | + + # Collect people from environment # # Parameters: # from - date where the search will begin. If nothing is passed the default date will be the date of the first article created -- libgit2 0.21.2