{"action":"created","issue":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/8057","repository_url":"https://api.github.com/repos/HabitRPG/habitrpg","labels_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/8057/labels{/name}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/8057/comments","events_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/8057/events","html_url":"https://github.com/HabitRPG/habitrpg/issues/8057","id":179014740,"number":8057,"title":"Amplitude should record the user's balance (amount of gems)","user":{"login":"Alys","id":1495809,"avatar_url":"https://avatars.githubusercontent.com/u/1495809?v=3","gravatar_id":"","url":"https://api.github.com/users/Alys","html_url":"https://github.com/Alys","followers_url":"https://api.github.com/users/Alys/followers","following_url":"https://api.github.com/users/Alys/following{/other_user}","gists_url":"https://api.github.com/users/Alys/gists{/gist_id}","starred_url":"https://api.github.com/users/Alys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alys/subscriptions","organizations_url":"https://api.github.com/users/Alys/orgs","repos_url":"https://api.github.com/users/Alys/repos","events_url":"https://api.github.com/users/Alys/events{/privacy}","received_events_url":"https://api.github.com/users/Alys/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HabitRPG/habitrpg/labels/priority:%20medium","name":"priority: medium","color":"e99695"},{"url":"https://api.github.com/repos/HabitRPG/habitrpg/labels/status:%20issue:%20in%20progress","name":"status: issue: in progress","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-24T06:31:12Z","updated_at":"2016-09-29T10:30:23Z","closed_at":null,"body":"Our  Amplitude analytics data should include the user's number of gems (the user's `balance` object) to help us track payment / purchase problems.\r\n\r\nIdeally it should report it as something like this `Balance   0.75 (3 Gems)` to avoid us making mistakes with the mental arithmetic - I know it's not hard, but it's even easier for the computer. ;)\r\n\r\nIf for any reason the balance doesn't exist or isn't a finite number, the code should report that (I have no idea if that's possible with our current code base or any future code, but it wouldn't be good to report a balance of 0 if there was actually some bug that prevented the balance existing at all)."},"comment":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/comments/250429511","html_url":"https://github.com/HabitRPG/habitrpg/issues/8057#issuecomment-250429511","issue_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/8057","id":250429511,"user":{"login":"Alys","id":1495809,"avatar_url":"https://avatars.githubusercontent.com/u/1495809?v=3","gravatar_id":"","url":"https://api.github.com/users/Alys","html_url":"https://github.com/Alys","followers_url":"https://api.github.com/users/Alys/followers","following_url":"https://api.github.com/users/Alys/following{/other_user}","gists_url":"https://api.github.com/users/Alys/gists{/gist_id}","starred_url":"https://api.github.com/users/Alys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alys/subscriptions","organizations_url":"https://api.github.com/users/Alys/orgs","repos_url":"https://api.github.com/users/Alys/repos","events_url":"https://api.github.com/users/Alys/events{/privacy}","received_events_url":"https://api.github.com/users/Alys/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T10:30:23Z","updated_at":"2016-09-29T10:30:23Z","body":"@dumindux Please show us the full output of `npm test`. You can upload it to a new gist at https://gist.github.com/ and then paste the link here."}}
{"actor":{"display_login":"Alys"}}