{ "id": "137949", "key": "TIMOB-17844", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-12-18T15:04:46.000+0000", "created": "2014-10-10T21:33:56.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-12-18T15:04:46.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": [], "description": "h5. Description\r\n\r\nThe average session length is not shown for Windows Hybrid devices in both pre-prod and production, in pre-prod it is shown that there are six active sessions despite the session being closed as shown in the attached screenshot. \r\n\r\nThis is only seen if the app is built to a device, if built to emulator then the average session can be seen.\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Build an app to a Windows Phone device\r\n2. Open and close the app a few times\r\n\r\nh5. Actual Results\r\nAverage session length is not shown and it is shown as having a number of sessions open\r\n\r\nh5. Expected Results\r\nThe average sessions length should be shown and there should be no active sessions.\r\n\r\n*Notes*\r\nThe ti.end is being sent by the device as verified by checking the payload using staging.\r\n\r\nIt is only the average session length that is not being shown, the installs and sessions are correct.", "attachment": [], "flagged": false, "summary": "Dashboard: Windows Hybrid average session length is not shown for device", "creator": { "name": "nle", "key": "nle", "displayName": "Nam Le", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "https://dashboard.appcelerator.com/\r\nhttps://360-preprod.appcelerator.com/", "comment": { "comments": [ { "id": "327935", "author": { "name": "nle", "key": "nle", "displayName": "Nam Le", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Here is one of the apps that had incomplete sessions:\r\n{code}\r\nnle$ curl \"http://pem-next-pre-production.appc-enterprise-aws.com:8080/rest-api/rest/metric/oid/100000013/range/1410652800000/1413244799999/granularity/day/stats/sessions?guid=058b8c7e-7e65-4411-8974-b528acbea96f&jsonh=true\" -H \"X-Auth-Token:782a36cd-9561-4d2c-a0f7-d1557cdf2503\" | json\r\n % Total % Received % Xferd Average Speed Time Time Time Current\r\n Dload Upload Total Spent Left Speed\r\n100 223 0 223 0 0 1919 0 --:--:-- --:--:-- --:--:-- 1922\r\n[\r\n {\r\n \"stats\": {\r\n \"sessions\": {\r\n \"windows\": {\r\n \"s\": 7,\r\n \"t\": 6,\r\n \"n\": 1,\r\n \"l\": 16499\r\n }\r\n },\r\n \"last\": {\r\n \"install\": {\r\n \"windows\": 1412876578402\r\n },\r\n \"session\": {\r\n \"windows\": 1412876610549\r\n }\r\n }\r\n },\r\n \"timestamp_str\": \"2014-10-09-00-00\",\r\n \"timestamp\": 1412812800000,\r\n \"modified\": 0\r\n }\r\n]\r\n{code}\r\n\r\n[~rramaswamy] Can you investigate if you received the session end events as the ticket indicates? If so it could be a processing issue on the PEM side", "updateAuthor": { "name": "nle", "key": "nle", "displayName": "Nam Le", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-13T21:09:51.000+0000", "updated": "2014-10-13T21:09:51.000+0000" }, { "id": "327938", "author": { "name": "iwhitfield", "key": "iwhitfield", "displayName": "Isaac Whitfield", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~nle] [~eharris] sure, I'll look after .Next. The fact that it's platform specific usually means it's not PEM though :)\r\n\r\nFor the future; I put in an endpoint for grabbing the raw events in PEM for an aguid via the API:\r\n\r\nhttp://pem-next-pre-production.appc-enterprise-aws.com:8080/dashboard/docs/#!/event/getEventsByField_get_1\r\n\r\nfield would be \"aguid\" and value would obviously be the app guid.\r\n\r\n", "updateAuthor": { "name": "iwhitfield", "key": "iwhitfield", "displayName": "Isaac Whitfield", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-13T21:15:31.000+0000", "updated": "2014-10-13T21:16:06.000+0000" }, { "id": "327939", "author": { "name": "iwhitfield", "key": "iwhitfield", "displayName": "Isaac Whitfield", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~eharris] do you have the payloads from staging? Perhaps the session has a new sid every time, which would cause this behaviour.", "updateAuthor": { "name": "iwhitfield", "key": "iwhitfield", "displayName": "Isaac Whitfield", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-13T21:17:35.000+0000", "updated": "2014-10-13T21:17:35.000+0000" }, { "id": "327940", "author": { "name": "iwhitfield", "key": "iwhitfield", "displayName": "Isaac Whitfield", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Never mind, I found it in the other ticket. Sids are changing in end events. This is correct behaviour for PEM, because the client is not expiring the same session. [~nle] I believe this should become a TIMOB ticket.\r\n\r\nNo sid in those events has another event associated with it, so in reality sessions do not exist. \r\n\r\n{code}\r\n{\r\n '5CF842B7-FFD9-4E50-8A96-92CDFDF8F57B': [ 'ti.end' ],\r\n 'F0C4E4FD-9230-4DB5-9C51-6152A2FB0056': [ 'ti.start' ],\r\n '24BF8F49-65F8-404F-A371-0F54EF5F7D93': [ 'ti.end' ],\r\n 'FD7A4B0A-E57E-443E-A2D8-3DE6A6063760': [ 'ti.start' ],\r\n 'CAFB78DB-ACE3-4127-BCE6-9620AFD2B312': [ 'ti.end' ],\r\n '5E69C6A0-9617-4EEE-B102-83C21997F6B0': [ 'ti.start' ],\r\n '5400378F-9390-46DE-B09C-6270C4973B0E': [ 'ti.end' ],\r\n '58A9B0B4-259E-4E94-933D-618D7928D82F': [ 'ti.start' ],\r\n 'C914BE6B-9C4A-4631-845A-C99B4A96C490': [ 'ti.end' ],\r\n '51C490DA-BC0A-44E5-BBCA-AFBED2F6F353': [ 'ti.start' ],\r\n '93254C55-E911-4BDF-B6F3-4FD985C132C5': [ 'ti.enroll' ]\r\n}\r\n{code}", "updateAuthor": { "name": "iwhitfield", "key": "iwhitfield", "displayName": "Isaac Whitfield", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-13T21:21:40.000+0000", "updated": "2014-10-13T21:33:43.000+0000" }, { "id": "327941", "author": { "name": "iwhitfield", "key": "iwhitfield", "displayName": "Isaac Whitfield", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving to TIMOB as the client side is not maintaining a session id correctly. A session id should be the same between both enroll/start and end. ", "updateAuthor": { "name": "iwhitfield", "key": "iwhitfield", "displayName": "Isaac Whitfield", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-13T21:35:13.000+0000", "updated": "2014-10-13T21:35:13.000+0000" }, { "id": "432294", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Windows Hybrid support went with Mobileweb, so closing", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-12-18T15:04:37.000+0000", "updated": "2017-12-18T15:04:37.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }