Closed abdulhafeez closed 6 years ago
ok, I will start work on this task today
I made the filter values multiple.
Popular
filter required for all requests except Most recent
'' => 'Most interesting',
'0' => 'My posts',
'1' => 'My interests',
'2' => 'Following'
'3' => 'Most recent',
values 0,1 or 2
https://www.seearound.me/admin/mobile-api/myposts/token/XSA5L8IA2ZDG42AG8NDHNFL5HPXMV1NRS1YF9HRBG6SL755FTH1HZLNHCL68LV2F/?filter[]=0 or https://www.seearound.me/admin/mobile-api/myposts/token/XSA5L8IA2ZDG42AG8NDHNFL5HPXMV1NRS1YF9HRBG6SL755FTH1HZLNHCL68LV2F/?filter[]=1
0, 3 or 4
0 and 4
Will we combine filter parameters: Most interesting
and Most recent
?
I am not clear on what parameters I should send for different combinations of filters. According to design, we want the following combinations:
Can you place numbers (two numbers) against each combination which I should pass to get the desired results?
@yuriyua can you clarify?
yes, I will start work on these updates today
@abdulhafeez done
Sorted by most recent and popular, from every one (default)
Sorted by most recent, from every one
Sorted by most popular, from every one
Sorted by most recent and popular, from people I follow
Sorted by most recent, from people I follow
Sorted by most popular, from people I follow
Sorted by most recent and popular, from me
Sorted by most recent, from me
Sorted by most popular, from me
@abdulhafeez or we can add new filter parameter for send single filter option 1-9 Please test and let me know how it would be better for you
@yuriyua What you have done is fine. I have implemented it accordingly.
@yuriyua Andrew has given me a new design where there are two different fields to select filters as shown in the screen shot below:![filter](https://user-images.githubusercontent.com/11303273/29555452-1f8982f0-873c-11e7-87b0-9da2d25ef00b.png)
This means, we will need two different filter params on mobile/request-nearest and mobile/myposts APIs. Earlier, we had filter param which took values 0,1,2,3 and 4. Now we need two params where one takes values 0,1 or 2 and the other takes 0, 3 or 4. The APIs should now return results depending upon the values of two filters together.