{"action":"opened","number":152,"pull_request":{"url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/pulls/152","id":44781791,"html_url":"https://github.com/danmarsden/moodle-mod_attendance/pull/152","diff_url":"https://github.com/danmarsden/moodle-mod_attendance/pull/152.diff","patch_url":"https://github.com/danmarsden/moodle-mod_attendance/pull/152.patch","issue_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/issues/152","number":152,"state":"open","locked":false,"title":"Returns all users and their lowest status in a course.","user":{"login":"Syxton","id":989354,"avatar_url":"https://avatars.githubusercontent.com/u/989354?v=3","gravatar_id":"","url":"https://api.github.com/users/Syxton","html_url":"https://github.com/Syxton","followers_url":"https://api.github.com/users/Syxton/followers","following_url":"https://api.github.com/users/Syxton/following{/other_user}","gists_url":"https://api.github.com/users/Syxton/gists{/gist_id}","starred_url":"https://api.github.com/users/Syxton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syxton/subscriptions","organizations_url":"https://api.github.com/users/Syxton/orgs","repos_url":"https://api.github.com/users/Syxton/repos","events_url":"https://api.github.com/users/Syxton/events{/privacy}","received_events_url":"https://api.github.com/users/Syxton/received_events","type":"User","site_admin":false},"body":"This will fix 2 issues.  The first, if a user has a suspended enrollment\r\nin child course A, the active enrollment in child course B will be\r\nhonored over the suspended enrollment.  Also in this scenerio, the user\r\nwith multiple enrollments was causing a duplicate userid error to be\r\ngenerated.","created_at":"2015-09-11T13:26:20Z","updated_at":"2015-09-11T13:26:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/pulls/152/commits","review_comments_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/pulls/152/comments","review_comment_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/issues/152/comments","statuses_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/statuses/c412d7886c3f5b886edfab5010bbff5ddf5fd14c","head":{"label":"Syxton:fix_issue_118","ref":"fix_issue_118","sha":"c412d7886c3f5b886edfab5010bbff5ddf5fd14c","user":{"login":"Syxton","id":989354,"avatar_url":"https://avatars.githubusercontent.com/u/989354?v=3","gravatar_id":"","url":"https://api.github.com/users/Syxton","html_url":"https://github.com/Syxton","followers_url":"https://api.github.com/users/Syxton/followers","following_url":"https://api.github.com/users/Syxton/following{/other_user}","gists_url":"https://api.github.com/users/Syxton/gists{/gist_id}","starred_url":"https://api.github.com/users/Syxton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syxton/subscriptions","organizations_url":"https://api.github.com/users/Syxton/orgs","repos_url":"https://api.github.com/users/Syxton/repos","events_url":"https://api.github.com/users/Syxton/events{/privacy}","received_events_url":"https://api.github.com/users/Syxton/received_events","type":"User","site_admin":false},"repo":{"id":42307919,"name":"moodle-mod_attendance","full_name":"Syxton/moodle-mod_attendance","owner":{"login":"Syxton","id":989354,"avatar_url":"https://avatars.githubusercontent.com/u/989354?v=3","gravatar_id":"","url":"https://api.github.com/users/Syxton","html_url":"https://github.com/Syxton","followers_url":"https://api.github.com/users/Syxton/followers","following_url":"https://api.github.com/users/Syxton/following{/other_user}","gists_url":"https://api.github.com/users/Syxton/gists{/gist_id}","starred_url":"https://api.github.com/users/Syxton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syxton/subscriptions","organizations_url":"https://api.github.com/users/Syxton/orgs","repos_url":"https://api.github.com/users/Syxton/repos","events_url":"https://api.github.com/users/Syxton/events{/privacy}","received_events_url":"https://api.github.com/users/Syxton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Syxton/moodle-mod_attendance","description":"New version of the Attendance module for Moodle 2.4 and higher. (replaces mod_attforblock)","fork":true,"url":"https://api.github.com/repos/Syxton/moodle-mod_attendance","forks_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/forks","keys_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/teams","hooks_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/hooks","issue_events_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/issues/events{/number}","events_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/events","assignees_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/assignees{/user}","branches_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/branches{/branch}","tags_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/tags","blobs_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/git/refs{/sha}","trees_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/statuses/{sha}","languages_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/languages","stargazers_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/stargazers","contributors_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/contributors","subscribers_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/subscribers","subscription_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/subscription","commits_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/commits{/sha}","git_commits_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/git/commits{/sha}","comments_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/comments{/number}","issue_comment_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/issues/comments{/number}","contents_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/contents/{+path}","compare_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/merges","archive_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/downloads","issues_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/issues{/number}","pulls_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/pulls{/number}","milestones_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/milestones{/number}","notifications_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/labels{/name}","releases_url":"https://api.github.com/repos/Syxton/moodle-mod_attendance/releases{/id}","created_at":"2015-09-11T12:45:04Z","updated_at":"2015-09-11T12:45:05Z","pushed_at":"2015-09-11T13:25:57Z","git_url":"git://github.com/Syxton/moodle-mod_attendance.git","ssh_url":"git@github.com:Syxton/moodle-mod_attendance.git","clone_url":"https://github.com/Syxton/moodle-mod_attendance.git","svn_url":"https://github.com/Syxton/moodle-mod_attendance","homepage":null,"size":1919,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"danmarsden:master","ref":"master","sha":"74363595db74e1c4bdbed1de294457c0fe2b405d","user":{"login":"danmarsden","id":362798,"avatar_url":"https://avatars.githubusercontent.com/u/362798?v=3","gravatar_id":"","url":"https://api.github.com/users/danmarsden","html_url":"https://github.com/danmarsden","followers_url":"https://api.github.com/users/danmarsden/followers","following_url":"https://api.github.com/users/danmarsden/following{/other_user}","gists_url":"https://api.github.com/users/danmarsden/gists{/gist_id}","starred_url":"https://api.github.com/users/danmarsden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmarsden/subscriptions","organizations_url":"https://api.github.com/users/danmarsden/orgs","repos_url":"https://api.github.com/users/danmarsden/repos","events_url":"https://api.github.com/users/danmarsden/events{/privacy}","received_events_url":"https://api.github.com/users/danmarsden/received_events","type":"User","site_admin":false},"repo":{"id":11162014,"name":"moodle-mod_attendance","full_name":"danmarsden/moodle-mod_attendance","owner":{"login":"danmarsden","id":362798,"avatar_url":"https://avatars.githubusercontent.com/u/362798?v=3","gravatar_id":"","url":"https://api.github.com/users/danmarsden","html_url":"https://github.com/danmarsden","followers_url":"https://api.github.com/users/danmarsden/followers","following_url":"https://api.github.com/users/danmarsden/following{/other_user}","gists_url":"https://api.github.com/users/danmarsden/gists{/gist_id}","starred_url":"https://api.github.com/users/danmarsden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmarsden/subscriptions","organizations_url":"https://api.github.com/users/danmarsden/orgs","repos_url":"https://api.github.com/users/danmarsden/repos","events_url":"https://api.github.com/users/danmarsden/events{/privacy}","received_events_url":"https://api.github.com/users/danmarsden/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danmarsden/moodle-mod_attendance","description":"New version of the Attendance module for Moodle 2.4 and higher. (replaces mod_attforblock)","fork":false,"url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance","forks_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/forks","keys_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/teams","hooks_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/hooks","issue_events_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/issues/events{/number}","events_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/events","assignees_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/assignees{/user}","branches_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/branches{/branch}","tags_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/tags","blobs_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/git/refs{/sha}","trees_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/statuses/{sha}","languages_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/languages","stargazers_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/stargazers","contributors_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/contributors","subscribers_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/subscribers","subscription_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/subscription","commits_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/commits{/sha}","git_commits_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/git/commits{/sha}","comments_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/comments{/number}","issue_comment_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/issues/comments{/number}","contents_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/contents/{+path}","compare_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/merges","archive_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/downloads","issues_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/issues{/number}","pulls_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/pulls{/number}","milestones_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/milestones{/number}","notifications_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/labels{/name}","releases_url":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/releases{/id}","created_at":"2013-07-03T21:43:16Z","updated_at":"2015-08-10T20:00:02Z","pushed_at":"2015-09-03T21:11:49Z","git_url":"git://github.com/danmarsden/moodle-mod_attendance.git","ssh_url":"git@github.com:danmarsden/moodle-mod_attendance.git","clone_url":"https://github.com/danmarsden/moodle-mod_attendance.git","svn_url":"https://github.com/danmarsden/moodle-mod_attendance","homepage":null,"size":1919,"stargazers_count":14,"watchers_count":14,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":24,"forks":33,"open_issues":24,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/pulls/152"},"html":{"href":"https://github.com/danmarsden/moodle-mod_attendance/pull/152"},"issue":{"href":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/issues/152"},"comments":{"href":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/issues/152/comments"},"review_comments":{"href":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/pulls/152/comments"},"review_comment":{"href":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/pulls/152/commits"},"statuses":{"href":"https://api.github.com/repos/danmarsden/moodle-mod_attendance/statuses/c412d7886c3f5b886edfab5010bbff5ddf5fd14c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}