Commit 8bc5fc88ef57b2357fb3a610d09ff67437bb9fc0
1 parent
6b50511e
Exists in
api_tasks
and in
4 other branches
API cant filter People by location
A note about privacy, prevent devs to commit a mistake.
Showing
1 changed file
with
11 additions
and
1 deletions
Show diff stats
lib/noosfero/api/v1/people.rb
... | ... | @@ -6,7 +6,17 @@ module Noosfero |
6 | 6 | |
7 | 7 | resource :people do |
8 | 8 | |
9 | - # Collect comments from articles | |
9 | + # -- A note about privacy -- | |
10 | + # We wold find people by location, but we must test if the related | |
11 | + # fields are public. We can't do it now, with SQL, while the location | |
12 | + # data and the fields_privacy are a serialized settings. | |
13 | + # We must build a new table for profile data, where we can set meta-data | |
14 | + # like: | |
15 | + # | id | profile_id | key | value | privacy_level | source | | |
16 | + # | 1 | 99 | city | Salvador | friends | user | | |
17 | + # | 2 | 99 | lng | -38.521 | me only | automatic | | |
18 | + | |
19 | + # Collect people from environment | |
10 | 20 | # |
11 | 21 | # Parameters: |
12 | 22 | # from - date where the search will begin. If nothing is passed the default date will be the date of the first article created | ... | ... |