{ "id": "164462", "key": "TIMOB-24125", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-02-06T07:59:20.000+0000", "created": "2016-11-09T14:20:01.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-6.0.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "53404", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158461", "key": "TIMOB-22511", "fields": { "summary": "Ti.UI.TableView Test Suite: Titanium.UI.TableView Acceptance TIMOB-17097", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-02-06T22:14:02.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\nWhen calling insertRowBefore with a row that has been taken from the table, not a dictionary or a newly created row, the application appears to freeze\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\nvar table = Ti.UI.createTableView({\r\n top: 0,\r\n bottom: 0\r\n});\r\n\r\nvar tableData = [];\r\n\r\nfor (var i = 0; i < 10; i++) {\r\n tableData.push(Ti.UI.createTableViewRow({\r\n title: \"Row \" + (i + 1)\r\n}));\r\n}\r\n\r\ntable.setData(tableData);\r\n\r\n_window.add(table);\r\n\r\ntable.addEventListener(\"click\", function(e) {\r\n var row = table.data[e.index];\r\n Ti.API.info('index');\r\n Ti.API.info(e.index);\r\n Ti.API.info(row.title);\r\n table.insertRowBefore(0, row);\r\n});\r\n_window.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the code above to an existing app.js\r\n# Build for Windows Platform\r\n# Tap a row\r\n\r\nh5.Actual result\r\n\r\nApplication appears to freeze on the row click\r\n\r\nh5.Expected result\r\n\r\nA duplicate of the row clicked should be added to the top of the tableview", "attachment": [ { "id": "61455", "filename": "6.1.0.v20170206114448.PNG", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-06T22:05:34.000+0000", "size": 19637, "mimeType": "image/png" }, { "id": "61456", "filename": "Before.PNG", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-06T22:12:23.000+0000", "size": 13908, "mimeType": "image/png" }, { "id": "61338", "filename": "list.png", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-30T11:52:12.000+0000", "size": 2333, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows: Calling insertRowBefore with an existing row causes application to freeze", "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": "OS: Microsoft Windows 10 Pro 10.0.14393\r\nAppc core: 6.0.0-69\r\nAppc NPM: 4.2.8-9\r\nTi SDK: 6.0.0.v20161107075927\r\nLumia 550 10.0", "closedSprints": [ { "id": 808, "state": "closed", "name": "2017 Sprint 03 SDK", "startDate": "2017-01-28T21:12:30.215Z", "endDate": "2017-02-12T21:12:00.000Z", "completeDate": "2017-02-12T23:37:14.667Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "406122", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/939", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-02T09:23:03.000+0000", "updated": "2017-02-02T09:23:03.000+0000" }, { "id": "406436", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with the test code provided in the description, was able to verify that a new row is added to the top of the tableview when an existing row is clicked. \r\n\r\nThe screenshot below shows that rows are added to the top of the table view when clicking on a row. (Shows before and after clicking on random rows)\r\n!Before.PNG|thumbnail! !6.1.0.v20170206114448.PNG|thumbnail!\r\n\r\n*Environment*\r\n{code:java}\r\nPhone : Lumia 640 LTE (RM-1073)\r\nOperating System:\r\nName = Microsoft Windows 10 Pro\r\nVersion = 10.0.14393\r\nArchitecture = 32bit\r\n# CPUs = 4\r\nMemory = 17034395648\r\n \r\nNode.js:\r\nNode.js Version = 4.6.0 \r\nnpm Version = 2.15.9\r\n \r\nTitanium SDK:\r\nSDK Version = 6.1.0.v20170206114448\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-06T22:11:11.000+0000", "updated": "2017-02-06T22:13:36.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }