{ "id": "113237", "key": "ALOY-635", "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": "15402", "description": "Alloy 1.2.0, concurrent with SDK 3.1.0", "name": "Alloy 1.2.0", "archived": false, "released": true, "releaseDate": "2013-08-15" }, { "id": "15477", "description": "Alloy 1.1.2", "name": "Alloy 1.1.2", "archived": false, "released": true, "releaseDate": "2013-05-02" }, { "id": "15406", "description": "2013 Sprint 09", "name": "2013 Sprint 09", "archived": true, "released": true, "releaseDate": "2013-05-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-04-24T20:53:48.000+0000", "created": "2013-04-22T22:29:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-05-01T14:56:31.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" }, { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "Originally mentioned in this gist: https://gist.github.com/stevenscg/5438481\r\n\r\nEssentially what was happening is that the \"order\" of each style was being reset each time a global, controller, platform, or theme style was being processed, inadvertantly allowing lower priority styles to be sorted ahead of others. Maintaining the \"order\" throughout the course of a controller's style processing would solve this issue.", "attachment": [], "flagged": false, "summary": "Styles not being sorted properly among global, controller, platform-specific, and theme", "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": "248940", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There still exists a minor issue with the sorting of global styles. In an effort to increase compile speed, the global style is cached after it is built once and then used in conjunction with all other controller-specific controllers to generate the final style. Unfortunately, when the global style is cached its \"order\" is also cached, meaning that styles of equal precedence in the global style can sometimes overwrite those in a controller-specific style, which should never happen. The base of the \"order\" counting needs to start at the highest \"order\" of the global style, plus 1. ", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-24T18:30:24.000+0000", "updated": "2013-04-24T18:30:24.000+0000" }, { "id": "248969", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verification test case in the test apps at testing/ALOY-635. \n\n{code}\njake app:run dir=testing/ALOY-635\n{code}\n\nIf run against Alloy 1.1.1 the text printed in the app will say: \n\n{code}\nglobal style merging is broken if you see this text in your app\n{code} \n\nWhen testing the fix with 1.1.2, though, you'll get the appropriate text that says:\n\n{code}\nyou should see this text\n{code}", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-24T22:03:36.000+0000", "updated": "2013-04-24T22:03:36.000+0000" }, { "id": "249047", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "test app link: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-635", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-25T19:44:41.000+0000", "updated": "2013-04-25T19:44:41.000+0000" }, { "id": "249396", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also, got a confirmation from the community that the 1.1.2-alpha has solved the style processing issue: http://developer.appcelerator.com/question/151717/issues-in-using-class-styles-with-alloy-in-latest-alloy-update", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-29T18:44:17.000+0000", "updated": "2013-04-29T18:44:17.000+0000" }, { "id": "249643", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed with Alloy version 1.1.2-alpha, SDK 3.1.0 GA \niPhone 5 \nAndroid Nexus 4\n\nSample code: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-635", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-01T00:11:18.000+0000", "updated": "2013-05-01T00:11:18.000+0000" }, { "id": "249694", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Working as expected.\n\nVerified on:\nTested on:\nDevice: Samsung Galaxy Note, Android version: 2.3.6\nDevice : iPad 2, iOS version: 5.1\nAlloy verison: 1.1.2-alpha\nSDK: 3.1.1.v20130430164508\nCLI version : 3.1.0\nOS : MAC OSX 10.7.5\nAppcelerator Studio, build: 3.1.0.201304281117\nXCode : 4.5.1\n", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-01T11:18:13.000+0000", "updated": "2013-05-01T11:18:13.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }