{"action":"created","comment":{"url":"https://api.github.com/repos/uw-it-aca/myuw/pulls/comments/168898040","pull_request_review_id":97349614,"id":168898040,"diff_hunk":"@@ -12,40 +15,40 @@\n \n \n def get_calendars_for_current_user(request):\n-    return _get_calendars(request, _get_enrollments(request))\n+\n+    try:\n+\n+        majors = get_majors(request)['rollup']\n+        majors = [major.major_name for major in majors]\n+\n+        minors = get_minors(request)['rollup']\n+        minors = [minor.short_name for minor in minors]\n+","path":"myuw/dao/calendar_mapping.py","position":25,"original_position":25,"commit_id":"84ee611a8d96705717b6d2bdc48a88117111ad3b","original_commit_id":"84ee611a8d96705717b6d2bdc48a88117111ad3b","user":{"login":"fanglinfang","id":9834194,"avatar_url":"https://avatars1.githubusercontent.com/u/9834194?v=4","gravatar_id":"","url":"https://api.github.com/users/fanglinfang","html_url":"https://github.com/fanglinfang","followers_url":"https://api.github.com/users/fanglinfang/followers","following_url":"https://api.github.com/users/fanglinfang/following{/other_user}","gists_url":"https://api.github.com/users/fanglinfang/gists{/gist_id}","starred_url":"https://api.github.com/users/fanglinfang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanglinfang/subscriptions","organizations_url":"https://api.github.com/users/fanglinfang/orgs","repos_url":"https://api.github.com/users/fanglinfang/repos","events_url":"https://api.github.com/users/fanglinfang/events{/privacy}","received_events_url":"https://api.github.com/users/fanglinfang/received_events","type":"User","site_admin":false},"body":"Can we get {\r\n        'majors': majors,\r\n        'minors': minors\r\n    }\r\nin one call?","created_at":"2018-02-16T23:50:08Z","updated_at":"2018-02-16T23:50:09Z","html_url":"https://github.com/uw-it-aca/myuw/pull/1097#discussion_r168898040","pull_request_url":"https://api.github.com/repos/uw-it-aca/myuw/pulls/1097","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/uw-it-aca/myuw/pulls/comments/168898040"},"html":{"href":"https://github.com/uw-it-aca/myuw/pull/1097#discussion_r168898040"},"pull_request":{"href":"https://api.github.com/repos/uw-it-aca/myuw/pulls/1097"}}},"pull_request":{"url":"https://api.github.com/repos/uw-it-aca/myuw/pulls/1097","id":169258193,"html_url":"https://github.com/uw-it-aca/myuw/pull/1097","diff_url":"https://github.com/uw-it-aca/myuw/pull/1097.diff","patch_url":"https://github.com/uw-it-aca/myuw/pull/1097.patch","issue_url":"https://api.github.com/repos/uw-it-aca/myuw/issues/1097","number":1097,"state":"open","locked":false,"title":"Bug/major refactor","user":{"login":"ezturner","id":3484903,"avatar_url":"https://avatars1.githubusercontent.com/u/3484903?v=4","gravatar_id":"","url":"https://api.github.com/users/ezturner","html_url":"https://github.com/ezturner","followers_url":"https://api.github.com/users/ezturner/followers","following_url":"https://api.github.com/users/ezturner/following{/other_user}","gists_url":"https://api.github.com/users/ezturner/gists{/gist_id}","starred_url":"https://api.github.com/users/ezturner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezturner/subscriptions","organizations_url":"https://api.github.com/users/ezturner/orgs","repos_url":"https://api.github.com/users/ezturner/repos","events_url":"https://api.github.com/users/ezturner/events{/privacy}","received_events_url":"https://api.github.com/users/ezturner/received_events","type":"User","site_admin":false},"body":"Fixes MUWM-3712 and adds departmental calendars to alumni pages","created_at":"2018-02-15T00:20:58Z","updated_at":"2018-02-16T23:50:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a0dc7adb183ec84ba89a625de3eb0ea95a348d74","assignee":null,"assignees":[],"requested_reviewers":[{"login":"klpittman","id":6953502,"avatar_url":"https://avatars1.githubusercontent.com/u/6953502?v=4","gravatar_id":"","url":"https://api.github.com/users/klpittman","html_url":"https://github.com/klpittman","followers_url":"https://api.github.com/users/klpittman/followers","following_url":"https://api.github.com/users/klpittman/following{/other_user}","gists_url":"https://api.github.com/users/klpittman/gists{/gist_id}","starred_url":"https://api.github.com/users/klpittman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klpittman/subscriptions","organizations_url":"https://api.github.com/users/klpittman/orgs","repos_url":"https://api.github.com/users/klpittman/repos","events_url":"https://api.github.com/users/klpittman/events{/privacy}","received_events_url":"https://api.github.com/users/klpittman/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/uw-it-aca/myuw/pulls/1097/commits","review_comments_url":"https://api.github.com/repos/uw-it-aca/myuw/pulls/1097/comments","review_comment_url":"https://api.github.com/repos/uw-it-aca/myuw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uw-it-aca/myuw/issues/1097/comments","statuses_url":"https://api.github.com/repos/uw-it-aca/myuw/statuses/84ee611a8d96705717b6d2bdc48a88117111ad3b","head":{"label":"uw-it-aca:bug/major_refactor","ref":"bug/major_refactor","sha":"84ee611a8d96705717b6d2bdc48a88117111ad3b","user":{"login":"uw-it-aca","id":3730428,"avatar_url":"https://avatars3.githubusercontent.com/u/3730428?v=4","gravatar_id":"","url":"https://api.github.com/users/uw-it-aca","html_url":"https://github.com/uw-it-aca","followers_url":"https://api.github.com/users/uw-it-aca/followers","following_url":"https://api.github.com/users/uw-it-aca/following{/other_user}","gists_url":"https://api.github.com/users/uw-it-aca/gists{/gist_id}","starred_url":"https://api.github.com/users/uw-it-aca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uw-it-aca/subscriptions","organizations_url":"https://api.github.com/users/uw-it-aca/orgs","repos_url":"https://api.github.com/users/uw-it-aca/repos","events_url":"https://api.github.com/users/uw-it-aca/events{/privacy}","received_events_url":"https://api.github.com/users/uw-it-aca/received_events","type":"Organization","site_admin":false},"repo":{"id":27192539,"name":"myuw","full_name":"uw-it-aca/myuw","owner":{"login":"uw-it-aca","id":3730428,"avatar_url":"https://avatars3.githubusercontent.com/u/3730428?v=4","gravatar_id":"","url":"https://api.github.com/users/uw-it-aca","html_url":"https://github.com/uw-it-aca","followers_url":"https://api.github.com/users/uw-it-aca/followers","following_url":"https://api.github.com/users/uw-it-aca/following{/other_user}","gists_url":"https://api.github.com/users/uw-it-aca/gists{/gist_id}","starred_url":"https://api.github.com/users/uw-it-aca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uw-it-aca/subscriptions","organizations_url":"https://api.github.com/users/uw-it-aca/orgs","repos_url":"https://api.github.com/users/uw-it-aca/repos","events_url":"https://api.github.com/users/uw-it-aca/events{/privacy}","received_events_url":"https://api.github.com/users/uw-it-aca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uw-it-aca/myuw","description":null,"fork":false,"url":"https://api.github.com/repos/uw-it-aca/myuw","forks_url":"https://api.github.com/repos/uw-it-aca/myuw/forks","keys_url":"https://api.github.com/repos/uw-it-aca/myuw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uw-it-aca/myuw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uw-it-aca/myuw/teams","hooks_url":"https://api.github.com/repos/uw-it-aca/myuw/hooks","issue_events_url":"https://api.github.com/repos/uw-it-aca/myuw/issues/events{/number}","events_url":"https://api.github.com/repos/uw-it-aca/myuw/events","assignees_url":"https://api.github.com/repos/uw-it-aca/myuw/assignees{/user}","branches_url":"https://api.github.com/repos/uw-it-aca/myuw/branches{/branch}","tags_url":"https://api.github.com/repos/uw-it-aca/myuw/tags","blobs_url":"https://api.github.com/repos/uw-it-aca/myuw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uw-it-aca/myuw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uw-it-aca/myuw/git/refs{/sha}","trees_url":"https://api.github.com/repos/uw-it-aca/myuw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uw-it-aca/myuw/statuses/{sha}","languages_url":"https://api.github.com/repos/uw-it-aca/myuw/languages","stargazers_url":"https://api.github.com/repos/uw-it-aca/myuw/stargazers","contributors_url":"https://api.github.com/repos/uw-it-aca/myuw/contributors","subscribers_url":"https://api.github.com/repos/uw-it-aca/myuw/subscribers","subscription_url":"https://api.github.com/repos/uw-it-aca/myuw/subscription","commits_url":"https://api.github.com/repos/uw-it-aca/myuw/commits{/sha}","git_commits_url":"https://api.github.com/repos/uw-it-aca/myuw/git/commits{/sha}","comments_url":"https://api.github.com/repos/uw-it-aca/myuw/comments{/number}","issue_comment_url":"https://api.github.com/repos/uw-it-aca/myuw/issues/comments{/number}","contents_url":"https://api.github.com/repos/uw-it-aca/myuw/contents/{+path}","compare_url":"https://api.github.com/repos/uw-it-aca/myuw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uw-it-aca/myuw/merges","archive_url":"https://api.github.com/repos/uw-it-aca/myuw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uw-it-aca/myuw/downloads","issues_url":"https://api.github.com/repos/uw-it-aca/myuw/issues{/number}","pulls_url":"https://api.github.com/repos/uw-it-aca/myuw/pulls{/number}","milestones_url":"https://api.github.com/repos/uw-it-aca/myuw/milestones{/number}","notifications_url":"https://api.github.com/repos/uw-it-aca/myuw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uw-it-aca/myuw/labels{/name}","releases_url":"https://api.github.com/repos/uw-it-aca/myuw/releases{/id}","deployments_url":"https://api.github.com/repos/uw-it-aca/myuw/deployments","created_at":"2014-11-26T19:23:15Z","updated_at":"2017-06-15T18:35:45Z","pushed_at":"2018-02-16T23:44:37Z","git_url":"git://github.com/uw-it-aca/myuw.git","ssh_url":"git@github.com:uw-it-aca/myuw.git","clone_url":"https://github.com/uw-it-aca/myuw.git","svn_url":"https://github.com/uw-it-aca/myuw","homepage":null,"size":12078,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":5,"open_issues":3,"watchers":6,"default_branch":"master"}},"base":{"label":"uw-it-aca:develop","ref":"develop","sha":"883f88b3ca092062db2375c65aaa4fe6fc319d43","user":{"login":"uw-it-aca","id":3730428,"avatar_url":"https://avatars3.githubusercontent.com/u/3730428?v=4","gravatar_id":"","url":"https://api.github.com/users/uw-it-aca","html_url":"https://github.com/uw-it-aca","followers_url":"https://api.github.com/users/uw-it-aca/followers","following_url":"https://api.github.com/users/uw-it-aca/following{/other_user}","gists_url":"https://api.github.com/users/uw-it-aca/gists{/gist_id}","starred_url":"https://api.github.com/users/uw-it-aca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uw-it-aca/subscriptions","organizations_url":"https://api.github.com/users/uw-it-aca/orgs","repos_url":"https://api.github.com/users/uw-it-aca/repos","events_url":"https://api.github.com/users/uw-it-aca/events{/privacy}","received_events_url":"https://api.github.com/users/uw-it-aca/received_events","type":"Organization","site_admin":false},"repo":{"id":27192539,"name":"myuw","full_name":"uw-it-aca/myuw","owner":{"login":"uw-it-aca","id":3730428,"avatar_url":"https://avatars3.githubusercontent.com/u/3730428?v=4","gravatar_id":"","url":"https://api.github.com/users/uw-it-aca","html_url":"https://github.com/uw-it-aca","followers_url":"https://api.github.com/users/uw-it-aca/followers","following_url":"https://api.github.com/users/uw-it-aca/following{/other_user}","gists_url":"https://api.github.com/users/uw-it-aca/gists{/gist_id}","starred_url":"https://api.github.com/users/uw-it-aca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uw-it-aca/subscriptions","organizations_url":"https://api.github.com/users/uw-it-aca/orgs","repos_url":"https://api.github.com/users/uw-it-aca/repos","events_url":"https://api.github.com/users/uw-it-aca/events{/privacy}","received_events_url":"https://api.github.com/users/uw-it-aca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uw-it-aca/myuw","description":null,"fork":false,"url":"https://api.github.com/repos/uw-it-aca/myuw","forks_url":"https://api.github.com/repos/uw-it-aca/myuw/forks","keys_url":"https://api.github.com/repos/uw-it-aca/myuw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uw-it-aca/myuw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uw-it-aca/myuw/teams","hooks_url":"https://api.github.com/repos/uw-it-aca/myuw/hooks","issue_events_url":"https://api.github.com/repos/uw-it-aca/myuw/issues/events{/number}","events_url":"https://api.github.com/repos/uw-it-aca/myuw/events","assignees_url":"https://api.github.com/repos/uw-it-aca/myuw/assignees{/user}","branches_url":"https://api.github.com/repos/uw-it-aca/myuw/branches{/branch}","tags_url":"https://api.github.com/repos/uw-it-aca/myuw/tags","blobs_url":"https://api.github.com/repos/uw-it-aca/myuw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uw-it-aca/myuw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uw-it-aca/myuw/git/refs{/sha}","trees_url":"https://api.github.com/repos/uw-it-aca/myuw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uw-it-aca/myuw/statuses/{sha}","languages_url":"https://api.github.com/repos/uw-it-aca/myuw/languages","stargazers_url":"https://api.github.com/repos/uw-it-aca/myuw/stargazers","contributors_url":"https://api.github.com/repos/uw-it-aca/myuw/contributors","subscribers_url":"https://api.github.com/repos/uw-it-aca/myuw/subscribers","subscription_url":"https://api.github.com/repos/uw-it-aca/myuw/subscription","commits_url":"https://api.github.com/repos/uw-it-aca/myuw/commits{/sha}","git_commits_url":"https://api.github.com/repos/uw-it-aca/myuw/git/commits{/sha}","comments_url":"https://api.github.com/repos/uw-it-aca/myuw/comments{/number}","issue_comment_url":"https://api.github.com/repos/uw-it-aca/myuw/issues/comments{/number}","contents_url":"https://api.github.com/repos/uw-it-aca/myuw/contents/{+path}","compare_url":"https://api.github.com/repos/uw-it-aca/myuw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uw-it-aca/myuw/merges","archive_url":"https://api.github.com/repos/uw-it-aca/myuw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uw-it-aca/myuw/downloads","issues_url":"https://api.github.com/repos/uw-it-aca/myuw/issues{/number}","pulls_url":"https://api.github.com/repos/uw-it-aca/myuw/pulls{/number}","milestones_url":"https://api.github.com/repos/uw-it-aca/myuw/milestones{/number}","notifications_url":"https://api.github.com/repos/uw-it-aca/myuw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uw-it-aca/myuw/labels{/name}","releases_url":"https://api.github.com/repos/uw-it-aca/myuw/releases{/id}","deployments_url":"https://api.github.com/repos/uw-it-aca/myuw/deployments","created_at":"2014-11-26T19:23:15Z","updated_at":"2017-06-15T18:35:45Z","pushed_at":"2018-02-16T23:44:37Z","git_url":"git://github.com/uw-it-aca/myuw.git","ssh_url":"git@github.com:uw-it-aca/myuw.git","clone_url":"https://github.com/uw-it-aca/myuw.git","svn_url":"https://github.com/uw-it-aca/myuw","homepage":null,"size":12078,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":5,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uw-it-aca/myuw/pulls/1097"},"html":{"href":"https://github.com/uw-it-aca/myuw/pull/1097"},"issue":{"href":"https://api.github.com/repos/uw-it-aca/myuw/issues/1097"},"comments":{"href":"https://api.github.com/repos/uw-it-aca/myuw/issues/1097/comments"},"review_comments":{"href":"https://api.github.com/repos/uw-it-aca/myuw/pulls/1097/comments"},"review_comment":{"href":"https://api.github.com/repos/uw-it-aca/myuw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uw-it-aca/myuw/pulls/1097/commits"},"statuses":{"href":"https://api.github.com/repos/uw-it-aca/myuw/statuses/84ee611a8d96705717b6d2bdc48a88117111ad3b"}},"author_association":"OWNER"}}
{"actor":{"display_login":"fanglinfang"}}