ushahidi / crowdmap-issues

A centralized repository for filing, tracking and discussing bugs and features in Crowdmap.com and Crowdmap's API.
0 stars 2 forks source link

map_ids query param applied inconsistently #404

Open brianherbert opened 10 years ago

brianherbert commented 10 years ago

https://api.crowdmap.com/v1/posts/?map_ids=4957,4814,4468,4451,4309,4252,4222,4014,4009,5024,5087,5136,5135,5134,5170,5165,5570,5298,5277,5601,5595

... will return posts on those maps but the following will return everything, regardless of map:

https://api.crowdmap.com/v1/users/brianherbert/posts/?map_ids=4957,4814,4468,4451,4309,4252,4222,4014,4009,5024,5087,5136,5135,5134,5170,5165,5570,5298,5277,5601,5595

zhalloran commented 10 years ago

Neither of those actually work. The map_ids filter is not currently applied for the posts resource.

brianherbert commented 10 years ago

Well you don't say. Just tried it again and you're right. My eyes must have been playing tricks on me.

zhalloran commented 10 years ago

I thought it was working at first too, but when I checked post by post I found that it wasn't the case. Testing implementation of the map_ids filter now.

zhalloran commented 10 years ago

Map_ids filter has been added to the posts resource, tested, and pushed to dev.