{"action":"created","comment":{"url":"https://api.github.com/repos/namely/connect/pulls/comments/69800038","id":69800038,"diff_hunk":"@@ -78,6 +82,10 @@ def import_profile(profile)\n       )\n     end\n \n+    def profile_imports\n+      ProfileImport.where(\"installation_id = '?' and integration_id = ?\", self.installation_id, self.integration_id)","path":"app/models/jobvite/connection.rb","position":16,"original_position":16,"commit_id":"5fda3f517181937b2cfaefc464ba184c0aacfb68","original_commit_id":"5fda3f517181937b2cfaefc464ba184c0aacfb68","user":{"login":"bobbytables","id":521627,"avatar_url":"https://avatars.githubusercontent.com/u/521627?v=3","gravatar_id":"","url":"https://api.github.com/users/bobbytables","html_url":"https://github.com/bobbytables","followers_url":"https://api.github.com/users/bobbytables/followers","following_url":"https://api.github.com/users/bobbytables/following{/other_user}","gists_url":"https://api.github.com/users/bobbytables/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbytables/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbytables/subscriptions","organizations_url":"https://api.github.com/users/bobbytables/orgs","repos_url":"https://api.github.com/users/bobbytables/repos","events_url":"https://api.github.com/users/bobbytables/events{/privacy}","received_events_url":"https://api.github.com/users/bobbytables/received_events","type":"User","site_admin":false},"body":"Simplify :)","created_at":"2016-07-06T19:53:44Z","updated_at":"2016-07-06T19:53:44Z","html_url":"https://github.com/namely/connect/pull/340#discussion_r69800038","pull_request_url":"https://api.github.com/repos/namely/connect/pulls/340","_links":{"self":{"href":"https://api.github.com/repos/namely/connect/pulls/comments/69800038"},"html":{"href":"https://github.com/namely/connect/pull/340#discussion_r69800038"},"pull_request":{"href":"https://api.github.com/repos/namely/connect/pulls/340"}}},"pull_request":{"url":"https://api.github.com/repos/namely/connect/pulls/340","id":76442017,"html_url":"https://github.com/namely/connect/pull/340","diff_url":"https://github.com/namely/connect/pull/340.diff","patch_url":"https://github.com/namely/connect/pull/340.patch","issue_url":"https://api.github.com/repos/namely/connect/issues/340","number":340,"state":"open","locked":false,"title":"INT-34(et al): Namely Connect - UI to view metrics on Total Usage of Connectors","user":{"login":"nnarh","id":5009828,"avatar_url":"https://avatars.githubusercontent.com/u/5009828?v=3","gravatar_id":"","url":"https://api.github.com/users/nnarh","html_url":"https://github.com/nnarh","followers_url":"https://api.github.com/users/nnarh/followers","following_url":"https://api.github.com/users/nnarh/following{/other_user}","gists_url":"https://api.github.com/users/nnarh/gists{/gist_id}","starred_url":"https://api.github.com/users/nnarh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnarh/subscriptions","organizations_url":"https://api.github.com/users/nnarh/orgs","repos_url":"https://api.github.com/users/nnarh/repos","events_url":"https://api.github.com/users/nnarh/events{/privacy}","received_events_url":"https://api.github.com/users/nnarh/received_events","type":"User","site_admin":false},"body":"These stories are all tied together which is why this relatively large PR was created.\r\n \r\nINT-34: https://namely.atlassian.net/browse/INT-34\r\nINT-35: https://namely.atlassian.net/browse/INT-35\r\n\r\nAs a Namely connect user logging in with oauth, I want to see how many total profiles were imported and created via the ATS Connector.\r\nConditions of Satisfaction:\r\nATS Connector is logging number of profiles imported\r\nATS Connector is logging number of profiles created via Namely API\r\nAble to report on these stats\r\n\r\n--------------------\r\n\r\nINT-39: https://namely.atlassian.net/browse/INT-39\r\n\r\nAs a User, I should have the ability to download of the web admin/installations stats to csv file\r\n\r\n--------------------\r\n\r\nINT-12: https://namely.atlassian.net/browse/INT-12\r\n\r\nAs an admin of namely-connect, I should be able to view the number of profiles imported and exported from/to each installation from the admin/installations page.\r\n\r\n*Updated*\r\nColumns:\r\nConnector Name \r\nImport / Export\r\nClient Name\r\nStatus: Fail/Success\r\nLast 24 hours\r\nLast Week\r\nAll Time\r\nAcceptance Criteria: Ability to Paginate\r\n\r\nhttps://namely.atlassian.net/browse/INT-11\r\nNamely Connect - Add error checking / validation for greenhouse salary","created_at":"2016-07-06T14:31:15Z","updated_at":"2016-07-06T19:53:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7574e8f10d001db79747dfaa13a40888729af508","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/namely/connect/pulls/340/commits","review_comments_url":"https://api.github.com/repos/namely/connect/pulls/340/comments","review_comment_url":"https://api.github.com/repos/namely/connect/pulls/comments{/number}","comments_url":"https://api.github.com/repos/namely/connect/issues/340/comments","statuses_url":"https://api.github.com/repos/namely/connect/statuses/5fda3f517181937b2cfaefc464ba184c0aacfb68","head":{"label":"namely:bellis-int-34","ref":"bellis-int-34","sha":"5fda3f517181937b2cfaefc464ba184c0aacfb68","user":{"login":"namely","id":1004321,"avatar_url":"https://avatars.githubusercontent.com/u/1004321?v=3","gravatar_id":"","url":"https://api.github.com/users/namely","html_url":"https://github.com/namely","followers_url":"https://api.github.com/users/namely/followers","following_url":"https://api.github.com/users/namely/following{/other_user}","gists_url":"https://api.github.com/users/namely/gists{/gist_id}","starred_url":"https://api.github.com/users/namely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namely/subscriptions","organizations_url":"https://api.github.com/users/namely/orgs","repos_url":"https://api.github.com/users/namely/repos","events_url":"https://api.github.com/users/namely/events{/privacy}","received_events_url":"https://api.github.com/users/namely/received_events","type":"Organization","site_admin":false},"repo":{"id":26101808,"name":"connect","full_name":"namely/connect","owner":{"login":"namely","id":1004321,"avatar_url":"https://avatars.githubusercontent.com/u/1004321?v=3","gravatar_id":"","url":"https://api.github.com/users/namely","html_url":"https://github.com/namely","followers_url":"https://api.github.com/users/namely/followers","following_url":"https://api.github.com/users/namely/following{/other_user}","gists_url":"https://api.github.com/users/namely/gists{/gist_id}","starred_url":"https://api.github.com/users/namely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namely/subscriptions","organizations_url":"https://api.github.com/users/namely/orgs","repos_url":"https://api.github.com/users/namely/repos","events_url":"https://api.github.com/users/namely/events{/privacy}","received_events_url":"https://api.github.com/users/namely/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/namely/connect","description":"Namely Connect – Integrations with the Namely HRIS System.","fork":false,"url":"https://api.github.com/repos/namely/connect","forks_url":"https://api.github.com/repos/namely/connect/forks","keys_url":"https://api.github.com/repos/namely/connect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/namely/connect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/namely/connect/teams","hooks_url":"https://api.github.com/repos/namely/connect/hooks","issue_events_url":"https://api.github.com/repos/namely/connect/issues/events{/number}","events_url":"https://api.github.com/repos/namely/connect/events","assignees_url":"https://api.github.com/repos/namely/connect/assignees{/user}","branches_url":"https://api.github.com/repos/namely/connect/branches{/branch}","tags_url":"https://api.github.com/repos/namely/connect/tags","blobs_url":"https://api.github.com/repos/namely/connect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/namely/connect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/namely/connect/git/refs{/sha}","trees_url":"https://api.github.com/repos/namely/connect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/namely/connect/statuses/{sha}","languages_url":"https://api.github.com/repos/namely/connect/languages","stargazers_url":"https://api.github.com/repos/namely/connect/stargazers","contributors_url":"https://api.github.com/repos/namely/connect/contributors","subscribers_url":"https://api.github.com/repos/namely/connect/subscribers","subscription_url":"https://api.github.com/repos/namely/connect/subscription","commits_url":"https://api.github.com/repos/namely/connect/commits{/sha}","git_commits_url":"https://api.github.com/repos/namely/connect/git/commits{/sha}","comments_url":"https://api.github.com/repos/namely/connect/comments{/number}","issue_comment_url":"https://api.github.com/repos/namely/connect/issues/comments{/number}","contents_url":"https://api.github.com/repos/namely/connect/contents/{+path}","compare_url":"https://api.github.com/repos/namely/connect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/namely/connect/merges","archive_url":"https://api.github.com/repos/namely/connect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/namely/connect/downloads","issues_url":"https://api.github.com/repos/namely/connect/issues{/number}","pulls_url":"https://api.github.com/repos/namely/connect/pulls{/number}","milestones_url":"https://api.github.com/repos/namely/connect/milestones{/number}","notifications_url":"https://api.github.com/repos/namely/connect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/namely/connect/labels{/name}","releases_url":"https://api.github.com/repos/namely/connect/releases{/id}","deployments_url":"https://api.github.com/repos/namely/connect/deployments","created_at":"2014-11-03T03:10:16Z","updated_at":"2016-05-17T17:09:11Z","pushed_at":"2016-07-06T15:16:59Z","git_url":"git://github.com/namely/connect.git","ssh_url":"git@github.com:namely/connect.git","clone_url":"https://github.com/namely/connect.git","svn_url":"https://github.com/namely/connect","homepage":"","size":3431,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"namely:master","ref":"master","sha":"4e25ff0a5f563ccafc04641c66427c2e13af8884","user":{"login":"namely","id":1004321,"avatar_url":"https://avatars.githubusercontent.com/u/1004321?v=3","gravatar_id":"","url":"https://api.github.com/users/namely","html_url":"https://github.com/namely","followers_url":"https://api.github.com/users/namely/followers","following_url":"https://api.github.com/users/namely/following{/other_user}","gists_url":"https://api.github.com/users/namely/gists{/gist_id}","starred_url":"https://api.github.com/users/namely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namely/subscriptions","organizations_url":"https://api.github.com/users/namely/orgs","repos_url":"https://api.github.com/users/namely/repos","events_url":"https://api.github.com/users/namely/events{/privacy}","received_events_url":"https://api.github.com/users/namely/received_events","type":"Organization","site_admin":false},"repo":{"id":26101808,"name":"connect","full_name":"namely/connect","owner":{"login":"namely","id":1004321,"avatar_url":"https://avatars.githubusercontent.com/u/1004321?v=3","gravatar_id":"","url":"https://api.github.com/users/namely","html_url":"https://github.com/namely","followers_url":"https://api.github.com/users/namely/followers","following_url":"https://api.github.com/users/namely/following{/other_user}","gists_url":"https://api.github.com/users/namely/gists{/gist_id}","starred_url":"https://api.github.com/users/namely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namely/subscriptions","organizations_url":"https://api.github.com/users/namely/orgs","repos_url":"https://api.github.com/users/namely/repos","events_url":"https://api.github.com/users/namely/events{/privacy}","received_events_url":"https://api.github.com/users/namely/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/namely/connect","description":"Namely Connect – Integrations with the Namely HRIS System.","fork":false,"url":"https://api.github.com/repos/namely/connect","forks_url":"https://api.github.com/repos/namely/connect/forks","keys_url":"https://api.github.com/repos/namely/connect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/namely/connect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/namely/connect/teams","hooks_url":"https://api.github.com/repos/namely/connect/hooks","issue_events_url":"https://api.github.com/repos/namely/connect/issues/events{/number}","events_url":"https://api.github.com/repos/namely/connect/events","assignees_url":"https://api.github.com/repos/namely/connect/assignees{/user}","branches_url":"https://api.github.com/repos/namely/connect/branches{/branch}","tags_url":"https://api.github.com/repos/namely/connect/tags","blobs_url":"https://api.github.com/repos/namely/connect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/namely/connect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/namely/connect/git/refs{/sha}","trees_url":"https://api.github.com/repos/namely/connect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/namely/connect/statuses/{sha}","languages_url":"https://api.github.com/repos/namely/connect/languages","stargazers_url":"https://api.github.com/repos/namely/connect/stargazers","contributors_url":"https://api.github.com/repos/namely/connect/contributors","subscribers_url":"https://api.github.com/repos/namely/connect/subscribers","subscription_url":"https://api.github.com/repos/namely/connect/subscription","commits_url":"https://api.github.com/repos/namely/connect/commits{/sha}","git_commits_url":"https://api.github.com/repos/namely/connect/git/commits{/sha}","comments_url":"https://api.github.com/repos/namely/connect/comments{/number}","issue_comment_url":"https://api.github.com/repos/namely/connect/issues/comments{/number}","contents_url":"https://api.github.com/repos/namely/connect/contents/{+path}","compare_url":"https://api.github.com/repos/namely/connect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/namely/connect/merges","archive_url":"https://api.github.com/repos/namely/connect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/namely/connect/downloads","issues_url":"https://api.github.com/repos/namely/connect/issues{/number}","pulls_url":"https://api.github.com/repos/namely/connect/pulls{/number}","milestones_url":"https://api.github.com/repos/namely/connect/milestones{/number}","notifications_url":"https://api.github.com/repos/namely/connect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/namely/connect/labels{/name}","releases_url":"https://api.github.com/repos/namely/connect/releases{/id}","deployments_url":"https://api.github.com/repos/namely/connect/deployments","created_at":"2014-11-03T03:10:16Z","updated_at":"2016-05-17T17:09:11Z","pushed_at":"2016-07-06T15:16:59Z","git_url":"git://github.com/namely/connect.git","ssh_url":"git@github.com:namely/connect.git","clone_url":"https://github.com/namely/connect.git","svn_url":"https://github.com/namely/connect","homepage":"","size":3431,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/namely/connect/pulls/340"},"html":{"href":"https://github.com/namely/connect/pull/340"},"issue":{"href":"https://api.github.com/repos/namely/connect/issues/340"},"comments":{"href":"https://api.github.com/repos/namely/connect/issues/340/comments"},"review_comments":{"href":"https://api.github.com/repos/namely/connect/pulls/340/comments"},"review_comment":{"href":"https://api.github.com/repos/namely/connect/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/namely/connect/pulls/340/commits"},"statuses":{"href":"https://api.github.com/repos/namely/connect/statuses/5fda3f517181937b2cfaefc464ba184c0aacfb68"}}}}
{"actor":{"display_login":"bobbytables"}}