{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/drs_2/pulls/comments/198706011","pull_request_review_id":132684823,"id":198706011,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODcwNjAxMQ==","diff_hunk":"@@ -1,13 +1,22 @@\n class UsersController < ApplicationController\n   before_action :logged_in_user, except: %i(new show create)\n-  before_action :load_user, except: %i(new index create)\n+  before_action :load_user, except: %i(new index create search)\n   before_action :correct_user, only: %i(edit update)\n   before_action :is_admin_logged_in?, only: %i(new update destroy)\n   before_action :load_div_pos, except: %i(destroy index show)\n+\n   def show; end\n \n   def index\n-    @users = User.paginate page: params[:page]\n+    @filter = {name: \"Name\", user_code: \"User Code\"}","path":"app/controllers/users_controller.rb","position":13,"original_position":13,"commit_id":"275c8e6fa811132518b233c393982645391255a1","original_commit_id":"275c8e6fa811132518b233c393982645391255a1","user":{"login":"hystericall","id":24959049,"node_id":"MDQ6VXNlcjI0OTU5MDQ5","avatar_url":"https://avatars0.githubusercontent.com/u/24959049?v=4","gravatar_id":"","url":"https://api.github.com/users/hystericall","html_url":"https://github.com/hystericall","followers_url":"https://api.github.com/users/hystericall/followers","following_url":"https://api.github.com/users/hystericall/following{/other_user}","gists_url":"https://api.github.com/users/hystericall/gists{/gist_id}","starred_url":"https://api.github.com/users/hystericall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hystericall/subscriptions","organizations_url":"https://api.github.com/users/hystericall/orgs","repos_url":"https://api.github.com/users/hystericall/repos","events_url":"https://api.github.com/users/hystericall/events{/privacy}","received_events_url":"https://api.github.com/users/hystericall/received_events","type":"User","site_admin":false},"body":"Dạ cái hash filter đó để em truyền vào select_box ở view để user có thể search dựa theo filter được chọn đó anh","created_at":"2018-06-28T04:42:14Z","updated_at":"2018-06-28T04:42:14Z","html_url":"https://github.com/framgia/drs_2/pull/11#discussion_r198706011","pull_request_url":"https://api.github.com/repos/framgia/drs_2/pulls/11","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/framgia/drs_2/pulls/comments/198706011"},"html":{"href":"https://github.com/framgia/drs_2/pull/11#discussion_r198706011"},"pull_request":{"href":"https://api.github.com/repos/framgia/drs_2/pulls/11"}},"in_reply_to_id":198705282},"pull_request":{"url":"https://api.github.com/repos/framgia/drs_2/pulls/11","id":197913633,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3OTEzNjMz","html_url":"https://github.com/framgia/drs_2/pull/11","diff_url":"https://github.com/framgia/drs_2/pull/11.diff","patch_url":"https://github.com/framgia/drs_2/pull/11.patch","issue_url":"https://api.github.com/repos/framgia/drs_2/issues/11","number":11,"state":"open","locked":false,"title":"Init search, delete user","user":{"login":"hystericall","id":24959049,"node_id":"MDQ6VXNlcjI0OTU5MDQ5","avatar_url":"https://avatars0.githubusercontent.com/u/24959049?v=4","gravatar_id":"","url":"https://api.github.com/users/hystericall","html_url":"https://github.com/hystericall","followers_url":"https://api.github.com/users/hystericall/followers","following_url":"https://api.github.com/users/hystericall/following{/other_user}","gists_url":"https://api.github.com/users/hystericall/gists{/gist_id}","starred_url":"https://api.github.com/users/hystericall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hystericall/subscriptions","organizations_url":"https://api.github.com/users/hystericall/orgs","repos_url":"https://api.github.com/users/hystericall/repos","events_url":"https://api.github.com/users/hystericall/events{/privacy}","received_events_url":"https://api.github.com/users/hystericall/received_events","type":"User","site_admin":false},"body":"![image](https://user-images.githubusercontent.com/24959049/42013003-4f44c4aa-7ac5-11e8-898d-9be88d6c4138.png)\r\n","created_at":"2018-06-28T04:22:03Z","updated_at":"2018-06-28T04:42:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eac465a20a9c852336c8849f78c2df7cc3434c4f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/drs_2/pulls/11/commits","review_comments_url":"https://api.github.com/repos/framgia/drs_2/pulls/11/comments","review_comment_url":"https://api.github.com/repos/framgia/drs_2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/drs_2/issues/11/comments","statuses_url":"https://api.github.com/repos/framgia/drs_2/statuses/275c8e6fa811132518b233c393982645391255a1","head":{"label":"hystericall:searc_user","ref":"searc_user","sha":"275c8e6fa811132518b233c393982645391255a1","user":{"login":"hystericall","id":24959049,"node_id":"MDQ6VXNlcjI0OTU5MDQ5","avatar_url":"https://avatars0.githubusercontent.com/u/24959049?v=4","gravatar_id":"","url":"https://api.github.com/users/hystericall","html_url":"https://github.com/hystericall","followers_url":"https://api.github.com/users/hystericall/followers","following_url":"https://api.github.com/users/hystericall/following{/other_user}","gists_url":"https://api.github.com/users/hystericall/gists{/gist_id}","starred_url":"https://api.github.com/users/hystericall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hystericall/subscriptions","organizations_url":"https://api.github.com/users/hystericall/orgs","repos_url":"https://api.github.com/users/hystericall/repos","events_url":"https://api.github.com/users/hystericall/events{/privacy}","received_events_url":"https://api.github.com/users/hystericall/received_events","type":"User","site_admin":false},"repo":{"id":137828222,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc4MjgyMjI=","name":"drs_2","full_name":"hystericall/drs_2","owner":{"login":"hystericall","id":24959049,"node_id":"MDQ6VXNlcjI0OTU5MDQ5","avatar_url":"https://avatars0.githubusercontent.com/u/24959049?v=4","gravatar_id":"","url":"https://api.github.com/users/hystericall","html_url":"https://github.com/hystericall","followers_url":"https://api.github.com/users/hystericall/followers","following_url":"https://api.github.com/users/hystericall/following{/other_user}","gists_url":"https://api.github.com/users/hystericall/gists{/gist_id}","starred_url":"https://api.github.com/users/hystericall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hystericall/subscriptions","organizations_url":"https://api.github.com/users/hystericall/orgs","repos_url":"https://api.github.com/users/hystericall/repos","events_url":"https://api.github.com/users/hystericall/events{/privacy}","received_events_url":"https://api.github.com/users/hystericall/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hystericall/drs_2","description":null,"fork":true,"url":"https://api.github.com/repos/hystericall/drs_2","forks_url":"https://api.github.com/repos/hystericall/drs_2/forks","keys_url":"https://api.github.com/repos/hystericall/drs_2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hystericall/drs_2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hystericall/drs_2/teams","hooks_url":"https://api.github.com/repos/hystericall/drs_2/hooks","issue_events_url":"https://api.github.com/repos/hystericall/drs_2/issues/events{/number}","events_url":"https://api.github.com/repos/hystericall/drs_2/events","assignees_url":"https://api.github.com/repos/hystericall/drs_2/assignees{/user}","branches_url":"https://api.github.com/repos/hystericall/drs_2/branches{/branch}","tags_url":"https://api.github.com/repos/hystericall/drs_2/tags","blobs_url":"https://api.github.com/repos/hystericall/drs_2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hystericall/drs_2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hystericall/drs_2/git/refs{/sha}","trees_url":"https://api.github.com/repos/hystericall/drs_2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hystericall/drs_2/statuses/{sha}","languages_url":"https://api.github.com/repos/hystericall/drs_2/languages","stargazers_url":"https://api.github.com/repos/hystericall/drs_2/stargazers","contributors_url":"https://api.github.com/repos/hystericall/drs_2/contributors","subscribers_url":"https://api.github.com/repos/hystericall/drs_2/subscribers","subscription_url":"https://api.github.com/repos/hystericall/drs_2/subscription","commits_url":"https://api.github.com/repos/hystericall/drs_2/commits{/sha}","git_commits_url":"https://api.github.com/repos/hystericall/drs_2/git/commits{/sha}","comments_url":"https://api.github.com/repos/hystericall/drs_2/comments{/number}","issue_comment_url":"https://api.github.com/repos/hystericall/drs_2/issues/comments{/number}","contents_url":"https://api.github.com/repos/hystericall/drs_2/contents/{+path}","compare_url":"https://api.github.com/repos/hystericall/drs_2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hystericall/drs_2/merges","archive_url":"https://api.github.com/repos/hystericall/drs_2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hystericall/drs_2/downloads","issues_url":"https://api.github.com/repos/hystericall/drs_2/issues{/number}","pulls_url":"https://api.github.com/repos/hystericall/drs_2/pulls{/number}","milestones_url":"https://api.github.com/repos/hystericall/drs_2/milestones{/number}","notifications_url":"https://api.github.com/repos/hystericall/drs_2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hystericall/drs_2/labels{/name}","releases_url":"https://api.github.com/repos/hystericall/drs_2/releases{/id}","deployments_url":"https://api.github.com/repos/hystericall/drs_2/deployments","created_at":"2018-06-19T02:07:53Z","updated_at":"2018-06-19T08:21:48Z","pushed_at":"2018-06-28T04:20:29Z","git_url":"git://github.com/hystericall/drs_2.git","ssh_url":"git@github.com:hystericall/drs_2.git","clone_url":"https://github.com/hystericall/drs_2.git","svn_url":"https://github.com/hystericall/drs_2","homepage":null,"size":2046,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"framgia:develop","ref":"develop","sha":"da571cdfb5890895bbda4f4c4144583a416195f1","user":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":137702081,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc3MDIwODE=","name":"drs_2","full_name":"framgia/drs_2","owner":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/drs_2","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/drs_2","forks_url":"https://api.github.com/repos/framgia/drs_2/forks","keys_url":"https://api.github.com/repos/framgia/drs_2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/drs_2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/drs_2/teams","hooks_url":"https://api.github.com/repos/framgia/drs_2/hooks","issue_events_url":"https://api.github.com/repos/framgia/drs_2/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/drs_2/events","assignees_url":"https://api.github.com/repos/framgia/drs_2/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/drs_2/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/drs_2/tags","blobs_url":"https://api.github.com/repos/framgia/drs_2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/drs_2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/drs_2/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/drs_2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/drs_2/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/drs_2/languages","stargazers_url":"https://api.github.com/repos/framgia/drs_2/stargazers","contributors_url":"https://api.github.com/repos/framgia/drs_2/contributors","subscribers_url":"https://api.github.com/repos/framgia/drs_2/subscribers","subscription_url":"https://api.github.com/repos/framgia/drs_2/subscription","commits_url":"https://api.github.com/repos/framgia/drs_2/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/drs_2/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/drs_2/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/drs_2/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/drs_2/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/drs_2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/drs_2/merges","archive_url":"https://api.github.com/repos/framgia/drs_2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/drs_2/downloads","issues_url":"https://api.github.com/repos/framgia/drs_2/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/drs_2/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/drs_2/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/drs_2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/drs_2/labels{/name}","releases_url":"https://api.github.com/repos/framgia/drs_2/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/drs_2/deployments","created_at":"2018-06-18T02:16:16Z","updated_at":"2018-06-28T02:52:38Z","pushed_at":"2018-06-28T04:22:03Z","git_url":"git://github.com/framgia/drs_2.git","ssh_url":"git@github.com:framgia/drs_2.git","clone_url":"https://github.com/framgia/drs_2.git","svn_url":"https://github.com/framgia/drs_2","homepage":null,"size":2046,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/drs_2/pulls/11"},"html":{"href":"https://github.com/framgia/drs_2/pull/11"},"issue":{"href":"https://api.github.com/repos/framgia/drs_2/issues/11"},"comments":{"href":"https://api.github.com/repos/framgia/drs_2/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/drs_2/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/drs_2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/drs_2/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/drs_2/statuses/275c8e6fa811132518b233c393982645391255a1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hystericall"}}