{ "id": "108553", "key": "ALOY-486", "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": "14634", "description": "Alloy 1.0.0", "name": "Alloy 1.0.0", "archived": false, "released": true, "releaseDate": "2013-02-19" }, { "id": "14871", "description": "2013 Sprint 02", "name": "2013 Sprint 02", "archived": true, "released": true, "releaseDate": "2013-01-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-06T22:00:11.000+0000", "created": "2013-01-25T12:24:21.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-manualtest" ], "versions": [ { "id": "14634", "description": "Alloy 1.0.0", "name": "Alloy 1.0.0", "archived": false, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-06T22:00:11.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" } ], "description": "If a new model is being created that relies on an AUTOINCREMENT id, it is not updated in the client-side model when the INSERT happens. The id doesn't update until the next collection.fetch(), and model.fetch() doesn't work because there's no id to match up to on the client-side.\r\n\r\nTo resolve this issue we should grab the last inserted id after a new model is created and assign it to the model's model.id field, if the idAttribute is not the Alloy default \"alloy_id\". If it's \"alloy_id\", then just assign a GUID.\r\n\r\n ", "attachment": [], "flagged": false, "summary": "sql adapter does not update ID in client-side model when using AUTOINCREMENT", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "239156", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Alloy: 1.0.1 master\nTiSDK: 3.1.0.v20130219190219 \nCLI: 3.0.24\n\nVerified as fixed.\n\nUsing the 'models/sql_no_migration', added Log info (http://pastie.org/6262111 )\n\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-20T23:11:44.000+0000", "updated": "2013-02-20T23:11:44.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }