{ "id": "115593", "key": "ALOY-693", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-01-17T17:59:01.000+0000", "created": "2013-06-06T07:53:16.000+0000", "priority": null, "labels": [ "alloy", "compiler", "validation", "views" ], "versions": [], "issuelinks": [ { "id": "29407", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "115271", "key": "ALOY-682", "fields": { "summary": "Alloy: Prevent default ID for a view's root element to be used by child element", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-02-28T23:57:14.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": "We could expand the validation asked for in ALOY-682, to do detect using the same ID any multiple view elements (which causes conflicts).\r\n\r\nThis seems like an easy thing to do, but as [Tony points out|https://github.com/appcelerator/alloy/pull/140#issuecomment-18973129], conditional view elements make it more challenging.", "attachment": [], "flagged": false, "summary": "Alloy: Detect using the same ID for multiple view elements", "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": "Any", "comment": { "comments": [ { "id": "288630", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Considering the runtime conditionals make this pretty much impossible, since we can't determine whether they are valid or not until runtime, I'd rather not implement this as a complex, incomplete solution. If this turns out to be a major issue, we can revisit, but for now I'm going to close this.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-17T17:59:01.000+0000", "updated": "2014-01-17T17:59:01.000+0000" }, { "id": "288638", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Totally understand.\r\n\r\nSomething related that I don't know a ticket exists for is that the existing warning is also given when the root element manually has been given a different then default ID. It will then still warn if child elements use an ID named after the controller.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-01-17T18:30:29.000+0000", "updated": "2014-01-17T18:30:29.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }