{ "id": "93996", "key": "ALOY-79", "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": "14791", "description": "2012 Sprint 15", "name": "2012 Sprint 15", "archived": true, "released": false }, { "id": "14176", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": false, "released": true, "releaseDate": "2012-12-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-26T10:39:28.000+0000", "created": "2012-06-27T11:46:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "18888", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "97340", "key": "ALOY-86", "fields": { "summary": "Widget dependency management", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": null, "updated": "2018-03-07T22:25:47.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "h2. Description\r\n\r\nRight now at compile time, a widget's view and controller are used to create a component commonjs module that gets put into {{Resources/alloy/widgets/WIDGETID/components}}. That component commonjs module can be used to create self-contained instances of the widget in alloy-driven apps. \r\n\r\nWe also need to add {{Resources/alloy/widgets/WIDGETID/assets}} and {{Resources/alloy/widgets/WIDGETID/lib}} directories to allow these types of resources to be accessible at runtime as well. \r\n\r\nh2. Potential issues\r\n\r\n* How do we handle paths to these assets? If they are going to be moved to a widget-specific directory, which should be done to avoid collisions, how will we handle file, image, etc... paths inside the widget code and styles?", "attachment": [], "flagged": false, "summary": "Widgets need to bundle assets and libraries", "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": "201036", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Assets are now bundled. Still need to handle bundling of libraries.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-02T05:48:45.000+0000", "updated": "2012-07-02T05:48:45.000+0000" }, { "id": "207832", "author": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Both libraries and other widgets need to be usable from a containing widget.If needed we can add a separate task for including widgets if there is big difference from libraries.", "updateAuthor": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-16T14:43:06.000+0000", "updated": "2012-07-16T14:43:06.000+0000" }, { "id": "207834", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "libraries need to be separated off just like assets. The libraries bundled with a widget should only be accessible by the widget. It shouldn't be a big task, just requires some organizational effort as the assets did. \r\n\r\nWidgets being used by other widgets relies more on the issues I linked than it does this one. It's widget dependency management that will allow us to do that effectively.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-16T14:47:19.000+0000", "updated": "2012-07-16T14:47:19.000+0000" }, { "id": "209602", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "widgets also now bundle resources", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T10:39:28.000+0000", "updated": "2012-07-26T10:39:28.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }