{"action":"created","comment":{"url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/pulls/comments/73373060","id":73373060,"diff_hunk":"@@ -0,0 +1,26 @@\n+defmodule HappinessometerElixir.AdminUserController do\n+  use HappinessometerElixir.Web, :controller\n+\n+  require Logger\n+\n+  alias HappinessometerElixir.User\n+  alias HappinessometerElixir.Mood\n+  alias HappinessometerElixir.Group\n+  alias HappinessometerElixir.GroupUser\n+  alias HappinessometerElixir.Utils.Utilities\n+\n+  plug :scrub_params, \"user\" when action in [:create, :update]\n+  plug :authenticate_user\n+\n+  def action(conn, _) do\n+    apply(__MODULE__, action_name(conn),\n+        [conn, conn.params, conn.assigns.current_user])\n+  end\n+\n+  def groups(conn, _params, current_user) do\n+    company_with_groups = current_user.company |> Repo.preload(:groups)\n+    Logger.debug \"Company [#{current_user.company.name}] has [#{Enum.count company_with_groups.groups}] groups\"","path":"web/controllers/admin_user_controller.ex","position":22,"original_position":22,"commit_id":"b9b442c01f37a70cfcd441c38147ef4acb2f1b1d","original_commit_id":"b9b442c01f37a70cfcd441c38147ef4acb2f1b1d","user":{"login":"jresendiz27","id":3600174,"avatar_url":"https://avatars.githubusercontent.com/u/3600174?v=3","gravatar_id":"","url":"https://api.github.com/users/jresendiz27","html_url":"https://github.com/jresendiz27","followers_url":"https://api.github.com/users/jresendiz27/followers","following_url":"https://api.github.com/users/jresendiz27/following{/other_user}","gists_url":"https://api.github.com/users/jresendiz27/gists{/gist_id}","starred_url":"https://api.github.com/users/jresendiz27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jresendiz27/subscriptions","organizations_url":"https://api.github.com/users/jresendiz27/orgs","repos_url":"https://api.github.com/users/jresendiz27/repos","events_url":"https://api.github.com/users/jresendiz27/events{/privacy}","received_events_url":"https://api.github.com/users/jresendiz27/received_events","type":"User","site_admin":false},"body":"Es necesario mantener los loggers? o se esta controlando cuando se va a STO","created_at":"2016-08-03T16:48:14Z","updated_at":"2016-08-03T16:48:14Z","html_url":"https://github.com/Nearsoft/happinessometer-elixir/pull/6#discussion_r73373060","pull_request_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/pulls/comments/73373060"},"html":{"href":"https://github.com/Nearsoft/happinessometer-elixir/pull/6#discussion_r73373060"},"pull_request":{"href":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/pulls/6","id":79939747,"html_url":"https://github.com/Nearsoft/happinessometer-elixir/pull/6","diff_url":"https://github.com/Nearsoft/happinessometer-elixir/pull/6.diff","patch_url":"https://github.com/Nearsoft/happinessometer-elixir/pull/6.patch","issue_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/issues/6","number":6,"state":"open","locked":false,"title":"Progress","user":{"login":"abadongutierrez","id":206472,"avatar_url":"https://avatars.githubusercontent.com/u/206472?v=3","gravatar_id":"","url":"https://api.github.com/users/abadongutierrez","html_url":"https://github.com/abadongutierrez","followers_url":"https://api.github.com/users/abadongutierrez/followers","following_url":"https://api.github.com/users/abadongutierrez/following{/other_user}","gists_url":"https://api.github.com/users/abadongutierrez/gists{/gist_id}","starred_url":"https://api.github.com/users/abadongutierrez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abadongutierrez/subscriptions","organizations_url":"https://api.github.com/users/abadongutierrez/orgs","repos_url":"https://api.github.com/users/abadongutierrez/repos","events_url":"https://api.github.com/users/abadongutierrez/events{/privacy}","received_events_url":"https://api.github.com/users/abadongutierrez/received_events","type":"User","site_admin":false},"body":"@jresendiz27 dale una checada y dime si le ves algo raro antes de mezclarlo","created_at":"2016-08-03T16:46:23Z","updated_at":"2016-08-03T16:48:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7cb0d4ba54d4f5268298a136e9598d311fa86d81","assignee":{"login":"abadongutierrez","id":206472,"avatar_url":"https://avatars.githubusercontent.com/u/206472?v=3","gravatar_id":"","url":"https://api.github.com/users/abadongutierrez","html_url":"https://github.com/abadongutierrez","followers_url":"https://api.github.com/users/abadongutierrez/followers","following_url":"https://api.github.com/users/abadongutierrez/following{/other_user}","gists_url":"https://api.github.com/users/abadongutierrez/gists{/gist_id}","starred_url":"https://api.github.com/users/abadongutierrez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abadongutierrez/subscriptions","organizations_url":"https://api.github.com/users/abadongutierrez/orgs","repos_url":"https://api.github.com/users/abadongutierrez/repos","events_url":"https://api.github.com/users/abadongutierrez/events{/privacy}","received_events_url":"https://api.github.com/users/abadongutierrez/received_events","type":"User","site_admin":false},"assignees":[{"login":"abadongutierrez","id":206472,"avatar_url":"https://avatars.githubusercontent.com/u/206472?v=3","gravatar_id":"","url":"https://api.github.com/users/abadongutierrez","html_url":"https://github.com/abadongutierrez","followers_url":"https://api.github.com/users/abadongutierrez/followers","following_url":"https://api.github.com/users/abadongutierrez/following{/other_user}","gists_url":"https://api.github.com/users/abadongutierrez/gists{/gist_id}","starred_url":"https://api.github.com/users/abadongutierrez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abadongutierrez/subscriptions","organizations_url":"https://api.github.com/users/abadongutierrez/orgs","repos_url":"https://api.github.com/users/abadongutierrez/repos","events_url":"https://api.github.com/users/abadongutierrez/events{/privacy}","received_events_url":"https://api.github.com/users/abadongutierrez/received_events","type":"User","site_admin":false},{"login":"jresendiz27","id":3600174,"avatar_url":"https://avatars.githubusercontent.com/u/3600174?v=3","gravatar_id":"","url":"https://api.github.com/users/jresendiz27","html_url":"https://github.com/jresendiz27","followers_url":"https://api.github.com/users/jresendiz27/followers","following_url":"https://api.github.com/users/jresendiz27/following{/other_user}","gists_url":"https://api.github.com/users/jresendiz27/gists{/gist_id}","starred_url":"https://api.github.com/users/jresendiz27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jresendiz27/subscriptions","organizations_url":"https://api.github.com/users/jresendiz27/orgs","repos_url":"https://api.github.com/users/jresendiz27/repos","events_url":"https://api.github.com/users/jresendiz27/events{/privacy}","received_events_url":"https://api.github.com/users/jresendiz27/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/issues/6/comments","statuses_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/statuses/b9b442c01f37a70cfcd441c38147ef4acb2f1b1d","head":{"label":"Nearsoft:feature-34-hidden-happinessreport-for-all-groups","ref":"feature-34-hidden-happinessreport-for-all-groups","sha":"b9b442c01f37a70cfcd441c38147ef4acb2f1b1d","user":{"login":"Nearsoft","id":1137231,"avatar_url":"https://avatars.githubusercontent.com/u/1137231?v=3","gravatar_id":"","url":"https://api.github.com/users/Nearsoft","html_url":"https://github.com/Nearsoft","followers_url":"https://api.github.com/users/Nearsoft/followers","following_url":"https://api.github.com/users/Nearsoft/following{/other_user}","gists_url":"https://api.github.com/users/Nearsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Nearsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nearsoft/subscriptions","organizations_url":"https://api.github.com/users/Nearsoft/orgs","repos_url":"https://api.github.com/users/Nearsoft/repos","events_url":"https://api.github.com/users/Nearsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Nearsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":61594440,"name":"happinessometer-elixir","full_name":"Nearsoft/happinessometer-elixir","owner":{"login":"Nearsoft","id":1137231,"avatar_url":"https://avatars.githubusercontent.com/u/1137231?v=3","gravatar_id":"","url":"https://api.github.com/users/Nearsoft","html_url":"https://github.com/Nearsoft","followers_url":"https://api.github.com/users/Nearsoft/followers","following_url":"https://api.github.com/users/Nearsoft/following{/other_user}","gists_url":"https://api.github.com/users/Nearsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Nearsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nearsoft/subscriptions","organizations_url":"https://api.github.com/users/Nearsoft/orgs","repos_url":"https://api.github.com/users/Nearsoft/repos","events_url":"https://api.github.com/users/Nearsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Nearsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Nearsoft/happinessometer-elixir","description":"A Phoenix app for the happinessometer API","fork":false,"url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir","forks_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/forks","keys_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/teams","hooks_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/hooks","issue_events_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/issues/events{/number}","events_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/events","assignees_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/assignees{/user}","branches_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/branches{/branch}","tags_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/tags","blobs_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/statuses/{sha}","languages_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/languages","stargazers_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/stargazers","contributors_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/contributors","subscribers_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/subscribers","subscription_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/subscription","commits_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/contents/{+path}","compare_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/merges","archive_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/downloads","issues_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/issues{/number}","pulls_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/pulls{/number}","milestones_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/milestones{/number}","notifications_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/labels{/name}","releases_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/releases{/id}","deployments_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/deployments","created_at":"2016-06-21T02:03:43Z","updated_at":"2016-07-08T17:57:07Z","pushed_at":"2016-08-03T16:46:24Z","git_url":"git://github.com/Nearsoft/happinessometer-elixir.git","ssh_url":"git@github.com:Nearsoft/happinessometer-elixir.git","clone_url":"https://github.com/Nearsoft/happinessometer-elixir.git","svn_url":"https://github.com/Nearsoft/happinessometer-elixir","homepage":"","size":87,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"Nearsoft:master","ref":"master","sha":"826b6c853d24b62283a6583c1bc6c9dbcc0e4710","user":{"login":"Nearsoft","id":1137231,"avatar_url":"https://avatars.githubusercontent.com/u/1137231?v=3","gravatar_id":"","url":"https://api.github.com/users/Nearsoft","html_url":"https://github.com/Nearsoft","followers_url":"https://api.github.com/users/Nearsoft/followers","following_url":"https://api.github.com/users/Nearsoft/following{/other_user}","gists_url":"https://api.github.com/users/Nearsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Nearsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nearsoft/subscriptions","organizations_url":"https://api.github.com/users/Nearsoft/orgs","repos_url":"https://api.github.com/users/Nearsoft/repos","events_url":"https://api.github.com/users/Nearsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Nearsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":61594440,"name":"happinessometer-elixir","full_name":"Nearsoft/happinessometer-elixir","owner":{"login":"Nearsoft","id":1137231,"avatar_url":"https://avatars.githubusercontent.com/u/1137231?v=3","gravatar_id":"","url":"https://api.github.com/users/Nearsoft","html_url":"https://github.com/Nearsoft","followers_url":"https://api.github.com/users/Nearsoft/followers","following_url":"https://api.github.com/users/Nearsoft/following{/other_user}","gists_url":"https://api.github.com/users/Nearsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Nearsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nearsoft/subscriptions","organizations_url":"https://api.github.com/users/Nearsoft/orgs","repos_url":"https://api.github.com/users/Nearsoft/repos","events_url":"https://api.github.com/users/Nearsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Nearsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Nearsoft/happinessometer-elixir","description":"A Phoenix app for the happinessometer API","fork":false,"url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir","forks_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/forks","keys_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/teams","hooks_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/hooks","issue_events_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/issues/events{/number}","events_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/events","assignees_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/assignees{/user}","branches_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/branches{/branch}","tags_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/tags","blobs_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/statuses/{sha}","languages_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/languages","stargazers_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/stargazers","contributors_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/contributors","subscribers_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/subscribers","subscription_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/subscription","commits_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/contents/{+path}","compare_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/merges","archive_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/downloads","issues_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/issues{/number}","pulls_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/pulls{/number}","milestones_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/milestones{/number}","notifications_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/labels{/name}","releases_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/releases{/id}","deployments_url":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/deployments","created_at":"2016-06-21T02:03:43Z","updated_at":"2016-07-08T17:57:07Z","pushed_at":"2016-08-03T16:46:24Z","git_url":"git://github.com/Nearsoft/happinessometer-elixir.git","ssh_url":"git@github.com:Nearsoft/happinessometer-elixir.git","clone_url":"https://github.com/Nearsoft/happinessometer-elixir.git","svn_url":"https://github.com/Nearsoft/happinessometer-elixir","homepage":"","size":87,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/pulls/6"},"html":{"href":"https://github.com/Nearsoft/happinessometer-elixir/pull/6"},"issue":{"href":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/issues/6"},"comments":{"href":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Nearsoft/happinessometer-elixir/statuses/b9b442c01f37a70cfcd441c38147ef4acb2f1b1d"}}}}
{"actor":{"display_login":"jresendiz27"}}