{"action":"closed","number":3159,"pull_request":{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/pulls/3159","id":193859990,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzODU5OTkw","html_url":"https://github.com/EC-CUBE/ec-cube/pull/3159","diff_url":"https://github.com/EC-CUBE/ec-cube/pull/3159.diff","patch_url":"https://github.com/EC-CUBE/ec-cube/pull/3159.patch","issue_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/3159","number":3159,"state":"closed","locked":false,"title":"[WIP]カートの永続化","user":{"login":"okazy","id":16895409,"node_id":"MDQ6VXNlcjE2ODk1NDA5","avatar_url":"https://avatars1.githubusercontent.com/u/16895409?v=4","gravatar_id":"","url":"https://api.github.com/users/okazy","html_url":"https://github.com/okazy","followers_url":"https://api.github.com/users/okazy/followers","following_url":"https://api.github.com/users/okazy/following{/other_user}","gists_url":"https://api.github.com/users/okazy/gists{/gist_id}","starred_url":"https://api.github.com/users/okazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okazy/subscriptions","organizations_url":"https://api.github.com/users/okazy/orgs","repos_url":"https://api.github.com/users/okazy/repos","events_url":"https://api.github.com/users/okazy/events{/privacy}","received_events_url":"https://api.github.com/users/okazy/received_events","type":"User","site_admin":false},"body":"## 概要(Overview・Refs Issue)\r\n+ Cart, CartItemをそれぞれdtb_cart, dtb_cart_itemに永続化させる。\r\n  - [x] カートをDBに保存できる\r\n  - [ ] DBからカートが復元できる\r\n  - [ ] 非会員から会員へのカート引き継ぎ\r\n  - [ ] 購入完了時にカート情報を削除する\r\n\r\n## 方針(Policy)\r\n\r\n## 実装に関する補足(Appendix)\r\n  - カートをDBに保存できる\r\n    - dtb_cart, dtb_cart_itemにそれぞれCart, CartItemを永続化させる\r\n    - CartにはcustomerIdとupdateDateを追加する\r\n    - カートの情報が変更されるたびに永続化する\r\n    - CartRepositoryの新規追加\r\n    - sessionは残っていていい\r\n    - CartServiceのsaveでpersist,flush\r\n    - 非会員も永続化する\r\n  - DBからカートが復元できる\r\n  - 非会員から会員へのカート引き継ぎ\r\n  - 購入完了時にカート情報を削除する\r\n\r\n## テスト（Test)\r\n+ Unitテストを追加\r\n\r\n## 相談（Discussion）\r\n+ \r\n\r\n## マイナーバージョン互換性保持のための制限事項チェックリスト\r\n+ 現在の変更だけでは問題があるのでWIPとしてPRを作成しています。\r\n","created_at":"2018-06-11T02:07:34Z","updated_at":"2018-06-12T11:53:18Z","closed_at":"2018-06-12T11:53:18Z","merged_at":"2018-06-12T11:53:18Z","merge_commit_sha":"0b3512cfc6b16078e0ebde069cc3b4b72b14d7c1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/EC-CUBE/ec-cube/pulls/3159/commits","review_comments_url":"https://api.github.com/repos/EC-CUBE/ec-cube/pulls/3159/comments","review_comment_url":"https://api.github.com/repos/EC-CUBE/ec-cube/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/3159/comments","statuses_url":"https://api.github.com/repos/EC-CUBE/ec-cube/statuses/0b3512cfc6b16078e0ebde069cc3b4b72b14d7c1","head":{"label":"okazy:parsistant-cart","ref":"parsistant-cart","sha":"0b3512cfc6b16078e0ebde069cc3b4b72b14d7c1","user":{"login":"okazy","id":16895409,"node_id":"MDQ6VXNlcjE2ODk1NDA5","avatar_url":"https://avatars1.githubusercontent.com/u/16895409?v=4","gravatar_id":"","url":"https://api.github.com/users/okazy","html_url":"https://github.com/okazy","followers_url":"https://api.github.com/users/okazy/followers","following_url":"https://api.github.com/users/okazy/following{/other_user}","gists_url":"https://api.github.com/users/okazy/gists{/gist_id}","starred_url":"https://api.github.com/users/okazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okazy/subscriptions","organizations_url":"https://api.github.com/users/okazy/orgs","repos_url":"https://api.github.com/users/okazy/repos","events_url":"https://api.github.com/users/okazy/events{/privacy}","received_events_url":"https://api.github.com/users/okazy/received_events","type":"User","site_admin":false},"repo":{"id":84297109,"node_id":"MDEwOlJlcG9zaXRvcnk4NDI5NzEwOQ==","name":"ec-cube","full_name":"okazy/ec-cube","owner":{"login":"okazy","id":16895409,"node_id":"MDQ6VXNlcjE2ODk1NDA5","avatar_url":"https://avatars1.githubusercontent.com/u/16895409?v=4","gravatar_id":"","url":"https://api.github.com/users/okazy","html_url":"https://github.com/okazy","followers_url":"https://api.github.com/users/okazy/followers","following_url":"https://api.github.com/users/okazy/following{/other_user}","gists_url":"https://api.github.com/users/okazy/gists{/gist_id}","starred_url":"https://api.github.com/users/okazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okazy/subscriptions","organizations_url":"https://api.github.com/users/okazy/orgs","repos_url":"https://api.github.com/users/okazy/repos","events_url":"https://api.github.com/users/okazy/events{/privacy}","received_events_url":"https://api.github.com/users/okazy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/okazy/ec-cube","description":"EC-CUBE is the most popular e-commerce solution in Japan","fork":true,"url":"https://api.github.com/repos/okazy/ec-cube","forks_url":"https://api.github.com/repos/okazy/ec-cube/forks","keys_url":"https://api.github.com/repos/okazy/ec-cube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okazy/ec-cube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okazy/ec-cube/teams","hooks_url":"https://api.github.com/repos/okazy/ec-cube/hooks","issue_events_url":"https://api.github.com/repos/okazy/ec-cube/issues/events{/number}","events_url":"https://api.github.com/repos/okazy/ec-cube/events","assignees_url":"https://api.github.com/repos/okazy/ec-cube/assignees{/user}","branches_url":"https://api.github.com/repos/okazy/ec-cube/branches{/branch}","tags_url":"https://api.github.com/repos/okazy/ec-cube/tags","blobs_url":"https://api.github.com/repos/okazy/ec-cube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okazy/ec-cube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okazy/ec-cube/git/refs{/sha}","trees_url":"https://api.github.com/repos/okazy/ec-cube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okazy/ec-cube/statuses/{sha}","languages_url":"https://api.github.com/repos/okazy/ec-cube/languages","stargazers_url":"https://api.github.com/repos/okazy/ec-cube/stargazers","contributors_url":"https://api.github.com/repos/okazy/ec-cube/contributors","subscribers_url":"https://api.github.com/repos/okazy/ec-cube/subscribers","subscription_url":"https://api.github.com/repos/okazy/ec-cube/subscription","commits_url":"https://api.github.com/repos/okazy/ec-cube/commits{/sha}","git_commits_url":"https://api.github.com/repos/okazy/ec-cube/git/commits{/sha}","comments_url":"https://api.github.com/repos/okazy/ec-cube/comments{/number}","issue_comment_url":"https://api.github.com/repos/okazy/ec-cube/issues/comments{/number}","contents_url":"https://api.github.com/repos/okazy/ec-cube/contents/{+path}","compare_url":"https://api.github.com/repos/okazy/ec-cube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okazy/ec-cube/merges","archive_url":"https://api.github.com/repos/okazy/ec-cube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okazy/ec-cube/downloads","issues_url":"https://api.github.com/repos/okazy/ec-cube/issues{/number}","pulls_url":"https://api.github.com/repos/okazy/ec-cube/pulls{/number}","milestones_url":"https://api.github.com/repos/okazy/ec-cube/milestones{/number}","notifications_url":"https://api.github.com/repos/okazy/ec-cube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okazy/ec-cube/labels{/name}","releases_url":"https://api.github.com/repos/okazy/ec-cube/releases{/id}","deployments_url":"https://api.github.com/repos/okazy/ec-cube/deployments","created_at":"2017-03-08T08:30:16Z","updated_at":"2017-03-08T08:30:20Z","pushed_at":"2018-06-12T05:40:37Z","git_url":"git://github.com/okazy/ec-cube.git","ssh_url":"git@github.com:okazy/ec-cube.git","clone_url":"https://github.com/okazy/ec-cube.git","svn_url":"https://github.com/okazy/ec-cube","homepage":"http://www.ec-cube.net","size":92229,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":1,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"EC-CUBE:experimental/sf","ref":"experimental/sf","sha":"b2a47ba7eb30d43fe4c0194cef8b2d34aeef7b54","user":{"login":"EC-CUBE","id":7763650,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3NjM2NTA=","avatar_url":"https://avatars1.githubusercontent.com/u/7763650?v=4","gravatar_id":"","url":"https://api.github.com/users/EC-CUBE","html_url":"https://github.com/EC-CUBE","followers_url":"https://api.github.com/users/EC-CUBE/followers","following_url":"https://api.github.com/users/EC-CUBE/following{/other_user}","gists_url":"https://api.github.com/users/EC-CUBE/gists{/gist_id}","starred_url":"https://api.github.com/users/EC-CUBE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EC-CUBE/subscriptions","organizations_url":"https://api.github.com/users/EC-CUBE/orgs","repos_url":"https://api.github.com/users/EC-CUBE/repos","events_url":"https://api.github.com/users/EC-CUBE/events{/privacy}","received_events_url":"https://api.github.com/users/EC-CUBE/received_events","type":"Organization","site_admin":false},"repo":{"id":27249479,"node_id":"MDEwOlJlcG9zaXRvcnkyNzI0OTQ3OQ==","name":"ec-cube","full_name":"EC-CUBE/ec-cube","owner":{"login":"EC-CUBE","id":7763650,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3NjM2NTA=","avatar_url":"https://avatars1.githubusercontent.com/u/7763650?v=4","gravatar_id":"","url":"https://api.github.com/users/EC-CUBE","html_url":"https://github.com/EC-CUBE","followers_url":"https://api.github.com/users/EC-CUBE/followers","following_url":"https://api.github.com/users/EC-CUBE/following{/other_user}","gists_url":"https://api.github.com/users/EC-CUBE/gists{/gist_id}","starred_url":"https://api.github.com/users/EC-CUBE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EC-CUBE/subscriptions","organizations_url":"https://api.github.com/users/EC-CUBE/orgs","repos_url":"https://api.github.com/users/EC-CUBE/repos","events_url":"https://api.github.com/users/EC-CUBE/events{/privacy}","received_events_url":"https://api.github.com/users/EC-CUBE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EC-CUBE/ec-cube","description":"EC-CUBE is the most popular e-commerce solution in Japan","fork":false,"url":"https://api.github.com/repos/EC-CUBE/ec-cube","forks_url":"https://api.github.com/repos/EC-CUBE/ec-cube/forks","keys_url":"https://api.github.com/repos/EC-CUBE/ec-cube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EC-CUBE/ec-cube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EC-CUBE/ec-cube/teams","hooks_url":"https://api.github.com/repos/EC-CUBE/ec-cube/hooks","issue_events_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/events{/number}","events_url":"https://api.github.com/repos/EC-CUBE/ec-cube/events","assignees_url":"https://api.github.com/repos/EC-CUBE/ec-cube/assignees{/user}","branches_url":"https://api.github.com/repos/EC-CUBE/ec-cube/branches{/branch}","tags_url":"https://api.github.com/repos/EC-CUBE/ec-cube/tags","blobs_url":"https://api.github.com/repos/EC-CUBE/ec-cube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EC-CUBE/ec-cube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EC-CUBE/ec-cube/git/refs{/sha}","trees_url":"https://api.github.com/repos/EC-CUBE/ec-cube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EC-CUBE/ec-cube/statuses/{sha}","languages_url":"https://api.github.com/repos/EC-CUBE/ec-cube/languages","stargazers_url":"https://api.github.com/repos/EC-CUBE/ec-cube/stargazers","contributors_url":"https://api.github.com/repos/EC-CUBE/ec-cube/contributors","subscribers_url":"https://api.github.com/repos/EC-CUBE/ec-cube/subscribers","subscription_url":"https://api.github.com/repos/EC-CUBE/ec-cube/subscription","commits_url":"https://api.github.com/repos/EC-CUBE/ec-cube/commits{/sha}","git_commits_url":"https://api.github.com/repos/EC-CUBE/ec-cube/git/commits{/sha}","comments_url":"https://api.github.com/repos/EC-CUBE/ec-cube/comments{/number}","issue_comment_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/comments{/number}","contents_url":"https://api.github.com/repos/EC-CUBE/ec-cube/contents/{+path}","compare_url":"https://api.github.com/repos/EC-CUBE/ec-cube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EC-CUBE/ec-cube/merges","archive_url":"https://api.github.com/repos/EC-CUBE/ec-cube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EC-CUBE/ec-cube/downloads","issues_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues{/number}","pulls_url":"https://api.github.com/repos/EC-CUBE/ec-cube/pulls{/number}","milestones_url":"https://api.github.com/repos/EC-CUBE/ec-cube/milestones{/number}","notifications_url":"https://api.github.com/repos/EC-CUBE/ec-cube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EC-CUBE/ec-cube/labels{/name}","releases_url":"https://api.github.com/repos/EC-CUBE/ec-cube/releases{/id}","deployments_url":"https://api.github.com/repos/EC-CUBE/ec-cube/deployments","created_at":"2014-11-28T02:58:26Z","updated_at":"2018-06-04T04:51:01Z","pushed_at":"2018-06-12T11:53:15Z","git_url":"git://github.com/EC-CUBE/ec-cube.git","ssh_url":"git@github.com:EC-CUBE/ec-cube.git","clone_url":"https://github.com/EC-CUBE/ec-cube.git","svn_url":"https://github.com/EC-CUBE/ec-cube","homepage":"http://www.ec-cube.net","size":114631,"stargazers_count":370,"watchers_count":370,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":307,"mirror_url":null,"archived":false,"open_issues_count":319,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":307,"open_issues":319,"watchers":370,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EC-CUBE/ec-cube/pulls/3159"},"html":{"href":"https://github.com/EC-CUBE/ec-cube/pull/3159"},"issue":{"href":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/3159"},"comments":{"href":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/3159/comments"},"review_comments":{"href":"https://api.github.com/repos/EC-CUBE/ec-cube/pulls/3159/comments"},"review_comment":{"href":"https://api.github.com/repos/EC-CUBE/ec-cube/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EC-CUBE/ec-cube/pulls/3159/commits"},"statuses":{"href":"https://api.github.com/repos/EC-CUBE/ec-cube/statuses/0b3512cfc6b16078e0ebde069cc3b4b72b14d7c1"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"okazy","id":16895409,"node_id":"MDQ6VXNlcjE2ODk1NDA5","avatar_url":"https://avatars1.githubusercontent.com/u/16895409?v=4","gravatar_id":"","url":"https://api.github.com/users/okazy","html_url":"https://github.com/okazy","followers_url":"https://api.github.com/users/okazy/followers","following_url":"https://api.github.com/users/okazy/following{/other_user}","gists_url":"https://api.github.com/users/okazy/gists{/gist_id}","starred_url":"https://api.github.com/users/okazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okazy/subscriptions","organizations_url":"https://api.github.com/users/okazy/orgs","repos_url":"https://api.github.com/users/okazy/repos","events_url":"https://api.github.com/users/okazy/events{/privacy}","received_events_url":"https://api.github.com/users/okazy/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":18,"additions":487,"deletions":68,"changed_files":9}}
{"actor":{"display_login":"okazy"}}