{"action":"created","comment":{"url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/pulls/comments/234057006","pull_request_review_id":175617717,"id":234057006,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDA1NzAwNg==","diff_hunk":"@@ -196,4 +197,36 @@ app.post(\"/api/deleteClass\", (req, res) =>{\n \t});\n });\n \n+//based off Chtzhou's GE\n+app.get(\"/api/getCalendar\", (req, res) => {\n+  calData.find(function (err, cal) {\n+    if (err) {\n+      //error messages\n+      console.log(\"error\");\n+      return res.status(500).send({ cError: \"Error\" });\n+    } else {\n+      events = [];\n+      //parse data into readable for FullCalendar\n+      cal.forEach(function (c) {\n+\t\tvar str = c.lecture.MeetingDates;\n+\t\tconsole.log(str);\n+\t\tif(str == null) return; //without this it crashes because not all classes have dates\n+\t\tvar cut = str.split(\"-\", 2);","path":"server.js","position":null,"original_position":26,"commit_id":"875117896008c40f370869d09ef45dbbf8ca7682","original_commit_id":"4bc9bddca7209d9de879a68de071fa7563377c6c","user":{"login":"chtzou","id":43974863,"node_id":"MDQ6VXNlcjQzOTc0ODYz","avatar_url":"https://avatars1.githubusercontent.com/u/43974863?v=4","gravatar_id":"","url":"https://api.github.com/users/chtzou","html_url":"https://github.com/chtzou","followers_url":"https://api.github.com/users/chtzou/followers","following_url":"https://api.github.com/users/chtzou/following{/other_user}","gists_url":"https://api.github.com/users/chtzou/gists{/gist_id}","starred_url":"https://api.github.com/users/chtzou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chtzou/subscriptions","organizations_url":"https://api.github.com/users/chtzou/orgs","repos_url":"https://api.github.com/users/chtzou/repos","events_url":"https://api.github.com/users/chtzou/events{/privacy}","received_events_url":"https://api.github.com/users/chtzou/received_events","type":"User","site_admin":false},"body":"what does this do btw? Just curious","created_at":"2018-11-16T00:32:49Z","updated_at":"2018-11-16T00:32:49Z","html_url":"https://github.com/chtzou/Slug-Academic-Organizer/pull/51#discussion_r234057006","pull_request_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/pulls/51","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/pulls/comments/234057006"},"html":{"href":"https://github.com/chtzou/Slug-Academic-Organizer/pull/51#discussion_r234057006"},"pull_request":{"href":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/pulls/51","id":231070738,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxMDcwNzM4","html_url":"https://github.com/chtzou/Slug-Academic-Organizer/pull/51","diff_url":"https://github.com/chtzou/Slug-Academic-Organizer/pull/51.diff","patch_url":"https://github.com/chtzou/Slug-Academic-Organizer/pull/51.patch","issue_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/issues/51","number":51,"state":"open","locked":false,"title":"Synched full calendar","user":{"login":"michaellauu","id":38740200,"node_id":"MDQ6VXNlcjM4NzQwMjAw","avatar_url":"https://avatars1.githubusercontent.com/u/38740200?v=4","gravatar_id":"","url":"https://api.github.com/users/michaellauu","html_url":"https://github.com/michaellauu","followers_url":"https://api.github.com/users/michaellauu/followers","following_url":"https://api.github.com/users/michaellauu/following{/other_user}","gists_url":"https://api.github.com/users/michaellauu/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellauu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellauu/subscriptions","organizations_url":"https://api.github.com/users/michaellauu/orgs","repos_url":"https://api.github.com/users/michaellauu/repos","events_url":"https://api.github.com/users/michaellauu/events{/privacy}","received_events_url":"https://api.github.com/users/michaellauu/received_events","type":"User","site_admin":false},"body":"Should be bug free. It is missing checking for userid before pulling the data but we don't that data up yet. So it currently pulls from a test collection to check functionality. Primary purpose is to get the calendar code into the main repo before more work is done because I don't want us to get into merge conflicts.","created_at":"2018-11-15T05:12:49Z","updated_at":"2018-11-16T00:32:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7aa0a56b6dfe9224607f7a73b89c8add4c2d93e3","assignee":null,"assignees":[],"requested_reviewers":[{"login":"hannah-ekman","id":30247733,"node_id":"MDQ6VXNlcjMwMjQ3NzMz","avatar_url":"https://avatars0.githubusercontent.com/u/30247733?v=4","gravatar_id":"","url":"https://api.github.com/users/hannah-ekman","html_url":"https://github.com/hannah-ekman","followers_url":"https://api.github.com/users/hannah-ekman/followers","following_url":"https://api.github.com/users/hannah-ekman/following{/other_user}","gists_url":"https://api.github.com/users/hannah-ekman/gists{/gist_id}","starred_url":"https://api.github.com/users/hannah-ekman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannah-ekman/subscriptions","organizations_url":"https://api.github.com/users/hannah-ekman/orgs","repos_url":"https://api.github.com/users/hannah-ekman/repos","events_url":"https://api.github.com/users/hannah-ekman/events{/privacy}","received_events_url":"https://api.github.com/users/hannah-ekman/received_events","type":"User","site_admin":false},{"login":"anthonydevelops","id":30614274,"node_id":"MDQ6VXNlcjMwNjE0Mjc0","avatar_url":"https://avatars3.githubusercontent.com/u/30614274?v=4","gravatar_id":"","url":"https://api.github.com/users/anthonydevelops","html_url":"https://github.com/anthonydevelops","followers_url":"https://api.github.com/users/anthonydevelops/followers","following_url":"https://api.github.com/users/anthonydevelops/following{/other_user}","gists_url":"https://api.github.com/users/anthonydevelops/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonydevelops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonydevelops/subscriptions","organizations_url":"https://api.github.com/users/anthonydevelops/orgs","repos_url":"https://api.github.com/users/anthonydevelops/repos","events_url":"https://api.github.com/users/anthonydevelops/events{/privacy}","received_events_url":"https://api.github.com/users/anthonydevelops/received_events","type":"User","site_admin":false},{"login":"jazminmm","id":44013841,"node_id":"MDQ6VXNlcjQ0MDEzODQx","avatar_url":"https://avatars0.githubusercontent.com/u/44013841?v=4","gravatar_id":"","url":"https://api.github.com/users/jazminmm","html_url":"https://github.com/jazminmm","followers_url":"https://api.github.com/users/jazminmm/followers","following_url":"https://api.github.com/users/jazminmm/following{/other_user}","gists_url":"https://api.github.com/users/jazminmm/gists{/gist_id}","starred_url":"https://api.github.com/users/jazminmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jazminmm/subscriptions","organizations_url":"https://api.github.com/users/jazminmm/orgs","repos_url":"https://api.github.com/users/jazminmm/repos","events_url":"https://api.github.com/users/jazminmm/events{/privacy}","received_events_url":"https://api.github.com/users/jazminmm/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/pulls/51/commits","review_comments_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/pulls/51/comments","review_comment_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/issues/51/comments","statuses_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/statuses/875117896008c40f370869d09ef45dbbf8ca7682","head":{"label":"chtzou:mikesCalendarBranch","ref":"mikesCalendarBranch","sha":"875117896008c40f370869d09ef45dbbf8ca7682","user":{"login":"chtzou","id":43974863,"node_id":"MDQ6VXNlcjQzOTc0ODYz","avatar_url":"https://avatars1.githubusercontent.com/u/43974863?v=4","gravatar_id":"","url":"https://api.github.com/users/chtzou","html_url":"https://github.com/chtzou","followers_url":"https://api.github.com/users/chtzou/followers","following_url":"https://api.github.com/users/chtzou/following{/other_user}","gists_url":"https://api.github.com/users/chtzou/gists{/gist_id}","starred_url":"https://api.github.com/users/chtzou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chtzou/subscriptions","organizations_url":"https://api.github.com/users/chtzou/orgs","repos_url":"https://api.github.com/users/chtzou/repos","events_url":"https://api.github.com/users/chtzou/events{/privacy}","received_events_url":"https://api.github.com/users/chtzou/received_events","type":"User","site_admin":false},"repo":{"id":152338490,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzMzg0OTA=","name":"Slug-Academic-Organizer","full_name":"chtzou/Slug-Academic-Organizer","private":false,"owner":{"login":"chtzou","id":43974863,"node_id":"MDQ6VXNlcjQzOTc0ODYz","avatar_url":"https://avatars1.githubusercontent.com/u/43974863?v=4","gravatar_id":"","url":"https://api.github.com/users/chtzou","html_url":"https://github.com/chtzou","followers_url":"https://api.github.com/users/chtzou/followers","following_url":"https://api.github.com/users/chtzou/following{/other_user}","gists_url":"https://api.github.com/users/chtzou/gists{/gist_id}","starred_url":"https://api.github.com/users/chtzou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chtzou/subscriptions","organizations_url":"https://api.github.com/users/chtzou/orgs","repos_url":"https://api.github.com/users/chtzou/repos","events_url":"https://api.github.com/users/chtzou/events{/privacy}","received_events_url":"https://api.github.com/users/chtzou/received_events","type":"User","site_admin":false},"html_url":"https://github.com/chtzou/Slug-Academic-Organizer","description":"Our project is to create a web app to help students keep track of their educational goals in fulfilling GEs and Major requirements. The current system that UCSC offers is honestly kind of nightmare to use and navigate, so we want to provide platform to make it simple and easy for students to record their progress.","fork":false,"url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer","forks_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/forks","keys_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/teams","hooks_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/hooks","issue_events_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/issues/events{/number}","events_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/events","assignees_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/assignees{/user}","branches_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/branches{/branch}","tags_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/tags","blobs_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/git/refs{/sha}","trees_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/statuses/{sha}","languages_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/languages","stargazers_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/stargazers","contributors_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/contributors","subscribers_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/subscribers","subscription_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/subscription","commits_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/commits{/sha}","git_commits_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/git/commits{/sha}","comments_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/comments{/number}","issue_comment_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/issues/comments{/number}","contents_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/contents/{+path}","compare_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/merges","archive_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/downloads","issues_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/issues{/number}","pulls_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/pulls{/number}","milestones_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/milestones{/number}","notifications_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/labels{/name}","releases_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/releases{/id}","deployments_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/deployments","created_at":"2018-10-10T00:19:27Z","updated_at":"2018-11-15T05:19:50Z","pushed_at":"2018-11-15T05:19:49Z","git_url":"git://github.com/chtzou/Slug-Academic-Organizer.git","ssh_url":"git@github.com:chtzou/Slug-Academic-Organizer.git","clone_url":"https://github.com/chtzou/Slug-Academic-Organizer.git","svn_url":"https://github.com/chtzou/Slug-Academic-Organizer","homepage":null,"size":2002,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":4,"open_issues":8,"watchers":2,"default_branch":"master"}},"base":{"label":"chtzou:master","ref":"master","sha":"e1d191287332cb0e9ecbb69c9ce1d30bb5624e4d","user":{"login":"chtzou","id":43974863,"node_id":"MDQ6VXNlcjQzOTc0ODYz","avatar_url":"https://avatars1.githubusercontent.com/u/43974863?v=4","gravatar_id":"","url":"https://api.github.com/users/chtzou","html_url":"https://github.com/chtzou","followers_url":"https://api.github.com/users/chtzou/followers","following_url":"https://api.github.com/users/chtzou/following{/other_user}","gists_url":"https://api.github.com/users/chtzou/gists{/gist_id}","starred_url":"https://api.github.com/users/chtzou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chtzou/subscriptions","organizations_url":"https://api.github.com/users/chtzou/orgs","repos_url":"https://api.github.com/users/chtzou/repos","events_url":"https://api.github.com/users/chtzou/events{/privacy}","received_events_url":"https://api.github.com/users/chtzou/received_events","type":"User","site_admin":false},"repo":{"id":152338490,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzMzg0OTA=","name":"Slug-Academic-Organizer","full_name":"chtzou/Slug-Academic-Organizer","private":false,"owner":{"login":"chtzou","id":43974863,"node_id":"MDQ6VXNlcjQzOTc0ODYz","avatar_url":"https://avatars1.githubusercontent.com/u/43974863?v=4","gravatar_id":"","url":"https://api.github.com/users/chtzou","html_url":"https://github.com/chtzou","followers_url":"https://api.github.com/users/chtzou/followers","following_url":"https://api.github.com/users/chtzou/following{/other_user}","gists_url":"https://api.github.com/users/chtzou/gists{/gist_id}","starred_url":"https://api.github.com/users/chtzou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chtzou/subscriptions","organizations_url":"https://api.github.com/users/chtzou/orgs","repos_url":"https://api.github.com/users/chtzou/repos","events_url":"https://api.github.com/users/chtzou/events{/privacy}","received_events_url":"https://api.github.com/users/chtzou/received_events","type":"User","site_admin":false},"html_url":"https://github.com/chtzou/Slug-Academic-Organizer","description":"Our project is to create a web app to help students keep track of their educational goals in fulfilling GEs and Major requirements. The current system that UCSC offers is honestly kind of nightmare to use and navigate, so we want to provide platform to make it simple and easy for students to record their progress.","fork":false,"url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer","forks_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/forks","keys_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/teams","hooks_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/hooks","issue_events_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/issues/events{/number}","events_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/events","assignees_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/assignees{/user}","branches_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/branches{/branch}","tags_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/tags","blobs_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/git/refs{/sha}","trees_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/statuses/{sha}","languages_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/languages","stargazers_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/stargazers","contributors_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/contributors","subscribers_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/subscribers","subscription_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/subscription","commits_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/commits{/sha}","git_commits_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/git/commits{/sha}","comments_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/comments{/number}","issue_comment_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/issues/comments{/number}","contents_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/contents/{+path}","compare_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/merges","archive_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/downloads","issues_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/issues{/number}","pulls_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/pulls{/number}","milestones_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/milestones{/number}","notifications_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/labels{/name}","releases_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/releases{/id}","deployments_url":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/deployments","created_at":"2018-10-10T00:19:27Z","updated_at":"2018-11-15T05:19:50Z","pushed_at":"2018-11-15T05:19:49Z","git_url":"git://github.com/chtzou/Slug-Academic-Organizer.git","ssh_url":"git@github.com:chtzou/Slug-Academic-Organizer.git","clone_url":"https://github.com/chtzou/Slug-Academic-Organizer.git","svn_url":"https://github.com/chtzou/Slug-Academic-Organizer","homepage":null,"size":2002,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":4,"open_issues":8,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/pulls/51"},"html":{"href":"https://github.com/chtzou/Slug-Academic-Organizer/pull/51"},"issue":{"href":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/issues/51"},"comments":{"href":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/chtzou/Slug-Academic-Organizer/statuses/875117896008c40f370869d09ef45dbbf8ca7682"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"chtzou"}}