{ "id": "171907", "key": "TIMOB-26200", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2018-07-10T19:58:41.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "ti.media" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-07-10T19:58:41.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Currently we have a practice of grouping an enumeration of possible constant values on the parent module's namespace with some long identical prefix to denote their relationship.\r\n\r\nThis is not a great way to organize the constants. While Javascript does not have a native enum type, we could certainly do a better job by namespacing the related values into a \"group\" by hanging them off an object.\r\n\r\nIt clutters up the docs/API of the parent module, and leads to super-long ALL_UPPERCASE_SCARY_NAMES_LIKE_THIS.\r\n\r\nSomething similar to: \r\n- https://www.sohamkamani.com/blog/2017/08/21/enums-in-javascript/\r\n- https://stackoverflow.com/questions/287903/what-is-the-preferred-syntax-for-defining-enums-in-javascript", "attachment": [], "flagged": false, "summary": "TiAPI: Break out Ti.Media constants to separate namespaces/enum groupings", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }