{"action":"created","issue":{"url":"https://api.github.com/repos/MotohiroShiobara/FinalProject/issues/26","repository_url":"https://api.github.com/repos/MotohiroShiobara/FinalProject","labels_url":"https://api.github.com/repos/MotohiroShiobara/FinalProject/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/MotohiroShiobara/FinalProject/issues/26/comments","events_url":"https://api.github.com/repos/MotohiroShiobara/FinalProject/issues/26/events","html_url":"https://github.com/MotohiroShiobara/FinalProject/pull/26","id":340850344,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxMTY1NjQ4","number":26,"title":"7/13 プルリクエスト","user":{"login":"MotohiroShiobara","id":38315670,"node_id":"MDQ6VXNlcjM4MzE1Njcw","avatar_url":"https://avatars3.githubusercontent.com/u/38315670?v=4","gravatar_id":"","url":"https://api.github.com/users/MotohiroShiobara","html_url":"https://github.com/MotohiroShiobara","followers_url":"https://api.github.com/users/MotohiroShiobara/followers","following_url":"https://api.github.com/users/MotohiroShiobara/following{/other_user}","gists_url":"https://api.github.com/users/MotohiroShiobara/gists{/gist_id}","starred_url":"https://api.github.com/users/MotohiroShiobara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MotohiroShiobara/subscriptions","organizations_url":"https://api.github.com/users/MotohiroShiobara/orgs","repos_url":"https://api.github.com/users/MotohiroShiobara/repos","events_url":"https://api.github.com/users/MotohiroShiobara/events{/privacy}","received_events_url":"https://api.github.com/users/MotohiroShiobara/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-13T01:27:33Z","updated_at":"2018-07-13T06:29:19Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/MotohiroShiobara/FinalProject/pulls/26","html_url":"https://github.com/MotohiroShiobara/FinalProject/pull/26","diff_url":"https://github.com/MotohiroShiobara/FinalProject/pull/26.diff","patch_url":"https://github.com/MotohiroShiobara/FinalProject/pull/26.patch"},"body":"# TODO\r\n- [ ] マークアップの微調整\r\n- [ ] リファクタリング\r\n- [ ] コントローラーの共通化\r\n- [ ] テストケースの作成\r\n- [ ] SSL化\r\n- [x] trendページの記事ユーザー名・投稿日\r\n\r\ndomainモデル\r\nArticleを作成\r\n必要なデータを持たせる\r\ndata class Article (\r\n  id, title, userName, datetime\r\n)\r\n\r\nentitiy\r\n\r\nlistで返ってくる値をドメインクラスにしたい\r\n=> \r\n\r\n## Userページ\r\n- [ ] articleのリストをlimitをかけて取得できるようにする\r\nlimitとoffsetを持てるように\r\n- [ ] ページネーション機能の実装\r\n- [ ] 画像サイズの調整\r\nプロフ 240 x 240\r\n記事 48 x 48"},"comment":{"url":"https://api.github.com/repos/MotohiroShiobara/FinalProject/issues/comments/404739347","html_url":"https://github.com/MotohiroShiobara/FinalProject/pull/26#issuecomment-404739347","issue_url":"https://api.github.com/repos/MotohiroShiobara/FinalProject/issues/26","id":404739347,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDczOTM0Nw==","user":{"login":"MotohiroShiobara","id":38315670,"node_id":"MDQ6VXNlcjM4MzE1Njcw","avatar_url":"https://avatars3.githubusercontent.com/u/38315670?v=4","gravatar_id":"","url":"https://api.github.com/users/MotohiroShiobara","html_url":"https://github.com/MotohiroShiobara","followers_url":"https://api.github.com/users/MotohiroShiobara/followers","following_url":"https://api.github.com/users/MotohiroShiobara/following{/other_user}","gists_url":"https://api.github.com/users/MotohiroShiobara/gists{/gist_id}","starred_url":"https://api.github.com/users/MotohiroShiobara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MotohiroShiobara/subscriptions","organizations_url":"https://api.github.com/users/MotohiroShiobara/orgs","repos_url":"https://api.github.com/users/MotohiroShiobara/repos","events_url":"https://api.github.com/users/MotohiroShiobara/events{/privacy}","received_events_url":"https://api.github.com/users/MotohiroShiobara/received_events","type":"User","site_admin":false},"created_at":"2018-07-13T06:29:19Z","updated_at":"2018-07-13T06:29:19Z","author_association":"OWNER","body":"# Pageネーションの実装\r\n今のページをparams pageで判断する\r\n今のpage -1 + 4表示する\r\npage == 1 もしくはない場合\r\npage 5まで表示\r\nそれ以外はpage == -1 + 4表示する\r\n\r\nコンテンツの数に応じて表示するpageネーションの数が変わる\r\n\r\n# 方針\r\n\r\n# テストケース\r\n- [ ] 指定がない場合はデフォルトで15件表示する\r\n- [ ] 1ページ目の場合は1~5まで表示する\r\n- [ ] 2ページ目以降の場合は(現在のページ - 1)~(現在のページ + 4)を表示する\r\n- [ ] コンテンツの数に応じて表示できる最大のページ数が決まる\r\n例えば1ページ15件の場合、コンテンツ数が60であれば4ページ目までしか表示できない\r\n`fun obtainPageList(currentPage: Int, contentsCount: Int, pagePerCount: Int)`\r\nmaxページを判定する\r\nmaxページよりも超えていればmaxページまで表示する"}}
{"actor":{"display_login":"MotohiroShiobara"}}