{"action":"created","comment":{"url":"https://api.github.com/repos/VATSIM-UK/core/pulls/comments/214551165","pull_request_review_id":151631194,"id":214551165,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDU1MTE2NQ==","diff_hunk":"@@ -65,4 +66,19 @@ public function incrementPosition($value = 1)\n \n         return $this->position;\n     }\n+\n+    public function atcHourCheck()\n+    {\n+        // for a user in a waiting list, they should have > 12 hours controlled within the UK.\n+        $controllingSessions = Atc::whereAccountId($this->account_id)\n+            ->whereBetween('disconnected_at', [\\Carbon\\Carbon::parse('3 months ago'), now()])->isUk();","path":"app/Models/Training/WaitingListAccount.php","position":26,"original_position":26,"commit_id":"695d57665adb68da69daa4b9f31bfe755f5114a5","original_commit_id":"f7ecb027557100c55f415da819a1ccd3f0b9cbd6","user":{"login":"atoff","id":17804618,"node_id":"MDQ6VXNlcjE3ODA0NjE4","avatar_url":"https://avatars0.githubusercontent.com/u/17804618?v=4","gravatar_id":"","url":"https://api.github.com/users/atoff","html_url":"https://github.com/atoff","followers_url":"https://api.github.com/users/atoff/followers","following_url":"https://api.github.com/users/atoff/following{/other_user}","gists_url":"https://api.github.com/users/atoff/gists{/gist_id}","starred_url":"https://api.github.com/users/atoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atoff/subscriptions","organizations_url":"https://api.github.com/users/atoff/orgs","repos_url":"https://api.github.com/users/atoff/repos","events_url":"https://api.github.com/users/atoff/events{/privacy}","received_events_url":"https://api.github.com/users/atoff/received_events","type":"User","site_admin":false},"body":"Nevermind, looks like the `sum()` function also acts as a `get()`er\r\n","created_at":"2018-09-02T19:50:51Z","updated_at":"2018-09-02T19:50:55Z","html_url":"https://github.com/VATSIM-UK/core/pull/1242#discussion_r214551165","pull_request_url":"https://api.github.com/repos/VATSIM-UK/core/pulls/1242","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/VATSIM-UK/core/pulls/comments/214551165"},"html":{"href":"https://github.com/VATSIM-UK/core/pull/1242#discussion_r214551165"},"pull_request":{"href":"https://api.github.com/repos/VATSIM-UK/core/pulls/1242"}},"in_reply_to_id":214547916},"pull_request":{"url":"https://api.github.com/repos/VATSIM-UK/core/pulls/1242","id":212159805,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyMTU5ODA1","html_url":"https://github.com/VATSIM-UK/core/pull/1242","diff_url":"https://github.com/VATSIM-UK/core/pull/1242.diff","patch_url":"https://github.com/VATSIM-UK/core/pull/1242.patch","issue_url":"https://api.github.com/repos/VATSIM-UK/core/issues/1242","number":1242,"state":"open","locked":false,"title":"[WIP] CORE-159 - Waiting List Status","user":{"login":"AxonC","id":6240877,"node_id":"MDQ6VXNlcjYyNDA4Nzc=","avatar_url":"https://avatars2.githubusercontent.com/u/6240877?v=4","gravatar_id":"","url":"https://api.github.com/users/AxonC","html_url":"https://github.com/AxonC","followers_url":"https://api.github.com/users/AxonC/followers","following_url":"https://api.github.com/users/AxonC/following{/other_user}","gists_url":"https://api.github.com/users/AxonC/gists{/gist_id}","starred_url":"https://api.github.com/users/AxonC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AxonC/subscriptions","organizations_url":"https://api.github.com/users/AxonC/orgs","repos_url":"https://api.github.com/users/AxonC/repos","events_url":"https://api.github.com/users/AxonC/events{/privacy}","received_events_url":"https://api.github.com/users/AxonC/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-30T17:48:40Z","updated_at":"2018-09-02T19:50:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb5b812892b34df53eb91d78b679293ea964a492","assignee":null,"assignees":[],"requested_reviewers":[{"login":"CalumTowers","id":7726792,"node_id":"MDQ6VXNlcjc3MjY3OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/7726792?v=4","gravatar_id":"","url":"https://api.github.com/users/CalumTowers","html_url":"https://github.com/CalumTowers","followers_url":"https://api.github.com/users/CalumTowers/followers","following_url":"https://api.github.com/users/CalumTowers/following{/other_user}","gists_url":"https://api.github.com/users/CalumTowers/gists{/gist_id}","starred_url":"https://api.github.com/users/CalumTowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CalumTowers/subscriptions","organizations_url":"https://api.github.com/users/CalumTowers/orgs","repos_url":"https://api.github.com/users/CalumTowers/repos","events_url":"https://api.github.com/users/CalumTowers/events{/privacy}","received_events_url":"https://api.github.com/users/CalumTowers/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/VATSIM-UK/core/pulls/1242/commits","review_comments_url":"https://api.github.com/repos/VATSIM-UK/core/pulls/1242/comments","review_comment_url":"https://api.github.com/repos/VATSIM-UK/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VATSIM-UK/core/issues/1242/comments","statuses_url":"https://api.github.com/repos/VATSIM-UK/core/statuses/695d57665adb68da69daa4b9f31bfe755f5114a5","head":{"label":"VATSIM-UK:feature/CORE-159-waiting-list-status","ref":"feature/CORE-159-waiting-list-status","sha":"695d57665adb68da69daa4b9f31bfe755f5114a5","user":{"login":"VATSIM-UK","id":11904312,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExOTA0MzEy","avatar_url":"https://avatars3.githubusercontent.com/u/11904312?v=4","gravatar_id":"","url":"https://api.github.com/users/VATSIM-UK","html_url":"https://github.com/VATSIM-UK","followers_url":"https://api.github.com/users/VATSIM-UK/followers","following_url":"https://api.github.com/users/VATSIM-UK/following{/other_user}","gists_url":"https://api.github.com/users/VATSIM-UK/gists{/gist_id}","starred_url":"https://api.github.com/users/VATSIM-UK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VATSIM-UK/subscriptions","organizations_url":"https://api.github.com/users/VATSIM-UK/orgs","repos_url":"https://api.github.com/users/VATSIM-UK/repos","events_url":"https://api.github.com/users/VATSIM-UK/events{/privacy}","received_events_url":"https://api.github.com/users/VATSIM-UK/received_events","type":"Organization","site_admin":false},"repo":{"id":75443611,"node_id":"MDEwOlJlcG9zaXRvcnk3NTQ0MzYxMQ==","name":"core","full_name":"VATSIM-UK/core","owner":{"login":"VATSIM-UK","id":11904312,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExOTA0MzEy","avatar_url":"https://avatars3.githubusercontent.com/u/11904312?v=4","gravatar_id":"","url":"https://api.github.com/users/VATSIM-UK","html_url":"https://github.com/VATSIM-UK","followers_url":"https://api.github.com/users/VATSIM-UK/followers","following_url":"https://api.github.com/users/VATSIM-UK/following{/other_user}","gists_url":"https://api.github.com/users/VATSIM-UK/gists{/gist_id}","starred_url":"https://api.github.com/users/VATSIM-UK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VATSIM-UK/subscriptions","organizations_url":"https://api.github.com/users/VATSIM-UK/orgs","repos_url":"https://api.github.com/users/VATSIM-UK/repos","events_url":"https://api.github.com/users/VATSIM-UK/events{/privacy}","received_events_url":"https://api.github.com/users/VATSIM-UK/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/VATSIM-UK/core","description":"Core application for VATSIM UK","fork":false,"url":"https://api.github.com/repos/VATSIM-UK/core","forks_url":"https://api.github.com/repos/VATSIM-UK/core/forks","keys_url":"https://api.github.com/repos/VATSIM-UK/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VATSIM-UK/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VATSIM-UK/core/teams","hooks_url":"https://api.github.com/repos/VATSIM-UK/core/hooks","issue_events_url":"https://api.github.com/repos/VATSIM-UK/core/issues/events{/number}","events_url":"https://api.github.com/repos/VATSIM-UK/core/events","assignees_url":"https://api.github.com/repos/VATSIM-UK/core/assignees{/user}","branches_url":"https://api.github.com/repos/VATSIM-UK/core/branches{/branch}","tags_url":"https://api.github.com/repos/VATSIM-UK/core/tags","blobs_url":"https://api.github.com/repos/VATSIM-UK/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VATSIM-UK/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VATSIM-UK/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/VATSIM-UK/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VATSIM-UK/core/statuses/{sha}","languages_url":"https://api.github.com/repos/VATSIM-UK/core/languages","stargazers_url":"https://api.github.com/repos/VATSIM-UK/core/stargazers","contributors_url":"https://api.github.com/repos/VATSIM-UK/core/contributors","subscribers_url":"https://api.github.com/repos/VATSIM-UK/core/subscribers","subscription_url":"https://api.github.com/repos/VATSIM-UK/core/subscription","commits_url":"https://api.github.com/repos/VATSIM-UK/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/VATSIM-UK/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/VATSIM-UK/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/VATSIM-UK/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/VATSIM-UK/core/contents/{+path}","compare_url":"https://api.github.com/repos/VATSIM-UK/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VATSIM-UK/core/merges","archive_url":"https://api.github.com/repos/VATSIM-UK/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VATSIM-UK/core/downloads","issues_url":"https://api.github.com/repos/VATSIM-UK/core/issues{/number}","pulls_url":"https://api.github.com/repos/VATSIM-UK/core/pulls{/number}","milestones_url":"https://api.github.com/repos/VATSIM-UK/core/milestones{/number}","notifications_url":"https://api.github.com/repos/VATSIM-UK/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VATSIM-UK/core/labels{/name}","releases_url":"https://api.github.com/repos/VATSIM-UK/core/releases{/id}","deployments_url":"https://api.github.com/repos/VATSIM-UK/core/deployments","created_at":"2016-12-03T01:18:52Z","updated_at":"2018-08-30T21:13:17Z","pushed_at":"2018-09-02T19:27:15Z","git_url":"git://github.com/VATSIM-UK/core.git","ssh_url":"git@github.com:VATSIM-UK/core.git","clone_url":"https://github.com/VATSIM-UK/core.git","svn_url":"https://github.com/VATSIM-UK/core","homepage":"https://core.vatsim.uk","size":42625,"stargazers_count":8,"watchers_count":8,"language":"HTML","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":27,"open_issues":9,"watchers":8,"default_branch":"develop"}},"base":{"label":"VATSIM-UK:feature/CORE-95-atc-training-places","ref":"feature/CORE-95-atc-training-places","sha":"6fd846930f29cb87ccb929a7740049f443c38916","user":{"login":"VATSIM-UK","id":11904312,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExOTA0MzEy","avatar_url":"https://avatars3.githubusercontent.com/u/11904312?v=4","gravatar_id":"","url":"https://api.github.com/users/VATSIM-UK","html_url":"https://github.com/VATSIM-UK","followers_url":"https://api.github.com/users/VATSIM-UK/followers","following_url":"https://api.github.com/users/VATSIM-UK/following{/other_user}","gists_url":"https://api.github.com/users/VATSIM-UK/gists{/gist_id}","starred_url":"https://api.github.com/users/VATSIM-UK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VATSIM-UK/subscriptions","organizations_url":"https://api.github.com/users/VATSIM-UK/orgs","repos_url":"https://api.github.com/users/VATSIM-UK/repos","events_url":"https://api.github.com/users/VATSIM-UK/events{/privacy}","received_events_url":"https://api.github.com/users/VATSIM-UK/received_events","type":"Organization","site_admin":false},"repo":{"id":75443611,"node_id":"MDEwOlJlcG9zaXRvcnk3NTQ0MzYxMQ==","name":"core","full_name":"VATSIM-UK/core","owner":{"login":"VATSIM-UK","id":11904312,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExOTA0MzEy","avatar_url":"https://avatars3.githubusercontent.com/u/11904312?v=4","gravatar_id":"","url":"https://api.github.com/users/VATSIM-UK","html_url":"https://github.com/VATSIM-UK","followers_url":"https://api.github.com/users/VATSIM-UK/followers","following_url":"https://api.github.com/users/VATSIM-UK/following{/other_user}","gists_url":"https://api.github.com/users/VATSIM-UK/gists{/gist_id}","starred_url":"https://api.github.com/users/VATSIM-UK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VATSIM-UK/subscriptions","organizations_url":"https://api.github.com/users/VATSIM-UK/orgs","repos_url":"https://api.github.com/users/VATSIM-UK/repos","events_url":"https://api.github.com/users/VATSIM-UK/events{/privacy}","received_events_url":"https://api.github.com/users/VATSIM-UK/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/VATSIM-UK/core","description":"Core application for VATSIM UK","fork":false,"url":"https://api.github.com/repos/VATSIM-UK/core","forks_url":"https://api.github.com/repos/VATSIM-UK/core/forks","keys_url":"https://api.github.com/repos/VATSIM-UK/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VATSIM-UK/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VATSIM-UK/core/teams","hooks_url":"https://api.github.com/repos/VATSIM-UK/core/hooks","issue_events_url":"https://api.github.com/repos/VATSIM-UK/core/issues/events{/number}","events_url":"https://api.github.com/repos/VATSIM-UK/core/events","assignees_url":"https://api.github.com/repos/VATSIM-UK/core/assignees{/user}","branches_url":"https://api.github.com/repos/VATSIM-UK/core/branches{/branch}","tags_url":"https://api.github.com/repos/VATSIM-UK/core/tags","blobs_url":"https://api.github.com/repos/VATSIM-UK/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VATSIM-UK/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VATSIM-UK/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/VATSIM-UK/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VATSIM-UK/core/statuses/{sha}","languages_url":"https://api.github.com/repos/VATSIM-UK/core/languages","stargazers_url":"https://api.github.com/repos/VATSIM-UK/core/stargazers","contributors_url":"https://api.github.com/repos/VATSIM-UK/core/contributors","subscribers_url":"https://api.github.com/repos/VATSIM-UK/core/subscribers","subscription_url":"https://api.github.com/repos/VATSIM-UK/core/subscription","commits_url":"https://api.github.com/repos/VATSIM-UK/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/VATSIM-UK/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/VATSIM-UK/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/VATSIM-UK/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/VATSIM-UK/core/contents/{+path}","compare_url":"https://api.github.com/repos/VATSIM-UK/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VATSIM-UK/core/merges","archive_url":"https://api.github.com/repos/VATSIM-UK/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VATSIM-UK/core/downloads","issues_url":"https://api.github.com/repos/VATSIM-UK/core/issues{/number}","pulls_url":"https://api.github.com/repos/VATSIM-UK/core/pulls{/number}","milestones_url":"https://api.github.com/repos/VATSIM-UK/core/milestones{/number}","notifications_url":"https://api.github.com/repos/VATSIM-UK/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VATSIM-UK/core/labels{/name}","releases_url":"https://api.github.com/repos/VATSIM-UK/core/releases{/id}","deployments_url":"https://api.github.com/repos/VATSIM-UK/core/deployments","created_at":"2016-12-03T01:18:52Z","updated_at":"2018-08-30T21:13:17Z","pushed_at":"2018-09-02T19:27:15Z","git_url":"git://github.com/VATSIM-UK/core.git","ssh_url":"git@github.com:VATSIM-UK/core.git","clone_url":"https://github.com/VATSIM-UK/core.git","svn_url":"https://github.com/VATSIM-UK/core","homepage":"https://core.vatsim.uk","size":42625,"stargazers_count":8,"watchers_count":8,"language":"HTML","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":27,"open_issues":9,"watchers":8,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/VATSIM-UK/core/pulls/1242"},"html":{"href":"https://github.com/VATSIM-UK/core/pull/1242"},"issue":{"href":"https://api.github.com/repos/VATSIM-UK/core/issues/1242"},"comments":{"href":"https://api.github.com/repos/VATSIM-UK/core/issues/1242/comments"},"review_comments":{"href":"https://api.github.com/repos/VATSIM-UK/core/pulls/1242/comments"},"review_comment":{"href":"https://api.github.com/repos/VATSIM-UK/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VATSIM-UK/core/pulls/1242/commits"},"statuses":{"href":"https://api.github.com/repos/VATSIM-UK/core/statuses/695d57665adb68da69daa4b9f31bfe755f5114a5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"atoff"}}