{ "id": "146864", "key": "AC-902", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-09-30T01:02:11.000+0000", "created": "2015-04-13T16:14:07.000+0000", "labels": [ "api" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:12.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "When I use ACS Custom Object query \"show_user_like : true\", it suppose to return \"current_user_liked\". But if I use query with where parameter, it's not returning \"current_user_liked\". (it works without \"where\").\r\n\r\n", "attachment": [], "flagged": false, "summary": "ACS show_user_like not returning when use with \"where\" parameter.", "creator": { "name": "heedoo", "key": "heedoo", "displayName": "heedoo moon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "heedoo", "key": "heedoo", "displayName": "heedoo moon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.5.1\r\nCLI : 3.4.1", "comment": { "comments": [ { "id": "360812", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello [~heedoo],\r\nWe tested your issue in our environment. Here is my sample code. ACS show_user_like return true when use with \"where\" parameter. Can you Please attach your test code,logs & let us know.\r\n\r\n*Test Environments:*\r\n\r\nCLI Version = 4.0.1\r\nTitanium SDK Version = 4.1.0.GA\r\nAndroid: Google Galaxy Nexus - 4.1.1 - API 16 - 720x1280\r\nAppc Studio: Appcelerator Studio, build: 4.1.0.201507140915\r\n\r\n*Test Code:*\r\n\r\n*index.js*\r\n\r\n{code}\r\nfunction doClick(e){\r\n\r\n(function() {\r\n\t\tvar ACS = require('ti.cloud'),\r\n\t\t env = Ti.App.deployType.toLowerCase() === 'production' ? 'production' : 'development',\r\n\t\t username = Ti.App.Properties.getString('acs-username-' + env),\r\n\t\t password = Ti.App.Properties.getString('acs-password-' + env);\r\n\r\n\t\t// if not configured, just return\r\n\t\tif (!env || !username || !password) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t/**\r\n\t\t * Appcelerator Cloud (ACS) Admin User Login Logic\r\n\t\t *\r\n\t\t * fires login.success with the user as argument on success\r\n\t\t * fires login.failed with the result as argument on error\r\n\t\t */\r\n\r\n\t\t//username='rakhimonimitro';\r\n\t\t//password='rakhimonimitro';\r\n\r\n\t\tACS.Users.login({\r\n\t\t\tlogin : username,\r\n\t\t\tpassword : password,\r\n\t\t}, function(result) {\r\n\t\t\tif (env === 'development') {\r\n\t\t\t\tTi.API.info('ACS Login Results for environment `' + env + '`:');\r\n\t\t\t\t//Ti.API.info(result);\r\n\r\n\t\t\t}\r\n\t\t\tif (result && result.success && result.users && result.users.length) {\r\n\t\t\t\tTi.App.fireEvent('login.success', result.users[0], env);\r\n\t\t\t\t\r\n\t\t\t\tACS.Objects.create({\r\n\t\t\t\t classname: 'cars',\r\n\t\t\t\t fields: {\r\n\t\t\t\t make: 'nissan',\r\n\t\t\t\t color: 'blue',\r\n\t\t\t\t show_user_like: 'true'\r\n\t\t\t\t }\r\n\t\t\t\t}, function (e) {\r\n\t\t\t\t if (e.success) {\r\n\t\t\t\t var car = e.cars[0];\r\n\t\t\t\t alert('Success:\\n' +\r\n\t\t\t\t 'id: ' + car.id + '\\n' +\r\n\t\t\t\t 'make: ' + car.make + '\\n' +\r\n\t\t\t\t 'color: ' + car.color + '\\n' +\r\n\t\t\t\t 'year: ' + car.year + '\\n' +\r\n\t\t\t\t 'show_user_like: ' + car.show_user_like);\r\n\t\t\t\t } else {\r\n\t\t\t\t alert('Error:\\n' +\r\n\t\t\t\t ((e.error && e.message) || JSON.stringify(e)));\r\n\t\t\t\t }\r\n\t\t\t\t});\r\n\t\t\t\r\n\t\t\r\n\t\t\t} else {\r\n\t\t\t\tTi.App.fireEvent('login.failed', result, env);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t})();\r\n}\r\n$.index.open();\r\n\r\n{code}\r\n\r\n*index.xml*\r\n\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n\r\nThanks\r\n", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-23T10:13:22.000+0000", "updated": "2015-08-23T10:13:22.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }