{ "id": "113776", "key": "ALOY-656", "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": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-02-05T19:20:45.000+0000", "created": "2013-05-03T16:48:26.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "34628", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "125516", "key": "TISTUD-6100", "fields": { "summary": "Alloy: improve the detection to identify if a project is alloy app", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2014-05-12T11:14:51.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": "13604", "name": "Tooling", "description": "Items related to Alloy tooling and workflow" }, { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "Even when no UI is needed for the index controller, Alloy requires that an index.xml be present, even if it is empty:\r\n\r\n{code:xml}\r\n\r\n{code}\r\n\r\nThe reason is that Alloy and other tools (TiStudio for example) rely on the presence of index.xml as an indication that you are in fact building an Alloy app. Unfortunately, there are situation where the index controller needs know UI, only logic. Take for example the situation if you want to open a login screen or a home screen depending on queried data (either locally remotely). You need no UI to complete this query and determine whether the login controller or home controller should be opened, but the index.xml is required just the same. \r\n\r\nWe need to remove this requirement and identify a more concrete method of determining if you are actually building an Alloy app.", "attachment": [ { "id": "45295", "filename": "ALOY-656.zip", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-01-22T18:52:37.000+0000", "size": 4649, "mimeType": "application/zip" } ], "flagged": false, "summary": "Must have index.xml even if no UI is needed for the index controller", "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": "289258", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "test app attached", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-01-22T18:52:37.000+0000", "updated": "2014-01-22T18:52:37.000+0000" }, { "id": "289259", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "You can have a project with an empty index.xml (just tags present). Test with the attached project. How is this insufficient? Is this change necessary?", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-01-22T18:53:01.000+0000", "updated": "2014-01-22T18:53:01.000+0000" }, { "id": "291212", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR: https://github.com/appcelerator/alloy/pull/327\r\nTest app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-656\r\n\r\nFunctional test:\r\n\r\n1. Build the app\r\n2. In resulting app, label should read \"I'm in window 2\"\r\n\r\n\r\nUsing jake scripts:\r\n{code}\r\njake app:runNoXML dir=testing/ALOY-656\r\n// or\r\njake test:spec[compile.js] app=testing/ALOY-656\r\n{code}", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-04T21:13:37.000+0000", "updated": "2014-02-05T19:21:14.000+0000" }, { "id": "291220", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Reopening", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-04T21:25:28.000+0000", "updated": "2014-02-04T21:25:28.000+0000" }, { "id": "304340", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tested with https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-656 app, \"I'm in window 2\" label is displayed \r\n\r\nVerified the fix using:\r\nDevice : iPhone 5s , iOS version : 7.1\r\nSDK: 3.3.0.v20140508135704\r\nCLI version : 3.3.0-dev\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.4.0-dev\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nLiveView: 1.0.4\r\nAppcelerator Studio, build: 3.3.0.201405080918\r\ntitanium-code-processor: 1.1.1\r\nXCode : 5.1.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-12T11:14:51.000+0000", "updated": "2014-05-12T11:14:51.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }