{ "id": "151952", "key": "ALOY-1317", "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": "16907", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-10-28" }, { "id": "17103", "name": "alloy 1.7.17", "archived": false, "released": true, "releaseDate": "2015-10-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-10-14T16:21:38.000+0000", "created": "2015-10-12T08:08:02.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "17082", "name": "alloy 1.7.16", "archived": false, "released": true, "releaseDate": "2015-10-08" } ], "issuelinks": [ { "id": "49318", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "121320", "key": "ALOY-851", "fields": { "summary": "Alloy: Setting default ID on first top-level XML view element doesn't take platform attribute into account", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2015-11-10T23:26:12.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": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "While ALOY-851 is said to be fixed, the following:\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n\r\n{code}\r\n\r\nstill compiles to:\r\n\r\n{code:javascript}\r\n if (Alloy.Globals.requiredVersion) {\r\n var __alloyId11 = [];\r\n $.__views.__alloyId12 = Alloy.createController(\"list\", {\r\n id: \"__alloyId12\"\r\n });\r\n __alloyId11.push($.__views.__alloyId12.getViewEx({\r\n recurse: true\r\n }));\r\n $.__views.__alloyId14 = Alloy.createController(\"apis\", {\r\n id: \"__alloyId14\"\r\n });\r\n __alloyId11.push($.__views.__alloyId14.getViewEx({\r\n recurse: true\r\n }));\r\n $.__views.__alloyId16 = Alloy.createController(\"console\", {\r\n id: \"__alloyId16\"\r\n });\r\n __alloyId11.push($.__views.__alloyId16.getViewEx({\r\n recurse: true\r\n }));\r\n $.__views.index = Ti.UI.createTabGroup({\r\n tabsBackgroundColor: \"white\",\r\n tabsTintColor: Alloy.CFG.brandPrimary,\r\n tabs: __alloyId11,\r\n id: \"index\"\r\n });\r\n $.__views.index && $.addTopLevelView($.__views.index);\r\n }\r\n if (!Alloy.Globals.requiredVersion) {\r\n $.__views.__alloyId17 = Ti.UI.createWindow({\r\n backgroundColor: \"#fff\",\r\n barColor: Alloy.CFG.brandPrimary,\r\n navTintColor: \"#FFF\",\r\n translucent: false,\r\n titleAttributes: {\r\n color: \"#FFF\"\r\n },\r\n id: \"__alloyId17\"\r\n });\r\n $.__views.__alloyId17 && $.addTopLevelView($.__views.__alloyId17);\r\n $.__views.__alloyId18 = Ti.UI.createLabel({\r\n text: \"This sample requires Titanium 5.1 or later\",\r\n id: \"__alloyId18\"\r\n });\r\n $.__views.__alloyId17.add($.__views.__alloyId18);\r\n }\r\n{code}\r\n\r\nwhich shows that the negative condition does not give the ID \"index\" to the window, which it should.", "attachment": [], "flagged": false, "summary": "Alloy: Default top-level ID doesn't take if-attribute into account", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "CLI 5.0.2\r\nAlloy 1.7.10", "closedSprints": [ { "id": 512, "state": "closed", "name": "2015 Sprint 21 Tooling", "startDate": "2015-10-12T21:15:56.572Z", "endDate": "2015-10-24T01:15:00.000Z", "completeDate": "2015-10-26T16:54:05.609Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "366702", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/731", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2015-10-13T20:55:07.000+0000", "updated": "2015-10-13T20:55:07.000+0000" }, { "id": "366768", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "PR reviewed and APPROVED", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-14T08:27:06.000+0000", "updated": "2015-10-14T08:27:06.000+0000" }, { "id": "366788", "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": "2015-10-14T16:21:38.000+0000", "updated": "2015-10-14T16:21:38.000+0000" }, { "id": "369622", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11.2 (15C31f)\r\nStudio 4.4.0.201511040454\r\nTi SDK 5.1.0.v20151110110428\r\nAppc NPM 4.2.1\r\nAppc CLI 5.1.0-45\r\nTi CLI 5.0.5\r\nAlloy 1.7.24\r\nArrow 1.3.19\r\nXcode 7.2 (7C46t)\r\nNode v0.12.7\r\nJava 1.7.0_80\r\nproduction\r\n\r\nif-attributes on the top level window element do not prevent the assignment of the 'index' ID. Using the provided test (modified to not use requires), the compiled code shows that the window has an ID of 'index' and can be opened with $.index.open();.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-10T23:26:12.000+0000", "updated": "2015-11-10T23:26:12.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }