[AC-3300] Addition of property: user_is_freind : Boolean, to ACS User
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2014-07-11T19:51:06.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | feature |
Reporter | Joseph Sachs |
Assignee | Mauro Parra-Miranda |
Created | 2014-05-23T18:39:51.000+0000 |
Updated | 2016-03-08T07:57:43.000+0000 |
Description
With the addition of
show_user_like : Boolean
is a great addition to be used in many different scenarios behind the scene, though for a Query of Users to see if each User is a friend to the Current User that Queried is a little more complicated.
Currently a loop needs to be cycled on the mobile App side, in to check if each user is a friend with an existing cached array of Friends. A similar property to show_user_like would improve performance by a lot for such Friendship scenarios.
With
_.intersection([userId1, userId2, userId3], [userId101, userId2, userId1, userId10]);
Results => [userId1, userId2] I've found to be the most straight forward with underscorejs... maybe we could omit... not very important... but helpful :) This method also forces the App to store the FreindsIds array.Hi, Thank you for your suggestion, Although I don't really understand what is the meaning of
show_user_like
and what is its usage. Could you please explain it in detail, or maybe a example will be helpful. ThanksHi Shuo,
show_user_like
already exists, you can find it in the documentation here: http://docs.appcelerator.com/cloud/latest/#!/api/Users-method-query What I was suggesting is to add another property which isuser_is_freind
, which would also be a boolean, in order for the current user that Queries Users, to know that a User is already a Friend or not.Oh, I see. Actually our cloud team has worked on the same issues, and your advice is quite useful. I think they will finish this improvement as soon as possible. Thank you again for your suggestion.
Relational cloud ticket about this ticket.
Can't seem to access this ticket. I'm guessing it's Admin only that can access it. Just wanted to see if there were any updates concerning this ticket. Thanks.
Hello [~underlabs]! It's going to be fixed for the next release ;) Best Regards
Curious... was this added to TiSDK 3.3.0 released a few days ago? Thanks again everybody! very useful property & helps a lot in performance :)