Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3300] Addition of property: user_is_freind : Boolean, to ACS User

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2014-07-11T19:51:06.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsfeature
ReporterJoseph Sachs
AssigneeMauro Parra-Miranda
Created2014-05-23T18:39:51.000+0000
Updated2016-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.

Comments

  1. Joseph Sachs 2014-05-23

    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.
  2. Shuo Liang 2014-05-26

    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. Thanks
  3. Joseph Sachs 2014-05-26

    Hi 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 is user_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.
  4. Shuo Liang 2014-05-27

    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.
  5. Shuo Liang 2014-05-27

    Relational cloud ticket about this ticket.
  6. Mauro Parra-Miranda 2014-07-11

  7. Joseph Sachs 2014-07-14

    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.
  8. Mauro Parra-Miranda 2014-07-14

    Hello [~underlabs]! It's going to be fixed for the next release ;) Best Regards
  9. Joseph Sachs 2014-07-18

    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 :)

JSON Source