{"action":"closed","number":143,"pull_request":{"url":"https://api.github.com/repos/Fablic/training/pulls/143","id":202435491,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyNDM1NDkx","html_url":"https://github.com/Fablic/training/pull/143","diff_url":"https://github.com/Fablic/training/pull/143.diff","patch_url":"https://github.com/Fablic/training/pull/143.patch","issue_url":"https://api.github.com/repos/Fablic/training/issues/143","number":143,"state":"closed","locked":false,"title":"【宮崎】ステップ12　ステータスカラム、検索機能の追加","user":{"login":"ysk1180","id":34002043,"node_id":"MDQ6VXNlcjM0MDAyMDQz","avatar_url":"https://avatars1.githubusercontent.com/u/34002043?v=4","gravatar_id":"","url":"https://api.github.com/users/ysk1180","html_url":"https://github.com/ysk1180","followers_url":"https://api.github.com/users/ysk1180/followers","following_url":"https://api.github.com/users/ysk1180/following{/other_user}","gists_url":"https://api.github.com/users/ysk1180/gists{/gist_id}","starred_url":"https://api.github.com/users/ysk1180/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysk1180/subscriptions","organizations_url":"https://api.github.com/users/ysk1180/orgs","repos_url":"https://api.github.com/users/ysk1180/repos","events_url":"https://api.github.com/users/ysk1180/events{/privacy}","received_events_url":"https://api.github.com/users/ysk1180/received_events","type":"User","site_admin":false},"body":"# ステップ12: ステータスを追加して、検索できるようにしよう\r\n- ステータス（未着手・着手中・完了）を追加してみよう\r\n  - 【オプション要件】初学者ではない場合はstateを管理するGemを導入しても構いません\r\n- 一覧画面でタイトルとステータスで検索ができるようにしよう\r\n  - 【オプション要件】初学者ではない場合はransackなどの検索の実装を便利にするGemを導入しても構いません\r\n- 絞り込んだ際、ログを見て発行されるSQLの変化を確認してみましょう\r\n  - 以降のステップでも必要に応じて確認する癖をつけましょう\r\n- 検索インデックスを貼りましょう\r\n- 検索に対してmodel specを追加してみよう（feature specも拡充しておきましょう）\r\n# 行ったこと\r\n- タスクテーブルにステータスカラムの追加（enum型）（stateを管理するGemは導入せず）\r\n- タスク一覧画面でタスク名・ステータスで検索できる機能の追加（ransackなどのgemは導入せず）\r\n  - 検索した後に終了期限でソートすると検索結果は消えてソート結果が出力されます、、\r\n- ログで発行されたSQLの確認\r\n- ステータスカラムにインデックス貼付（タスク名は前方一致ではないため貼付せず）\r\n- コントローラに記載していたタスクの検索・ソートロジックをモデルに移植\r\n- モデルスペック、フィーチャスペックを作成","created_at":"2018-07-19T03:25:34Z","updated_at":"2018-07-20T06:47:36Z","closed_at":"2018-07-20T06:47:35Z","merged_at":"2018-07-20T06:47:35Z","merge_commit_sha":"7c196f1b89728d3cb77607988e24c71fa6ea6acb","assignee":{"login":"ysk1180","id":34002043,"node_id":"MDQ6VXNlcjM0MDAyMDQz","avatar_url":"https://avatars1.githubusercontent.com/u/34002043?v=4","gravatar_id":"","url":"https://api.github.com/users/ysk1180","html_url":"https://github.com/ysk1180","followers_url":"https://api.github.com/users/ysk1180/followers","following_url":"https://api.github.com/users/ysk1180/following{/other_user}","gists_url":"https://api.github.com/users/ysk1180/gists{/gist_id}","starred_url":"https://api.github.com/users/ysk1180/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysk1180/subscriptions","organizations_url":"https://api.github.com/users/ysk1180/orgs","repos_url":"https://api.github.com/users/ysk1180/repos","events_url":"https://api.github.com/users/ysk1180/events{/privacy}","received_events_url":"https://api.github.com/users/ysk1180/received_events","type":"User","site_admin":false},"assignees":[{"login":"ysk1180","id":34002043,"node_id":"MDQ6VXNlcjM0MDAyMDQz","avatar_url":"https://avatars1.githubusercontent.com/u/34002043?v=4","gravatar_id":"","url":"https://api.github.com/users/ysk1180","html_url":"https://github.com/ysk1180","followers_url":"https://api.github.com/users/ysk1180/followers","following_url":"https://api.github.com/users/ysk1180/following{/other_user}","gists_url":"https://api.github.com/users/ysk1180/gists{/gist_id}","starred_url":"https://api.github.com/users/ysk1180/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysk1180/subscriptions","organizations_url":"https://api.github.com/users/ysk1180/orgs","repos_url":"https://api.github.com/users/ysk1180/repos","events_url":"https://api.github.com/users/ysk1180/events{/privacy}","received_events_url":"https://api.github.com/users/ysk1180/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Fablic/training/pulls/143/commits","review_comments_url":"https://api.github.com/repos/Fablic/training/pulls/143/comments","review_comment_url":"https://api.github.com/repos/Fablic/training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Fablic/training/issues/143/comments","statuses_url":"https://api.github.com/repos/Fablic/training/statuses/1a8dbb68891380316198fa2754604596fbeefba6","head":{"label":"Fablic:miyazaki-step12-add-status","ref":"miyazaki-step12-add-status","sha":"1a8dbb68891380316198fa2754604596fbeefba6","user":{"login":"Fablic","id":2552314,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NTIzMTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2552314?v=4","gravatar_id":"","url":"https://api.github.com/users/Fablic","html_url":"https://github.com/Fablic","followers_url":"https://api.github.com/users/Fablic/followers","following_url":"https://api.github.com/users/Fablic/following{/other_user}","gists_url":"https://api.github.com/users/Fablic/gists{/gist_id}","starred_url":"https://api.github.com/users/Fablic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fablic/subscriptions","organizations_url":"https://api.github.com/users/Fablic/orgs","repos_url":"https://api.github.com/users/Fablic/repos","events_url":"https://api.github.com/users/Fablic/events{/privacy}","received_events_url":"https://api.github.com/users/Fablic/received_events","type":"Organization","site_admin":false},"repo":{"id":112158106,"node_id":"MDEwOlJlcG9zaXRvcnkxMTIxNTgxMDY=","name":"training","full_name":"Fablic/training","owner":{"login":"Fablic","id":2552314,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NTIzMTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2552314?v=4","gravatar_id":"","url":"https://api.github.com/users/Fablic","html_url":"https://github.com/Fablic","followers_url":"https://api.github.com/users/Fablic/followers","following_url":"https://api.github.com/users/Fablic/following{/other_user}","gists_url":"https://api.github.com/users/Fablic/gists{/gist_id}","starred_url":"https://api.github.com/users/Fablic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fablic/subscriptions","organizations_url":"https://api.github.com/users/Fablic/orgs","repos_url":"https://api.github.com/users/Fablic/repos","events_url":"https://api.github.com/users/Fablic/events{/privacy}","received_events_url":"https://api.github.com/users/Fablic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Fablic/training","description":"株式会社Fablicの新入社員教育用カリキュラム","fork":true,"url":"https://api.github.com/repos/Fablic/training","forks_url":"https://api.github.com/repos/Fablic/training/forks","keys_url":"https://api.github.com/repos/Fablic/training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fablic/training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fablic/training/teams","hooks_url":"https://api.github.com/repos/Fablic/training/hooks","issue_events_url":"https://api.github.com/repos/Fablic/training/issues/events{/number}","events_url":"https://api.github.com/repos/Fablic/training/events","assignees_url":"https://api.github.com/repos/Fablic/training/assignees{/user}","branches_url":"https://api.github.com/repos/Fablic/training/branches{/branch}","tags_url":"https://api.github.com/repos/Fablic/training/tags","blobs_url":"https://api.github.com/repos/Fablic/training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fablic/training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fablic/training/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fablic/training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fablic/training/statuses/{sha}","languages_url":"https://api.github.com/repos/Fablic/training/languages","stargazers_url":"https://api.github.com/repos/Fablic/training/stargazers","contributors_url":"https://api.github.com/repos/Fablic/training/contributors","subscribers_url":"https://api.github.com/repos/Fablic/training/subscribers","subscription_url":"https://api.github.com/repos/Fablic/training/subscription","commits_url":"https://api.github.com/repos/Fablic/training/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fablic/training/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fablic/training/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fablic/training/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fablic/training/contents/{+path}","compare_url":"https://api.github.com/repos/Fablic/training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fablic/training/merges","archive_url":"https://api.github.com/repos/Fablic/training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fablic/training/downloads","issues_url":"https://api.github.com/repos/Fablic/training/issues{/number}","pulls_url":"https://api.github.com/repos/Fablic/training/pulls{/number}","milestones_url":"https://api.github.com/repos/Fablic/training/milestones{/number}","notifications_url":"https://api.github.com/repos/Fablic/training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fablic/training/labels{/name}","releases_url":"https://api.github.com/repos/Fablic/training/releases{/id}","deployments_url":"https://api.github.com/repos/Fablic/training/deployments","created_at":"2017-11-27T06:40:26Z","updated_at":"2018-03-13T02:20:10Z","pushed_at":"2018-07-20T06:47:35Z","git_url":"git://github.com/Fablic/training.git","ssh_url":"git@github.com:Fablic/training.git","clone_url":"https://github.com/Fablic/training.git","svn_url":"https://github.com/Fablic/training","homepage":"","size":25027,"stargazers_count":0,"watchers_count":0,"language":null,"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":"master"}},"base":{"label":"Fablic:yusuke_miyazaki","ref":"yusuke_miyazaki","sha":"de843f12e47ba6947aaa9b5813edcf3af3cda2cb","user":{"login":"Fablic","id":2552314,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NTIzMTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2552314?v=4","gravatar_id":"","url":"https://api.github.com/users/Fablic","html_url":"https://github.com/Fablic","followers_url":"https://api.github.com/users/Fablic/followers","following_url":"https://api.github.com/users/Fablic/following{/other_user}","gists_url":"https://api.github.com/users/Fablic/gists{/gist_id}","starred_url":"https://api.github.com/users/Fablic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fablic/subscriptions","organizations_url":"https://api.github.com/users/Fablic/orgs","repos_url":"https://api.github.com/users/Fablic/repos","events_url":"https://api.github.com/users/Fablic/events{/privacy}","received_events_url":"https://api.github.com/users/Fablic/received_events","type":"Organization","site_admin":false},"repo":{"id":112158106,"node_id":"MDEwOlJlcG9zaXRvcnkxMTIxNTgxMDY=","name":"training","full_name":"Fablic/training","owner":{"login":"Fablic","id":2552314,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NTIzMTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2552314?v=4","gravatar_id":"","url":"https://api.github.com/users/Fablic","html_url":"https://github.com/Fablic","followers_url":"https://api.github.com/users/Fablic/followers","following_url":"https://api.github.com/users/Fablic/following{/other_user}","gists_url":"https://api.github.com/users/Fablic/gists{/gist_id}","starred_url":"https://api.github.com/users/Fablic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fablic/subscriptions","organizations_url":"https://api.github.com/users/Fablic/orgs","repos_url":"https://api.github.com/users/Fablic/repos","events_url":"https://api.github.com/users/Fablic/events{/privacy}","received_events_url":"https://api.github.com/users/Fablic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Fablic/training","description":"株式会社Fablicの新入社員教育用カリキュラム","fork":true,"url":"https://api.github.com/repos/Fablic/training","forks_url":"https://api.github.com/repos/Fablic/training/forks","keys_url":"https://api.github.com/repos/Fablic/training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fablic/training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fablic/training/teams","hooks_url":"https://api.github.com/repos/Fablic/training/hooks","issue_events_url":"https://api.github.com/repos/Fablic/training/issues/events{/number}","events_url":"https://api.github.com/repos/Fablic/training/events","assignees_url":"https://api.github.com/repos/Fablic/training/assignees{/user}","branches_url":"https://api.github.com/repos/Fablic/training/branches{/branch}","tags_url":"https://api.github.com/repos/Fablic/training/tags","blobs_url":"https://api.github.com/repos/Fablic/training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fablic/training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fablic/training/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fablic/training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fablic/training/statuses/{sha}","languages_url":"https://api.github.com/repos/Fablic/training/languages","stargazers_url":"https://api.github.com/repos/Fablic/training/stargazers","contributors_url":"https://api.github.com/repos/Fablic/training/contributors","subscribers_url":"https://api.github.com/repos/Fablic/training/subscribers","subscription_url":"https://api.github.com/repos/Fablic/training/subscription","commits_url":"https://api.github.com/repos/Fablic/training/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fablic/training/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fablic/training/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fablic/training/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fablic/training/contents/{+path}","compare_url":"https://api.github.com/repos/Fablic/training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fablic/training/merges","archive_url":"https://api.github.com/repos/Fablic/training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fablic/training/downloads","issues_url":"https://api.github.com/repos/Fablic/training/issues{/number}","pulls_url":"https://api.github.com/repos/Fablic/training/pulls{/number}","milestones_url":"https://api.github.com/repos/Fablic/training/milestones{/number}","notifications_url":"https://api.github.com/repos/Fablic/training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fablic/training/labels{/name}","releases_url":"https://api.github.com/repos/Fablic/training/releases{/id}","deployments_url":"https://api.github.com/repos/Fablic/training/deployments","created_at":"2017-11-27T06:40:26Z","updated_at":"2018-03-13T02:20:10Z","pushed_at":"2018-07-20T06:47:35Z","git_url":"git://github.com/Fablic/training.git","ssh_url":"git@github.com:Fablic/training.git","clone_url":"https://github.com/Fablic/training.git","svn_url":"https://github.com/Fablic/training","homepage":"","size":25027,"stargazers_count":0,"watchers_count":0,"language":null,"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":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Fablic/training/pulls/143"},"html":{"href":"https://github.com/Fablic/training/pull/143"},"issue":{"href":"https://api.github.com/repos/Fablic/training/issues/143"},"comments":{"href":"https://api.github.com/repos/Fablic/training/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/Fablic/training/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/Fablic/training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Fablic/training/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/Fablic/training/statuses/1a8dbb68891380316198fa2754604596fbeefba6"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"ysk1180","id":34002043,"node_id":"MDQ6VXNlcjM0MDAyMDQz","avatar_url":"https://avatars1.githubusercontent.com/u/34002043?v=4","gravatar_id":"","url":"https://api.github.com/users/ysk1180","html_url":"https://github.com/ysk1180","followers_url":"https://api.github.com/users/ysk1180/followers","following_url":"https://api.github.com/users/ysk1180/following{/other_user}","gists_url":"https://api.github.com/users/ysk1180/gists{/gist_id}","starred_url":"https://api.github.com/users/ysk1180/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysk1180/subscriptions","organizations_url":"https://api.github.com/users/ysk1180/orgs","repos_url":"https://api.github.com/users/ysk1180/repos","events_url":"https://api.github.com/users/ysk1180/events{/privacy}","received_events_url":"https://api.github.com/users/ysk1180/received_events","type":"User","site_admin":false},"comments":1,"review_comments":11,"maintainer_can_modify":false,"commits":15,"additions":114,"deletions":29,"changed_files":14}}
{"actor":{"display_login":"ysk1180"}}