{ "id": "137259", "key": "ALOY-1148", "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": "16596", "name": "Alloy 1.6.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-10-24T15:21:41.000+0000", "created": "2014-09-26T14:17:01.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "16596", "name": "Alloy 1.6.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [ { "id": "56235", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "170731", "key": "TIDOC-3093", "fields": { "summary": "Alloy: Models & Collections: Update docs to reflect Backbone 1.3.3 support", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "41656", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "137261", "key": "TIDOC-1895", "fields": { "summary": "Alloy: Models & Collections: Update docs to reflect Backbone 1.1.2 support", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2018-01-04T23:29:45.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": "12600", "name": "Samples & Templates" } ], "description": "Per ALOY-1074, if a developer uses Backbone 1.1.2 (rather than the default 0.9.2), he/she must extend the collection definition to account for a breaking change in backbone.\r\n\r\nAdd this to the modelcode.js template file to provide guidance to developers attempting to use this feature.\r\n\r\n{code}\r\n// For Backbone v1.1.2, uncomment this to override the fetch method\r\n/*\r\nfetch: function(options) {\r\n\toptions = options ? _.clone(options) : {};\r\n\toptions.reset = true;\r\n\treturn Backbone.Collection.prototype.fetch.call(this, options);\r\n}\r\n*/\r\n{code}", "attachment": [], "flagged": false, "summary": "Update model template code to include Backbone 1.1.2 support code", "creator": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 217, "state": "closed", "name": "2014 Sprint 19 Alloy", "startDate": "2014-09-15T12:45:43.956Z", "endDate": "2014-09-29T12:45:00.000Z", "completeDate": "2014-09-29T13:30:39.342Z", "originBoardId": 124 }, { "id": 234, "state": "closed", "name": "2014 Sprint 21 Alloy", "startDate": "2014-10-13T16:36:31.077Z", "endDate": "2014-10-25T01:36:00.000Z", "completeDate": "2014-10-27T13:28:36.470Z", "originBoardId": 124 } ], "comment": { "comments": [ { "id": "325837", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR https://github.com/appcelerator/alloy/pull/577\r\n\r\nTo test: In a new or existing Alloy project, from the project's directory, enter:\r\n\r\n{{alloy generate model foo sql name:text}}\r\n\r\nThen, open app/models/foo.js. The collection-extension function includes a comment, which if uncommented will extend collections to implement the former functionality.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-09-26T14:42:06.000+0000", "updated": "2014-09-26T14:42:06.000+0000" }, { "id": "326039", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR merged.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-09-29T06:31:11.000+0000", "updated": "2014-09-29T06:31:11.000+0000" }, { "id": "329223", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Reopen to backport to 1_6_X branch", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-10-23T19:58:17.000+0000", "updated": "2014-10-23T19:58:17.000+0000" }, { "id": "329311", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "1_6_X: https://github.com/appcelerator/alloy/pull/602", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-10-24T09:30:38.000+0000", "updated": "2014-10-24T09:30:38.000+0000" }, { "id": "329336", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR merged", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-10-24T15:21:41.000+0000", "updated": "2014-10-24T15:21:41.000+0000" }, { "id": "347489", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed using:\r\n\r\nTitanium SDK 4.0.0.v20150325201813\r\nStudio 4.0.0.201503232213\r\nAppc NPM: 0.3.35\r\nAppc CLI 0.2.192\r\nAlloy 1.6.0-alpha\r\n\r\nCommented 'backbone 1.1.2' section is correctly added.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-26T23:22:30.000+0000", "updated": "2015-03-26T23:22:30.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }