{ "id": "120137", "key": "ALOY-829", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15403", "description": "Alloy 1.3.0", "name": "Alloy 1.3.0", "archived": false, "released": true, "releaseDate": "2013-12-20" }, { "id": "15671", "description": "2013 Sprint 19", "name": "2013 Sprint 19", "archived": true, "released": true, "releaseDate": "2013-09-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-03-05T17:46:33.000+0000", "created": "2013-09-18T06:51:11.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "alloy", "qe-3.4.0", "qe-testadded", "query", "regression", "sqlite" ], "versions": [], "issuelinks": [ { "id": "33158", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "122321", "key": "TIDOC-1356", "fields": { "summary": "Guides: Update Alloy Docs for Release 1.3.0", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2018-03-05T17:46:38.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": "13605", "name": "Models" } ], "description": "If I get a reference to an ID would be nice to have a shortend like \r\n\r\nvar model = Alloy.createModel(\"...\");\r\nmodel.fetch({ id: 123 });\r\n\r\ninstead of have to provide a full sql statement\r\n\r\nI suggest an implementation approach like this one \r\nhttps://github.com/viezel/napp.alloy.adapter.restsql#extended-sql-interface\r\nwhich would make querying the database more object friendly.\r\n\r\nThanks, Luca\r\n\r\n(for original Q&A see http://developer.appcelerator.com/question/157222/fetch-single-record-by-id-via-alloy-models)", "attachment": [], "flagged": false, "summary": "Add a shorthand for fetch() adapter", "creator": { "name": "lcapra", "key": "lcapra", "displayName": "luca capra", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "3.1.2GA\r\nAlloy 1.2", "comment": { "comments": [ { "id": "271866", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/alloy/pull/242\r\ntest app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-829\r\n\r\n# Run test app on ios and/or android\r\n# Make sure the app loads the data bound listview with 20 list items\r\n# Click any list item\r\n# Check the console and confirm that the assertion passes, where the id should correspond the the list item that you clicked\r\n\r\n{code}\r\n[INFO] Assert single info model returned with \"{id:1}\": OK\r\n{code}\r\n\r\nSee attached screenshots for how the app should look. ", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-18T22:37:48.000+0000", "updated": "2013-09-18T22:37:48.000+0000" }, { "id": "275055", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified working as expected. \n\nTiSDK 3.2.0.v20131013140318 \nAlloy 1.3.0\nCLI 3.2.0\n\nClosing. ", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-14T21:58:43.000+0000", "updated": "2013-10-14T21:58:43.000+0000" }, { "id": "321902", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-04T20:42:00.000+0000", "updated": "2014-09-04T20:42:00.000+0000" }, { "id": "435199", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to fix. Unsure how it got into our sprint.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-05T17:45:56.000+0000", "updated": "2018-03-05T17:45:56.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }