{"action":"created","comment":{"url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/pulls/comments/26951882","id":26951882,"diff_hunk":"@@ -96,16 +102,13 @@\n                     if(selected_user) {\n                         loading.show();\n                         chart_div.hide();\n-                        \n-                        // some dummy data, this should go from API\n-                        var result = [\n-                            [\"Mon\", new Date(1, 1, 1, 7, 37, 38), new Date(1, 1, 1, 15, 07, 14)],\n-                            [\"Tue\", new Date(1, 1, 1, 8, 16, 23), new Date(1, 1, 1, 14, 01, 47)],\n-                            [\"Wed\", new Date(1, 1, 1, 7, 00, 06), new Date(1, 1, 1, 13, 24, 12)],\n-                            [\"Thu\", new Date(1, 1, 1, 7, 26, 32), new Date(1, 1, 1, 12, 40, 45)],\n-                            [\"Fri\", new Date(1, 1, 1, 6, 53, 22), new Date(1, 1, 1, 12, 52, 09)]\n-                        ] \n \n+                        $.getJSON(\"/api/v1/mean_time_start_end/\"+selected_user, function(result) {\n+                            $.each(result, function(index, value) {\n+                                value[1] = parseInterval(value[1]);\n+                                value[2] = parseInterval(value[2]);\n+                            });\n+                            console.log(result);","path":"src/presence_analyzer/static/presence_start_end.html","position":32,"original_position":32,"commit_id":"b129e641a4b83ba856496cb2dd138e94116ed233","original_commit_id":"b129e641a4b83ba856496cb2dd138e94116ed233","user":{"login":"dpolcyn","id":7630766,"avatar_url":"https://avatars.githubusercontent.com/u/7630766?v=3","gravatar_id":"","url":"https://api.github.com/users/dpolcyn","html_url":"https://github.com/dpolcyn","followers_url":"https://api.github.com/users/dpolcyn/followers","following_url":"https://api.github.com/users/dpolcyn/following{/other_user}","gists_url":"https://api.github.com/users/dpolcyn/gists{/gist_id}","starred_url":"https://api.github.com/users/dpolcyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpolcyn/subscriptions","organizations_url":"https://api.github.com/users/dpolcyn/orgs","repos_url":"https://api.github.com/users/dpolcyn/repos","events_url":"https://api.github.com/users/dpolcyn/events{/privacy}","received_events_url":"https://api.github.com/users/dpolcyn/received_events","type":"User","site_admin":false},"body":"You don't need this.","created_at":"2015-03-23T16:19:06Z","updated_at":"2015-03-23T16:19:06Z","html_url":"https://github.com/stxnext-kindergarten/presence-analyzer-pwodzinski/pull/3#discussion_r26951882","pull_request_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/pulls/comments/26951882"},"html":{"href":"https://github.com/stxnext-kindergarten/presence-analyzer-pwodzinski/pull/3#discussion_r26951882"},"pull_request":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/pulls/3","id":31714667,"html_url":"https://github.com/stxnext-kindergarten/presence-analyzer-pwodzinski/pull/3","diff_url":"https://github.com/stxnext-kindergarten/presence-analyzer-pwodzinski/pull/3.diff","patch_url":"https://github.com/stxnext-kindergarten/presence-analyzer-pwodzinski/pull/3.patch","issue_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/issues/3","number":3,"state":"open","locked":false,"title":"Added new view: Presence start-end weekday","user":{"login":"pwodzinski","id":11503090,"avatar_url":"https://avatars.githubusercontent.com/u/11503090?v=3","gravatar_id":"","url":"https://api.github.com/users/pwodzinski","html_url":"https://github.com/pwodzinski","followers_url":"https://api.github.com/users/pwodzinski/followers","following_url":"https://api.github.com/users/pwodzinski/following{/other_user}","gists_url":"https://api.github.com/users/pwodzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/pwodzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwodzinski/subscriptions","organizations_url":"https://api.github.com/users/pwodzinski/orgs","repos_url":"https://api.github.com/users/pwodzinski/repos","events_url":"https://api.github.com/users/pwodzinski/events{/privacy}","received_events_url":"https://api.github.com/users/pwodzinski/received_events","type":"User","site_admin":false},"body":"Added new view: \"Presence start-end weekday\",\r\nsome files have been changed.","created_at":"2015-03-23T09:11:51Z","updated_at":"2015-03-23T16:19:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68487b077f06b9d0181f4977219138979dc40abf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/pulls/3/commits","review_comments_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/pulls/3/comments","review_comment_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/issues/3/comments","statuses_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/statuses/b129e641a4b83ba856496cb2dd138e94116ed233","head":{"label":"pwodzinski:bug_5783","ref":"bug_5783","sha":"b129e641a4b83ba856496cb2dd138e94116ed233","user":{"login":"pwodzinski","id":11503090,"avatar_url":"https://avatars.githubusercontent.com/u/11503090?v=3","gravatar_id":"","url":"https://api.github.com/users/pwodzinski","html_url":"https://github.com/pwodzinski","followers_url":"https://api.github.com/users/pwodzinski/followers","following_url":"https://api.github.com/users/pwodzinski/following{/other_user}","gists_url":"https://api.github.com/users/pwodzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/pwodzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwodzinski/subscriptions","organizations_url":"https://api.github.com/users/pwodzinski/orgs","repos_url":"https://api.github.com/users/pwodzinski/repos","events_url":"https://api.github.com/users/pwodzinski/events{/privacy}","received_events_url":"https://api.github.com/users/pwodzinski/received_events","type":"User","site_admin":false},"repo":{"id":32381468,"name":"presence-analyzer-pwodzinski","full_name":"pwodzinski/presence-analyzer-pwodzinski","owner":{"login":"pwodzinski","id":11503090,"avatar_url":"https://avatars.githubusercontent.com/u/11503090?v=3","gravatar_id":"","url":"https://api.github.com/users/pwodzinski","html_url":"https://github.com/pwodzinski","followers_url":"https://api.github.com/users/pwodzinski/followers","following_url":"https://api.github.com/users/pwodzinski/following{/other_user}","gists_url":"https://api.github.com/users/pwodzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/pwodzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwodzinski/subscriptions","organizations_url":"https://api.github.com/users/pwodzinski/orgs","repos_url":"https://api.github.com/users/pwodzinski/repos","events_url":"https://api.github.com/users/pwodzinski/events{/privacy}","received_events_url":"https://api.github.com/users/pwodzinski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pwodzinski/presence-analyzer-pwodzinski","description":"","fork":true,"url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski","forks_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/forks","keys_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/teams","hooks_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/hooks","issue_events_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/issues/events{/number}","events_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/events","assignees_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/assignees{/user}","branches_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/branches{/branch}","tags_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/tags","blobs_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/git/refs{/sha}","trees_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/statuses/{sha}","languages_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/languages","stargazers_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/stargazers","contributors_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/contributors","subscribers_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/subscribers","subscription_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/subscription","commits_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/commits{/sha}","git_commits_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/git/commits{/sha}","comments_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/comments{/number}","issue_comment_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/issues/comments{/number}","contents_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/contents/{+path}","compare_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/merges","archive_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/downloads","issues_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/issues{/number}","pulls_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/pulls{/number}","milestones_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/milestones{/number}","notifications_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/labels{/name}","releases_url":"https://api.github.com/repos/pwodzinski/presence-analyzer-pwodzinski/releases{/id}","created_at":"2015-03-17T08:45:50Z","updated_at":"2015-03-17T08:45:50Z","pushed_at":"2015-03-23T09:07:39Z","git_url":"git://github.com/pwodzinski/presence-analyzer-pwodzinski.git","ssh_url":"git@github.com:pwodzinski/presence-analyzer-pwodzinski.git","clone_url":"https://github.com/pwodzinski/presence-analyzer-pwodzinski.git","svn_url":"https://github.com/pwodzinski/presence-analyzer-pwodzinski","homepage":null,"size":292,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"stxnext-kindergarten:master","ref":"master","sha":"2344b887583efe647f3a65e646fdd96309431e9c","user":{"login":"stxnext-kindergarten","id":5575308,"avatar_url":"https://avatars.githubusercontent.com/u/5575308?v=3","gravatar_id":"","url":"https://api.github.com/users/stxnext-kindergarten","html_url":"https://github.com/stxnext-kindergarten","followers_url":"https://api.github.com/users/stxnext-kindergarten/followers","following_url":"https://api.github.com/users/stxnext-kindergarten/following{/other_user}","gists_url":"https://api.github.com/users/stxnext-kindergarten/gists{/gist_id}","starred_url":"https://api.github.com/users/stxnext-kindergarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stxnext-kindergarten/subscriptions","organizations_url":"https://api.github.com/users/stxnext-kindergarten/orgs","repos_url":"https://api.github.com/users/stxnext-kindergarten/repos","events_url":"https://api.github.com/users/stxnext-kindergarten/events{/privacy}","received_events_url":"https://api.github.com/users/stxnext-kindergarten/received_events","type":"Organization","site_admin":false},"repo":{"id":32313376,"name":"presence-analyzer-pwodzinski","full_name":"stxnext-kindergarten/presence-analyzer-pwodzinski","owner":{"login":"stxnext-kindergarten","id":5575308,"avatar_url":"https://avatars.githubusercontent.com/u/5575308?v=3","gravatar_id":"","url":"https://api.github.com/users/stxnext-kindergarten","html_url":"https://github.com/stxnext-kindergarten","followers_url":"https://api.github.com/users/stxnext-kindergarten/followers","following_url":"https://api.github.com/users/stxnext-kindergarten/following{/other_user}","gists_url":"https://api.github.com/users/stxnext-kindergarten/gists{/gist_id}","starred_url":"https://api.github.com/users/stxnext-kindergarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stxnext-kindergarten/subscriptions","organizations_url":"https://api.github.com/users/stxnext-kindergarten/orgs","repos_url":"https://api.github.com/users/stxnext-kindergarten/repos","events_url":"https://api.github.com/users/stxnext-kindergarten/events{/privacy}","received_events_url":"https://api.github.com/users/stxnext-kindergarten/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stxnext-kindergarten/presence-analyzer-pwodzinski","description":"","fork":false,"url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski","forks_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/forks","keys_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/teams","hooks_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/hooks","issue_events_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/issues/events{/number}","events_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/events","assignees_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/assignees{/user}","branches_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/branches{/branch}","tags_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/tags","blobs_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/git/refs{/sha}","trees_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/statuses/{sha}","languages_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/languages","stargazers_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/stargazers","contributors_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/contributors","subscribers_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/subscribers","subscription_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/subscription","commits_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/commits{/sha}","git_commits_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/git/commits{/sha}","comments_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/comments{/number}","issue_comment_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/issues/comments{/number}","contents_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/contents/{+path}","compare_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/merges","archive_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/downloads","issues_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/issues{/number}","pulls_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/pulls{/number}","milestones_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/milestones{/number}","notifications_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/labels{/name}","releases_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/releases{/id}","created_at":"2015-03-16T09:12:58Z","updated_at":"2015-03-20T12:38:28Z","pushed_at":"2015-03-23T09:11:51Z","git_url":"git://github.com/stxnext-kindergarten/presence-analyzer-pwodzinski.git","ssh_url":"git@github.com:stxnext-kindergarten/presence-analyzer-pwodzinski.git","clone_url":"https://github.com/stxnext-kindergarten/presence-analyzer-pwodzinski.git","svn_url":"https://github.com/stxnext-kindergarten/presence-analyzer-pwodzinski","homepage":null,"size":375,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/pulls/3"},"html":{"href":"https://github.com/stxnext-kindergarten/presence-analyzer-pwodzinski/pull/3"},"issue":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/issues/3"},"comments":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-pwodzinski/statuses/b129e641a4b83ba856496cb2dd138e94116ed233"}}}}