{ "id": "101670", "key": "TIMOB-11041", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14159", "description": "Sprint 2012-20 JS", "name": "Sprint 2012-20 JS", "archived": true, "released": true, "releaseDate": "2012-10-08" }, { "id": "14272", "description": "2012 Sprint 20", "name": "2012 Sprint 20", "archived": true, "released": true, "releaseDate": "2012-10-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-25T21:23:50.000+0000", "created": "2012-09-21T09:36:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "regression" ], "versions": [], "issuelinks": [ { "id": "21165", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "101225", "key": "TISTUD-2276", "fields": { "summary": "Support adding modules with no version specified", "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": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "21163", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "87824", "key": "TIMOB-7973", "fields": { "summary": "Modules: Default to Latest Version of a Module", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-09T01:05:35.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "h1. Feature\r\nIf two versions of a module are available, and a tiapp.xml doesn't specify a version, the latest version should be chosen.\r\n\r\nh2. Current Behavior\r\nRight now the tooling sorts modules alphabetically, so the earliest version of a module will be used rather than the most recent.\r\n\r\nh2. Test\r\nUnzip the attached modules.zip in to your /Library/Application\\ Support/Titanium/ directory, then:\r\n{code:title=tiapp.xml}\r\n \r\n \tti.cloud\r\n \r\n{code}\r\nand\r\n{code:title=app.js}\r\nrequire('ti.cloud').hi();\r\n{code}\r\nIt will alert the version of the module in use. You can also predict which module will be used based on the output of iphone/builder.py:\r\n{quote}\r\n[DEBUG] Detecting modules in /Volumes/Code/play/modules\r\n[DEBUG] Detecting modules in /Library/Application Support/Titanium/modules\r\n[DEBUG] Detected module for commonjs: ti.cloud 2.0 @ /Library/Application Support/Titanium/modules/commonjs/ti.cloud/2.0\r\n[DEBUG] Detected module for commonjs: ti.cloud 2.1 @ /Library/Application Support/Titanium/modules/commonjs/ti.cloud/2.1\r\n[DEBUG] Looking for Titanium Module id: ti.cloud, version: , platform: \r\n{quote}\r\n\r\nThe order in which the modules are detected are the order in which they will be used if no version is specified.\r\n\r\nh2. Pull Request\r\nhttps://github.com/appcelerator/titanium_mobile/pull/1650", "attachment": [], "flagged": false, "summary": "MobileWeb: Default to Latest Version of a Module", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "220125", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Evidently this no longer works in MobileWeb.\r\n\r\nWe need to fix this in _both_ the Python and Node.JS CLI scripts", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-21T09:38:09.000+0000", "updated": "2012-09-21T09:38:09.000+0000" }, { "id": "220192", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This has been fixed in the new CLI. I think I fixed this 6 days ago in this commit: https://github.com/appcelerator/titanium_mobile/commit/6825f7208a0fdf4ee5744634a9446095cef66dda#diff-2. If you could, please check a master CI build to see if this is still happening.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-09-21T14:21:18.000+0000", "updated": "2012-09-21T14:21:18.000+0000" }, { "id": "220376", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Pull request: https://github.com/appcelerator/titanium_mobile/pull/3035", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-09-24T17:09:40.000+0000", "updated": "2012-09-24T17:09:40.000+0000" }, { "id": "410191", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T01:05:35.000+0000", "updated": "2017-03-09T01:05:35.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }