{ "id": "128831", "key": "ALOY-987", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" }, { "id": "15903", "description": "2014 Sprint 07", "name": "2014 Sprint 07", "archived": true, "released": true, "releaseDate": "2014-04-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-11T17:30:44.000+0000", "created": "2014-04-09T02:13:20.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "Alloy", "qe-testadded", "query", "sqlite" ], "versions": [], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2014-06-22T13:21:21.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": [], "description": "Related to ALOY-829. When trying to get a collection using the id shorthand and in the model you don't have an idAttribute configuration set, the adapter throws an exception because the idAttribute is undefined.\r\n\r\nAlso need to add the validation if id value is string, because the alloy_id values are guid's strings.\r\n\r\n {code:javascript} myCollection.fetch({ id: \"8395dda4-b998-07cb-baaf-3dd071329dc9\" });{code}\r\n\r\n{code}[ERROR] nativeReason = \"Error Domain=com.plausiblelabs.pldatabase Code=3 \\\"An error occured parsing the provided SQL statement.\\\" UserInfo=0xcec2b20 {com.plausiblelabs.pldatabase.error.vendor.code=1, NSLocalizedDescription=An error occured parsing the provided SQL statement., com.plausiblelabs.pldatabase.error.query.string=SELECT * FROM paymentOption WHERE undefined = 8395dda4-b998-07cb-baaf-3dd071329dc9, com.plausiblelabs.pldatabase.error.vendor.string=unrecognized token: \\\"8395dda4\\\"}\";{code}", "attachment": [ { "id": "47230", "filename": "AlloyIDTest.zip", "author": { "name": "reymundolopez", "key": "reymundolopez", "displayName": "Reymundo López", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-04-10T11:54:14.000+0000", "size": 5915701, "mimeType": "application/zip" } ], "flagged": false, "summary": "Alloy : Shorthand for fetch() don't work correctly using default alloy_id", "creator": { "name": "reymundolopez", "key": "reymundolopez", "displayName": "Reymundo López", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "reymundolopez", "key": "reymundolopez", "displayName": "Reymundo López", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Mac OS 10.9.2\r\nTitanium SDK 3.2.2.GA\r\nAlloy 1.3.1", "comment": { "comments": [ { "id": "300335", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please provide a simple runnable test case to reproduce this issue.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-09T05:41:20.000+0000", "updated": "2014-04-09T05:41:20.000+0000" }, { "id": "300484", "author": { "name": "reymundolopez", "key": "reymundolopez", "displayName": "Reymundo López", "active": true, "timeZone": "America/Mexico_City" }, "body": "Simple example that add models to the DB, shows the models in a TableView and when the user click in one row and do the {noformat}fetch.({ id : id }){noformat} error shows", "updateAuthor": { "name": "reymundolopez", "key": "reymundolopez", "displayName": "Reymundo López", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-04-10T11:54:14.000+0000", "updated": "2014-04-10T11:54:14.000+0000" }, { "id": "300673", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR is https://github.com/appcelerator/alloy/pull/359\n\nI've tested and the PR solves the issue and passes all tests. Ready to be merged.\n\nFunctional test: run the AlloyIDTest app attached to this ticket. Tap any row in the table. The alert should show the collection length to be 1. No errors should be output.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-04-11T16:54:47.000+0000", "updated": "2014-04-11T16:54:47.000+0000" }, { "id": "304810", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. Clicking on the table rows show's the collection length to be 1.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.3.0.201405121247\r\nTi SDK : 3.3.0.v20140513191712\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-dev\r\nCLI - 3.3.0-dev\r\nNexus 5 - android 4.4.2\r\nIphone 5S - iOS 7.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-14T17:43:29.000+0000", "updated": "2014-05-14T17:43:29.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }