{ "id": "144446", "key": "ALOY-1238", "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": "16692", "name": "Alloy 1.7.0", "archived": false, "released": true, "releaseDate": "2015-07-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-02-18T14:46:56.000+0000", "created": "2015-02-10T17:31:57.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "16595", "name": "Alloy 1.5.1", "archived": false, "released": true, "releaseDate": "2014-10-01" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2015-09-07T13:31:24.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" } ], "description": "h5. Scenario\r\nI want to refactor an existing Alloy app by moving/re-naming the current index.xml/js/tss controller triad to something else, and then create a new index controller.\r\n\r\nh6. Steps:\r\n1. Create a new Alloy app.\r\n2. Rename views/index.xml, styles/index.tss, and controllers/index.js to views/main.xml, styles/main.tss, and controllers/main.js.\r\n3. Create a new \"index\" controller:\r\n{code}\r\n$ alloy generate controller index\r\n{code}\r\n\r\nh6. Results:\r\nActual:\r\n{code}\r\n[ERROR] Alloy \"app\" directory has no \"controllers/index.js\" file at \"/Users/tstatler/alloy_test_apps/testing/boo/app/controllers/index.js\". \r\n{code}\r\nExpected: I can create a new index controller w/o error.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Can't re-create index controller after renaming original one", "creator": { "name": "tstatler", "key": "tstatler", "displayName": "Tim Statler", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tstatler", "key": "tstatler", "displayName": "Tim Statler", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 339, "state": "closed", "name": "2015 Sprint 04 Tooling", "startDate": "2015-02-14T02:34:21.061Z", "endDate": "2015-02-28T02:34:00.000Z", "completeDate": "2015-02-28T15:51:32.596Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "343722", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/666\r\nTo test, follow steps above, new index files should be created with no error.\r\n", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2015-02-18T06:59:27.000+0000", "updated": "2015-02-18T06:59:27.000+0000" }, { "id": "343759", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "FR/CR pass, merged\r\n\r\nTip to QE, you can rename the index controller for testing with\r\n\r\n{{alloy move index foo}}\r\n\r\nThen, {{alloy generate controller index}} should work, as should {{alloy generate style bar}} and {{alloy generate view baz}}", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-02-18T14:46:56.000+0000", "updated": "2015-02-18T14:46:56.000+0000" }, { "id": "362445", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nWindows 8.1\r\nAppc NPM 4.2.0-1\r\nAppc CLI Core 5.0.0-41 (Alloy 1.7.X)\r\n\r\nAfter renaming the original index controller a new one can be generated using {{alloy generate controller index}} or {{appc alloy generate controller index}}\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-09-07T13:31:19.000+0000", "updated": "2015-09-07T13:31:19.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }