{"action":"created","comment":{"url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/pulls/comments/23384291","id":23384291,"diff_hunk":"@@ -16,6 +16,17 @@\n define(['exports', 'moment', 'sinon', 'bootstrap-notify'], function(exports, moment, sinon) {\n \n \n+    /////////////////\n+    //  CONSTANTS  //\n+    /////////////////\n+\n+    var periods = {","path":"shared/gh/api/gh.api.util.js","position":8,"original_position":8,"commit_id":"42beb745cfec903a9e3b01d537d596a7b77ebc9d","original_commit_id":"42beb745cfec903a9e3b01d537d596a7b77ebc9d","user":{"login":"bp323","id":218391,"avatar_url":"https://avatars.githubusercontent.com/u/218391?v=3","gravatar_id":"","url":"https://api.github.com/users/bp323","html_url":"https://github.com/bp323","followers_url":"https://api.github.com/users/bp323/followers","following_url":"https://api.github.com/users/bp323/following{/other_user}","gists_url":"https://api.github.com/users/bp323/gists{/gist_id}","starred_url":"https://api.github.com/users/bp323/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bp323/subscriptions","organizations_url":"https://api.github.com/users/bp323/orgs","repos_url":"https://api.github.com/users/bp323/repos","events_url":"https://api.github.com/users/bp323/events{/privacy}","received_events_url":"https://api.github.com/users/bp323/received_events","type":"User","site_admin":false},"body":"`... for use in the calendar`","created_at":"2015-01-22T15:47:50Z","updated_at":"2015-01-22T15:47:50Z","html_url":"https://github.com/CUL-DigitalServices/grasshopper-ui/pull/118#discussion_r23384291","pull_request_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/pulls/118","_links":{"self":{"href":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/pulls/comments/23384291"},"html":{"href":"https://github.com/CUL-DigitalServices/grasshopper-ui/pull/118#discussion_r23384291"},"pull_request":{"href":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/pulls/118"}}},"pull_request":{"url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/pulls/118","id":27615280,"html_url":"https://github.com/CUL-DigitalServices/grasshopper-ui/pull/118","diff_url":"https://github.com/CUL-DigitalServices/grasshopper-ui/pull/118.diff","patch_url":"https://github.com/CUL-DigitalServices/grasshopper-ui/pull/118.patch","issue_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/issues/118","number":118,"state":"open","locked":false,"title":"Only request the events for the current view range","user":{"login":"Coenego","id":2194396,"avatar_url":"https://avatars.githubusercontent.com/u/2194396?v=3","gravatar_id":"","url":"https://api.github.com/users/Coenego","html_url":"https://github.com/Coenego","followers_url":"https://api.github.com/users/Coenego/followers","following_url":"https://api.github.com/users/Coenego/following{/other_user}","gists_url":"https://api.github.com/users/Coenego/gists{/gist_id}","starred_url":"https://api.github.com/users/Coenego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coenego/subscriptions","organizations_url":"https://api.github.com/users/Coenego/orgs","repos_url":"https://api.github.com/users/Coenego/repos","events_url":"https://api.github.com/users/Coenego/events{/privacy}","received_events_url":"https://api.github.com/users/Coenego/received_events","type":"User","site_admin":false},"body":"We should only request the user's events for the range of the current view (month/week/day) instead of requesting them all and narrowing them down in the UI.","created_at":"2015-01-19T15:41:51Z","updated_at":"2015-01-22T15:47:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"04602a807b895bf06fb06c8bf0d581ee395c00ee","assignee":{"login":"bp323","id":218391,"avatar_url":"https://avatars.githubusercontent.com/u/218391?v=3","gravatar_id":"","url":"https://api.github.com/users/bp323","html_url":"https://github.com/bp323","followers_url":"https://api.github.com/users/bp323/followers","following_url":"https://api.github.com/users/bp323/following{/other_user}","gists_url":"https://api.github.com/users/bp323/gists{/gist_id}","starred_url":"https://api.github.com/users/bp323/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bp323/subscriptions","organizations_url":"https://api.github.com/users/bp323/orgs","repos_url":"https://api.github.com/users/bp323/repos","events_url":"https://api.github.com/users/bp323/events{/privacy}","received_events_url":"https://api.github.com/users/bp323/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/pulls/118/commits","review_comments_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/pulls/118/comments","review_comment_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/pulls/comments/{number}","comments_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/issues/118/comments","statuses_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/statuses/42beb745cfec903a9e3b01d537d596a7b77ebc9d","head":{"label":"Coenego:issue-118-range","ref":"issue-118-range","sha":"42beb745cfec903a9e3b01d537d596a7b77ebc9d","user":{"login":"Coenego","id":2194396,"avatar_url":"https://avatars.githubusercontent.com/u/2194396?v=3","gravatar_id":"","url":"https://api.github.com/users/Coenego","html_url":"https://github.com/Coenego","followers_url":"https://api.github.com/users/Coenego/followers","following_url":"https://api.github.com/users/Coenego/following{/other_user}","gists_url":"https://api.github.com/users/Coenego/gists{/gist_id}","starred_url":"https://api.github.com/users/Coenego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coenego/subscriptions","organizations_url":"https://api.github.com/users/Coenego/orgs","repos_url":"https://api.github.com/users/Coenego/repos","events_url":"https://api.github.com/users/Coenego/events{/privacy}","received_events_url":"https://api.github.com/users/Coenego/received_events","type":"User","site_admin":false},"repo":{"id":26270317,"name":"grasshopper-ui","full_name":"Coenego/grasshopper-ui","owner":{"login":"Coenego","id":2194396,"avatar_url":"https://avatars.githubusercontent.com/u/2194396?v=3","gravatar_id":"","url":"https://api.github.com/users/Coenego","html_url":"https://github.com/Coenego","followers_url":"https://api.github.com/users/Coenego/followers","following_url":"https://api.github.com/users/Coenego/following{/other_user}","gists_url":"https://api.github.com/users/Coenego/gists{/gist_id}","starred_url":"https://api.github.com/users/Coenego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coenego/subscriptions","organizations_url":"https://api.github.com/users/Coenego/orgs","repos_url":"https://api.github.com/users/Coenego/repos","events_url":"https://api.github.com/users/Coenego/events{/privacy}","received_events_url":"https://api.github.com/users/Coenego/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Coenego/grasshopper-ui","description":"Grasshopper UI","fork":true,"url":"https://api.github.com/repos/Coenego/grasshopper-ui","forks_url":"https://api.github.com/repos/Coenego/grasshopper-ui/forks","keys_url":"https://api.github.com/repos/Coenego/grasshopper-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Coenego/grasshopper-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Coenego/grasshopper-ui/teams","hooks_url":"https://api.github.com/repos/Coenego/grasshopper-ui/hooks","issue_events_url":"https://api.github.com/repos/Coenego/grasshopper-ui/issues/events{/number}","events_url":"https://api.github.com/repos/Coenego/grasshopper-ui/events","assignees_url":"https://api.github.com/repos/Coenego/grasshopper-ui/assignees{/user}","branches_url":"https://api.github.com/repos/Coenego/grasshopper-ui/branches{/branch}","tags_url":"https://api.github.com/repos/Coenego/grasshopper-ui/tags","blobs_url":"https://api.github.com/repos/Coenego/grasshopper-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Coenego/grasshopper-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Coenego/grasshopper-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/Coenego/grasshopper-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Coenego/grasshopper-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/Coenego/grasshopper-ui/languages","stargazers_url":"https://api.github.com/repos/Coenego/grasshopper-ui/stargazers","contributors_url":"https://api.github.com/repos/Coenego/grasshopper-ui/contributors","subscribers_url":"https://api.github.com/repos/Coenego/grasshopper-ui/subscribers","subscription_url":"https://api.github.com/repos/Coenego/grasshopper-ui/subscription","commits_url":"https://api.github.com/repos/Coenego/grasshopper-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/Coenego/grasshopper-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/Coenego/grasshopper-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/Coenego/grasshopper-ui/issues/comments/{number}","contents_url":"https://api.github.com/repos/Coenego/grasshopper-ui/contents/{+path}","compare_url":"https://api.github.com/repos/Coenego/grasshopper-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Coenego/grasshopper-ui/merges","archive_url":"https://api.github.com/repos/Coenego/grasshopper-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Coenego/grasshopper-ui/downloads","issues_url":"https://api.github.com/repos/Coenego/grasshopper-ui/issues{/number}","pulls_url":"https://api.github.com/repos/Coenego/grasshopper-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/Coenego/grasshopper-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/Coenego/grasshopper-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Coenego/grasshopper-ui/labels{/name}","releases_url":"https://api.github.com/repos/Coenego/grasshopper-ui/releases{/id}","created_at":"2014-11-06T13:08:06Z","updated_at":"2014-12-17T11:06:35Z","pushed_at":"2015-01-22T15:12:37Z","git_url":"git://github.com/Coenego/grasshopper-ui.git","ssh_url":"git@github.com:Coenego/grasshopper-ui.git","clone_url":"https://github.com/Coenego/grasshopper-ui.git","svn_url":"https://github.com/Coenego/grasshopper-ui","homepage":null,"size":3237,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"CUL-DigitalServices:master","ref":"master","sha":"572f71aacda2ac27ec11ceea48ebfd4a1acc2514","user":{"login":"CUL-DigitalServices","id":5594563,"avatar_url":"https://avatars.githubusercontent.com/u/5594563?v=3","gravatar_id":"","url":"https://api.github.com/users/CUL-DigitalServices","html_url":"https://github.com/CUL-DigitalServices","followers_url":"https://api.github.com/users/CUL-DigitalServices/followers","following_url":"https://api.github.com/users/CUL-DigitalServices/following{/other_user}","gists_url":"https://api.github.com/users/CUL-DigitalServices/gists{/gist_id}","starred_url":"https://api.github.com/users/CUL-DigitalServices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CUL-DigitalServices/subscriptions","organizations_url":"https://api.github.com/users/CUL-DigitalServices/orgs","repos_url":"https://api.github.com/users/CUL-DigitalServices/repos","events_url":"https://api.github.com/users/CUL-DigitalServices/events{/privacy}","received_events_url":"https://api.github.com/users/CUL-DigitalServices/received_events","type":"Organization","site_admin":false},"repo":{"id":26270238,"name":"grasshopper-ui","full_name":"CUL-DigitalServices/grasshopper-ui","owner":{"login":"CUL-DigitalServices","id":5594563,"avatar_url":"https://avatars.githubusercontent.com/u/5594563?v=3","gravatar_id":"","url":"https://api.github.com/users/CUL-DigitalServices","html_url":"https://github.com/CUL-DigitalServices","followers_url":"https://api.github.com/users/CUL-DigitalServices/followers","following_url":"https://api.github.com/users/CUL-DigitalServices/following{/other_user}","gists_url":"https://api.github.com/users/CUL-DigitalServices/gists{/gist_id}","starred_url":"https://api.github.com/users/CUL-DigitalServices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CUL-DigitalServices/subscriptions","organizations_url":"https://api.github.com/users/CUL-DigitalServices/orgs","repos_url":"https://api.github.com/users/CUL-DigitalServices/repos","events_url":"https://api.github.com/users/CUL-DigitalServices/events{/privacy}","received_events_url":"https://api.github.com/users/CUL-DigitalServices/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CUL-DigitalServices/grasshopper-ui","description":"Grasshopper UI","fork":true,"url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui","forks_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/forks","keys_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/teams","hooks_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/hooks","issue_events_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/issues/events{/number}","events_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/events","assignees_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/assignees{/user}","branches_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/branches{/branch}","tags_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/tags","blobs_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/languages","stargazers_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/stargazers","contributors_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/contributors","subscribers_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/subscribers","subscription_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/subscription","commits_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/issues/comments/{number}","contents_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/contents/{+path}","compare_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/merges","archive_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/downloads","issues_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/issues{/number}","pulls_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/labels{/name}","releases_url":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/releases{/id}","created_at":"2014-11-06T13:06:00Z","updated_at":"2015-01-21T15:24:34Z","pushed_at":"2015-01-21T15:24:34Z","git_url":"git://github.com/CUL-DigitalServices/grasshopper-ui.git","ssh_url":"git@github.com:CUL-DigitalServices/grasshopper-ui.git","clone_url":"https://github.com/CUL-DigitalServices/grasshopper-ui.git","svn_url":"https://github.com/CUL-DigitalServices/grasshopper-ui","homepage":null,"size":3485,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":12,"forks":3,"open_issues":12,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/pulls/118"},"html":{"href":"https://github.com/CUL-DigitalServices/grasshopper-ui/pull/118"},"issue":{"href":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/issues/118"},"comments":{"href":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/issues/118/comments"},"review_comments":{"href":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/pulls/118/comments"},"review_comment":{"href":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/pulls/118/commits"},"statuses":{"href":"https://api.github.com/repos/CUL-DigitalServices/grasshopper-ui/statuses/42beb745cfec903a9e3b01d537d596a7b77ebc9d"}}}}