{ "id": "130836", "key": "AC-3300", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-07-11T19:51:06.000+0000", "created": "2014-05-23T18:39:51.000+0000", "labels": [ "feature" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:57:43.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "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.\r\n\r\nCurrently 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.\r\n", "attachment": [], "flagged": false, "summary": "Addition of property: user_is_freind : Boolean, to ACS User", "creator": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "subtasks": [], "reporter": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "environment": "ACS", "comment": { "comments": [ { "id": "306300", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "With {{_.intersection([userId1, userId2, userId3], [userId101, userId2, userId1, userId10]);}}\r\n\r\nResults => [userId1, userId2]\r\n\r\nI've found to be the most straight forward with underscorejs... maybe we could omit... not very important... but helpful :) \r\nThis method also forces the App to store the FreindsIds array.", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2014-05-23T19:12:25.000+0000", "updated": "2014-05-23T22:02:26.000+0000" }, { "id": "306391", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nThank you for your suggestion, Although I don't really understand what is the meaning of `show_user_like` and what is its usage.\r\n\r\nCould you please explain it in detail, or maybe a example will be helpful.\r\n\r\nThanks", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-05-26T01:17:18.000+0000", "updated": "2014-05-26T01:17:18.000+0000" }, { "id": "306403", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "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\r\n\r\nWhat 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.", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2014-05-26T12:37:58.000+0000", "updated": "2014-05-26T12:37:58.000+0000" }, { "id": "306423", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Oh, I see.\r\n\r\nActually our cloud team has worked on the same issues, and your advice is quite useful. \r\nI think they will finish this improvement as soon as possible. \r\n\r\nThank you again for your suggestion.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-05-27T06:50:42.000+0000", "updated": "2014-05-27T06:50:42.000+0000" }, { "id": "306424", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Relational cloud ticket about this ticket.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-05-27T06:51:55.000+0000", "updated": "2014-05-27T06:51:55.000+0000" }, { "id": "313486", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-11T19:51:06.000+0000", "updated": "2014-07-11T19:51:06.000+0000" }, { "id": "313898", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "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.", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2014-07-14T18:16:44.000+0000", "updated": "2014-07-14T18:16:44.000+0000" }, { "id": "313902", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello [~underlabs]! \r\n\r\nIt's going to be fixed for the next release ;)\r\n\r\nBest Regards", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-14T18:20:25.000+0000", "updated": "2014-07-14T18:20:25.000+0000" }, { "id": "314844", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "Curious... was this added to TiSDK 3.3.0 released a few days ago?\r\n\r\nThanks again everybody! very useful property & helps a lot in performance :)", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2014-07-18T17:58:55.000+0000", "updated": "2014-07-18T17:58:55.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }