{"action":"closed","number":15,"pull_request":{"url":"https://api.github.com/repos/cjsauer/study-snap/pulls/15","id":41690357,"html_url":"https://github.com/cjsauer/study-snap/pull/15","diff_url":"https://github.com/cjsauer/study-snap/pull/15.diff","patch_url":"https://github.com/cjsauer/study-snap/pull/15.patch","issue_url":"https://api.github.com/repos/cjsauer/study-snap/issues/15","number":15,"state":"closed","locked":false,"title":"Adds the challenge feature","user":{"login":"elGatoMantocko","id":6691665,"avatar_url":"https://avatars.githubusercontent.com/u/6691665?v=3","gravatar_id":"","url":"https://api.github.com/users/elGatoMantocko","html_url":"https://github.com/elGatoMantocko","followers_url":"https://api.github.com/users/elGatoMantocko/followers","following_url":"https://api.github.com/users/elGatoMantocko/following{/other_user}","gists_url":"https://api.github.com/users/elGatoMantocko/gists{/gist_id}","starred_url":"https://api.github.com/users/elGatoMantocko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elGatoMantocko/subscriptions","organizations_url":"https://api.github.com/users/elGatoMantocko/orgs","repos_url":"https://api.github.com/users/elGatoMantocko/repos","events_url":"https://api.github.com/users/elGatoMantocko/events{/privacy}","received_events_url":"https://api.github.com/users/elGatoMantocko/received_events","type":"User","site_admin":false},"body":"There is no challenge model yet, but I intend to make it using this structure.\r\n```\r\nChallenge: {\r\n  challenger: {\r\n    type: String,\r\n    // will be a user id\r\n  },\r\n  challengee: {\r\n    type: String,\r\n    // will be a user id\r\n  },\r\n  course: {\r\n    type: String,\r\n    // will be the course id\r\n  }\r\n}\r\n```\r\nIdeally the user that creates the challenge will finish it right after they create it, so there should be no need to insert a challenge into the database for them, but this may need some more thought.\r\n\r\nSecondly the challenger's user id is stored to know who challenged you.\r\n\r\nMy other thought is to just add a challenge array into each course to avoid making another collection. This would also mean less content to subscribe to.","created_at":"2015-08-05T15:15:20Z","updated_at":"2015-08-07T01:18:37Z","closed_at":"2015-08-07T01:18:37Z","merged_at":"2015-08-07T01:18:37Z","merge_commit_sha":"15d1c881caa71b3a4529239928bb75c32a5ae800","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cjsauer/study-snap/pulls/15/commits","review_comments_url":"https://api.github.com/repos/cjsauer/study-snap/pulls/15/comments","review_comment_url":"https://api.github.com/repos/cjsauer/study-snap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cjsauer/study-snap/issues/15/comments","statuses_url":"https://api.github.com/repos/cjsauer/study-snap/statuses/76600b07f5dc57ecc03c3e31807514b437ca90c5","head":{"label":"cjsauer:challenge","ref":"challenge","sha":"76600b07f5dc57ecc03c3e31807514b437ca90c5","user":{"login":"cjsauer","id":2013873,"avatar_url":"https://avatars.githubusercontent.com/u/2013873?v=3","gravatar_id":"","url":"https://api.github.com/users/cjsauer","html_url":"https://github.com/cjsauer","followers_url":"https://api.github.com/users/cjsauer/followers","following_url":"https://api.github.com/users/cjsauer/following{/other_user}","gists_url":"https://api.github.com/users/cjsauer/gists{/gist_id}","starred_url":"https://api.github.com/users/cjsauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjsauer/subscriptions","organizations_url":"https://api.github.com/users/cjsauer/orgs","repos_url":"https://api.github.com/users/cjsauer/repos","events_url":"https://api.github.com/users/cjsauer/events{/privacy}","received_events_url":"https://api.github.com/users/cjsauer/received_events","type":"User","site_admin":false},"repo":{"id":35910872,"name":"study-snap","full_name":"cjsauer/study-snap","owner":{"login":"cjsauer","id":2013873,"avatar_url":"https://avatars.githubusercontent.com/u/2013873?v=3","gravatar_id":"","url":"https://api.github.com/users/cjsauer","html_url":"https://github.com/cjsauer","followers_url":"https://api.github.com/users/cjsauer/followers","following_url":"https://api.github.com/users/cjsauer/following{/other_user}","gists_url":"https://api.github.com/users/cjsauer/gists{/gist_id}","starred_url":"https://api.github.com/users/cjsauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjsauer/subscriptions","organizations_url":"https://api.github.com/users/cjsauer/orgs","repos_url":"https://api.github.com/users/cjsauer/repos","events_url":"https://api.github.com/users/cjsauer/events{/privacy}","received_events_url":"https://api.github.com/users/cjsauer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cjsauer/study-snap","description":"A competetive flashcard studying application","fork":false,"url":"https://api.github.com/repos/cjsauer/study-snap","forks_url":"https://api.github.com/repos/cjsauer/study-snap/forks","keys_url":"https://api.github.com/repos/cjsauer/study-snap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cjsauer/study-snap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cjsauer/study-snap/teams","hooks_url":"https://api.github.com/repos/cjsauer/study-snap/hooks","issue_events_url":"https://api.github.com/repos/cjsauer/study-snap/issues/events{/number}","events_url":"https://api.github.com/repos/cjsauer/study-snap/events","assignees_url":"https://api.github.com/repos/cjsauer/study-snap/assignees{/user}","branches_url":"https://api.github.com/repos/cjsauer/study-snap/branches{/branch}","tags_url":"https://api.github.com/repos/cjsauer/study-snap/tags","blobs_url":"https://api.github.com/repos/cjsauer/study-snap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cjsauer/study-snap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cjsauer/study-snap/git/refs{/sha}","trees_url":"https://api.github.com/repos/cjsauer/study-snap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cjsauer/study-snap/statuses/{sha}","languages_url":"https://api.github.com/repos/cjsauer/study-snap/languages","stargazers_url":"https://api.github.com/repos/cjsauer/study-snap/stargazers","contributors_url":"https://api.github.com/repos/cjsauer/study-snap/contributors","subscribers_url":"https://api.github.com/repos/cjsauer/study-snap/subscribers","subscription_url":"https://api.github.com/repos/cjsauer/study-snap/subscription","commits_url":"https://api.github.com/repos/cjsauer/study-snap/commits{/sha}","git_commits_url":"https://api.github.com/repos/cjsauer/study-snap/git/commits{/sha}","comments_url":"https://api.github.com/repos/cjsauer/study-snap/comments{/number}","issue_comment_url":"https://api.github.com/repos/cjsauer/study-snap/issues/comments{/number}","contents_url":"https://api.github.com/repos/cjsauer/study-snap/contents/{+path}","compare_url":"https://api.github.com/repos/cjsauer/study-snap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cjsauer/study-snap/merges","archive_url":"https://api.github.com/repos/cjsauer/study-snap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cjsauer/study-snap/downloads","issues_url":"https://api.github.com/repos/cjsauer/study-snap/issues{/number}","pulls_url":"https://api.github.com/repos/cjsauer/study-snap/pulls{/number}","milestones_url":"https://api.github.com/repos/cjsauer/study-snap/milestones{/number}","notifications_url":"https://api.github.com/repos/cjsauer/study-snap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cjsauer/study-snap/labels{/name}","releases_url":"https://api.github.com/repos/cjsauer/study-snap/releases{/id}","created_at":"2015-05-19T22:00:42Z","updated_at":"2015-06-05T16:35:34Z","pushed_at":"2015-08-07T01:18:37Z","git_url":"git://github.com/cjsauer/study-snap.git","ssh_url":"git@github.com:cjsauer/study-snap.git","clone_url":"https://github.com/cjsauer/study-snap.git","svn_url":"https://github.com/cjsauer/study-snap","homepage":"","size":2416,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":2,"default_branch":"develop"}},"base":{"label":"cjsauer:develop","ref":"develop","sha":"53bb113a776fb2bd29c5ae75cae0188aa0cb67e5","user":{"login":"cjsauer","id":2013873,"avatar_url":"https://avatars.githubusercontent.com/u/2013873?v=3","gravatar_id":"","url":"https://api.github.com/users/cjsauer","html_url":"https://github.com/cjsauer","followers_url":"https://api.github.com/users/cjsauer/followers","following_url":"https://api.github.com/users/cjsauer/following{/other_user}","gists_url":"https://api.github.com/users/cjsauer/gists{/gist_id}","starred_url":"https://api.github.com/users/cjsauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjsauer/subscriptions","organizations_url":"https://api.github.com/users/cjsauer/orgs","repos_url":"https://api.github.com/users/cjsauer/repos","events_url":"https://api.github.com/users/cjsauer/events{/privacy}","received_events_url":"https://api.github.com/users/cjsauer/received_events","type":"User","site_admin":false},"repo":{"id":35910872,"name":"study-snap","full_name":"cjsauer/study-snap","owner":{"login":"cjsauer","id":2013873,"avatar_url":"https://avatars.githubusercontent.com/u/2013873?v=3","gravatar_id":"","url":"https://api.github.com/users/cjsauer","html_url":"https://github.com/cjsauer","followers_url":"https://api.github.com/users/cjsauer/followers","following_url":"https://api.github.com/users/cjsauer/following{/other_user}","gists_url":"https://api.github.com/users/cjsauer/gists{/gist_id}","starred_url":"https://api.github.com/users/cjsauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjsauer/subscriptions","organizations_url":"https://api.github.com/users/cjsauer/orgs","repos_url":"https://api.github.com/users/cjsauer/repos","events_url":"https://api.github.com/users/cjsauer/events{/privacy}","received_events_url":"https://api.github.com/users/cjsauer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cjsauer/study-snap","description":"A competetive flashcard studying application","fork":false,"url":"https://api.github.com/repos/cjsauer/study-snap","forks_url":"https://api.github.com/repos/cjsauer/study-snap/forks","keys_url":"https://api.github.com/repos/cjsauer/study-snap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cjsauer/study-snap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cjsauer/study-snap/teams","hooks_url":"https://api.github.com/repos/cjsauer/study-snap/hooks","issue_events_url":"https://api.github.com/repos/cjsauer/study-snap/issues/events{/number}","events_url":"https://api.github.com/repos/cjsauer/study-snap/events","assignees_url":"https://api.github.com/repos/cjsauer/study-snap/assignees{/user}","branches_url":"https://api.github.com/repos/cjsauer/study-snap/branches{/branch}","tags_url":"https://api.github.com/repos/cjsauer/study-snap/tags","blobs_url":"https://api.github.com/repos/cjsauer/study-snap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cjsauer/study-snap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cjsauer/study-snap/git/refs{/sha}","trees_url":"https://api.github.com/repos/cjsauer/study-snap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cjsauer/study-snap/statuses/{sha}","languages_url":"https://api.github.com/repos/cjsauer/study-snap/languages","stargazers_url":"https://api.github.com/repos/cjsauer/study-snap/stargazers","contributors_url":"https://api.github.com/repos/cjsauer/study-snap/contributors","subscribers_url":"https://api.github.com/repos/cjsauer/study-snap/subscribers","subscription_url":"https://api.github.com/repos/cjsauer/study-snap/subscription","commits_url":"https://api.github.com/repos/cjsauer/study-snap/commits{/sha}","git_commits_url":"https://api.github.com/repos/cjsauer/study-snap/git/commits{/sha}","comments_url":"https://api.github.com/repos/cjsauer/study-snap/comments{/number}","issue_comment_url":"https://api.github.com/repos/cjsauer/study-snap/issues/comments{/number}","contents_url":"https://api.github.com/repos/cjsauer/study-snap/contents/{+path}","compare_url":"https://api.github.com/repos/cjsauer/study-snap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cjsauer/study-snap/merges","archive_url":"https://api.github.com/repos/cjsauer/study-snap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cjsauer/study-snap/downloads","issues_url":"https://api.github.com/repos/cjsauer/study-snap/issues{/number}","pulls_url":"https://api.github.com/repos/cjsauer/study-snap/pulls{/number}","milestones_url":"https://api.github.com/repos/cjsauer/study-snap/milestones{/number}","notifications_url":"https://api.github.com/repos/cjsauer/study-snap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cjsauer/study-snap/labels{/name}","releases_url":"https://api.github.com/repos/cjsauer/study-snap/releases{/id}","created_at":"2015-05-19T22:00:42Z","updated_at":"2015-06-05T16:35:34Z","pushed_at":"2015-08-07T01:18:37Z","git_url":"git://github.com/cjsauer/study-snap.git","ssh_url":"git@github.com:cjsauer/study-snap.git","clone_url":"https://github.com/cjsauer/study-snap.git","svn_url":"https://github.com/cjsauer/study-snap","homepage":"","size":2416,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cjsauer/study-snap/pulls/15"},"html":{"href":"https://github.com/cjsauer/study-snap/pull/15"},"issue":{"href":"https://api.github.com/repos/cjsauer/study-snap/issues/15"},"comments":{"href":"https://api.github.com/repos/cjsauer/study-snap/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/cjsauer/study-snap/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/cjsauer/study-snap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cjsauer/study-snap/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/cjsauer/study-snap/statuses/76600b07f5dc57ecc03c3e31807514b437ca90c5"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"elGatoMantocko","id":6691665,"avatar_url":"https://avatars.githubusercontent.com/u/6691665?v=3","gravatar_id":"","url":"https://api.github.com/users/elGatoMantocko","html_url":"https://github.com/elGatoMantocko","followers_url":"https://api.github.com/users/elGatoMantocko/followers","following_url":"https://api.github.com/users/elGatoMantocko/following{/other_user}","gists_url":"https://api.github.com/users/elGatoMantocko/gists{/gist_id}","starred_url":"https://api.github.com/users/elGatoMantocko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elGatoMantocko/subscriptions","organizations_url":"https://api.github.com/users/elGatoMantocko/orgs","repos_url":"https://api.github.com/users/elGatoMantocko/repos","events_url":"https://api.github.com/users/elGatoMantocko/events{/privacy}","received_events_url":"https://api.github.com/users/elGatoMantocko/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":34,"additions":283,"deletions":22,"changed_files":22}}