{ "id": "117996", "key": "ALOY-826", "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-01-22T19:06:08.000+0000", "created": "2013-08-05T18:47:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "alloy", "listsection", "listview", "qe-testadded", "require", "widgets" ], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-05-10T00:29:06.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": "12332", "name": "Titanium SDK", "description": "Any integration or issues with the TiSDK" } ], "description": "In Alloy, required sections in a ListView always come before any inline ones, not adhering to the actual order.\r\n\r\nh1. Steps to reproduce\r\n\r\n# Create a new app: {{titanium create -p ios -n testSessions -d . --id test.Sessions}}\r\n# Make it an alloy app: {{cd testSessions && alloy new}}\r\n# For the {{index.xml}} use:\r\n {code}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {code}\r\n# Create a second view called {{section.xml}} with:\r\n {code}\r\n \r\n \r\n \r\n \r\n \r\n {code}\r\n# Compile and build the app to a device: {{titanium build -p ios -T device}}\r\n# Run the app and see *Required* comes before *One, Two, Three*, as shown in attached screenshot.\r\n# Open the compiled {{Resources/alloy/controllers/index.js}} to see that indeed the code for the required section comes before the inline ones.", "attachment": [ { "id": "42358", "filename": "foto.PNG", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-09-10T19:26:27.000+0000", "size": 23181, "mimeType": "image/png" } ], "flagged": false, "summary": "Required ListSections always come first", "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": "Alloy 1.2.0-alpha4", "comment": { "comments": [ { "id": "270418", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Please provide a testcase with filenames & screenshots.", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-09-09T20:57:43.000+0000", "updated": "2013-09-09T20:57:43.000+0000" }, { "id": "270649", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Updated with exact steps, code and screenshot.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-09-10T19:27:07.000+0000", "updated": "2013-09-10T19:27:07.000+0000" }, { "id": "289019", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I can confirm the behavior reported on this ticket.\n\nTestcase: I followed the steps described by Fokke:\n\n 1. New Alloy app (I used Studio, not the CLI as described)\n 2. Two controllers: index & section, with XML as provided in the ticket\n 3. Build for iOS Simulator. My output matches the attached screen.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-01-21T14:25:31.000+0000", "updated": "2014-01-21T14:25:31.000+0000" }, { "id": "289261", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/alloy/pull/308\r\ntest app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-826\r\n\r\nFunctional test (and test app) are the same as in this ticket's description.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-22T19:06:08.000+0000", "updated": "2014-01-22T19:06:08.000+0000" }, { "id": "304290", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. The listview section comes after one ,two, three as expected & according to index.xml file.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.2.3.201404181520\r\nTi SDK : 3.3.0.v20140508223312\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-dev\r\nCLI - 3.3.0-dev\r\nIpad simulator & Iphone simulator", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-10T00:29:06.000+0000", "updated": "2014-05-10T00:29:06.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }