{ "id": "172362", "key": "ALOY-1633", "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": "20873", "name": "CLI Release 7.1.2", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-11-21T14:01:03.000+0000", "created": "2018-09-27T15:53:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "engTriage" ], "versions": [ { "id": "20217", "name": "Alloy 1.13.1", "archived": false, "released": true, "releaseDate": "2018-07-18" }, { "id": "20247", "name": "Alloy 1.13.2", "archived": false, "released": true, "releaseDate": "2018-08-21" } ], "issuelinks": [ { "id": "56872", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "172326", "key": "TIMOB-26403", "fields": { "summary": "kitchensink-v2 broken on latest SDK build on master ", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2019-11-21T14:01:03.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": "h5.Description\r\n\r\nAlloy currently makes use of the implicit global scope of the app.js file to make the Alloy, _, and Backbone variables globals. Alloy should assign these to the global scope directly.\r\n\r\nWhen doing this we should be sure to replicate the exact behaviour of the existing code, so make sure that they stay overwritable etc.", "attachment": [], "flagged": false, "summary": "Alloy should assign globals directly rather than using the implicit global scope of app.js", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "closedSprints": [ { "id": 1094, "state": "closed", "name": "2018 Sprint 23", "startDate": "2018-11-04T22:55:10.289Z", "endDate": "2018-11-18T22:55:00.000Z", "completeDate": "2019-01-14T17:19:53.829Z", "originBoardId": 219 }, { "id": 1079, "state": "closed", "name": "2018 Sprint 20 Tooling", "startDate": "2018-09-23T16:57:12.355Z", "endDate": "2018-10-07T16:57:00.000Z", "completeDate": "2018-10-07T23:29:45.708Z", "originBoardId": 219 }, { "id": 1085, "state": "closed", "name": "2018 Sprint 21", "startDate": "2018-10-07T23:33:09.037Z", "endDate": "2018-10-21T23:33:00.000Z", "completeDate": "2018-10-21T23:19:36.765Z", "originBoardId": 219 }, { "id": 1087, "state": "closed", "name": "2018 Sprint 22", "startDate": "2018-10-21T23:20:11.380Z", "endDate": "2018-11-04T23:20:00.000Z", "completeDate": "2018-11-04T23:30:47.685Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "442120", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "PR: https://github.com/appcelerator/alloy/pull/911", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-09-27T15:55:10.000+0000", "updated": "2018-09-27T15:55:10.000+0000" }, { "id": "452782", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "When disabling the global-scope plugin KS-v2 errors on start up due to the following error (global-scope plugin is due for removal in SDK 9):\r\n{code:java}\r\n[ERROR] \b\b \bScript Error {\r\n\r\n[ERROR] \b\b \b column = 20;\r\n\r\n[ERROR] \b\b \b line = 6;\r\n\r\n[ERROR] \b\b \b message = \"Can't find variable: _\";\r\n\r\n[ERROR] \b\b \b sourceURL = \"file:///Users/Samir/Library/Developer/CoreSimulator/Devices/7A33F753-8B9A-4870-9FFD-E1711F060884/data/Containers/Bundle/Application/216ACE17-50FA-4BD4-8CEC-CB3E6C432565/KitchenSink.app/logger.js\";\r\n\r\n[ERROR] \b\b \b stack = \" at Logger(/logger.js:6:20)\\n at (/logger.js:37:24)\\n at global code(/logger.js:40:70)\\n at require@[native code]\\n at (/alloy/controllers/index.js:5:22)\\n at global code(/alloy/controllers/index.js:112:70)\\n at require@[native code]\\n at (/alloy.js:428:22)\\n at (/app.js:34:23)\\n at global code(/app.js:38:70)\\n at require@[native code]\\n at (/ti.main.js:17723:8)\\n at loadAsync(/ti.main.js:17649:9)\\n at global code(/ti.main.js:17720:10)\";\r\n\r\n[ERROR] \b\b \b toJSON = \"\";\r\n\r\n[ERROR] \b\b \b}\r\n{code}\r\n ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-19T14:27:14.000+0000", "updated": "2019-11-19T14:27:14.000+0000" }, { "id": "452819", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Fixed in https://github.com/appcelerator/alloy/commit/e638e557f87eab01bea8bd39c5afd64fcdcfb36c, new Alloy release going through Jenkins atm. Should be in a preprod CLI in ~1 hour", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-11-20T16:58:48.000+0000", "updated": "2019-11-20T16:58:48.000+0000" }, { "id": "452850", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, fix verified in CLI version {{{\"NPM\":\"4.2.15-1\",\"CLI\":\"7.1.2-master.9\"}}}. Tested using the KS-V2 app and disabling the global scope. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-21T14:00:51.000+0000", "updated": "2019-11-21T14:00:51.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }