{ "id": "176190", "key": "TIMOB-28449", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "21224", "name": "titanium 5.3.2", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-05-17T18:51:58.000+0000", "created": "2021-05-17T18:08:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "21219", "name": "titanium 5.3.1", "archived": false, "released": true, "releaseDate": "2021-04-28" } ], "issuelinks": [ { "id": "59261", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "176191", "key": "CLI-1411", "fields": { "summary": "CLI: Release are not sorted via semver leading to incorrect ordering", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2021-05-18T09:18:19.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "h5.Description\r\n\r\nWhen sorting versions the CLI just calls {{.sort}} which will use the built in JS sort function, however this sorting is invalid for version numbers as it will place {{9.3.2}} before {{10.0.0}}. The CLI instead needs to use semver.sort in the callback\r\n\r\nh5.Description\r\n\r\n1. Run {{\\[appc\\] ti sdk install latest}}\r\n\r\nh5.Actual\r\n\r\n9.3.2.GA is seen as latest\r\n\r\nh5.Expected\r\n\r\n10.0.0.GA should be seen as latest", "attachment": [], "flagged": false, "summary": "CLI: Release are not sorted via semver leading to incorrect ordering", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "closedSprints": [ { "id": 1224, "state": "closed", "name": "2021 Sprint 10", "startDate": "2021-05-17T16:31:32.484Z", "endDate": "2021-05-28T16:31:00.000Z", "completeDate": "2021-05-28T22:15:02.543Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "458684", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "https://github.com/appcelerator/titanium/pull/479", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-05-17T18:31:03.000+0000", "updated": "2021-05-17T18:31:03.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }