{"action":"opened","number":122,"pull_request":{"url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/pulls/122","id":121721545,"html_url":"https://github.com/bleroy/Nwazet.Commerce/pull/122","diff_url":"https://github.com/bleroy/Nwazet.Commerce/pull/122.diff","patch_url":"https://github.com/bleroy/Nwazet.Commerce/pull/122.patch","issue_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/issues/122","number":122,"state":"open","locked":false,"title":"Carts and wishlists","user":{"login":"MatteoPiovanelli-Laser","id":19283945,"avatar_url":"https://avatars2.githubusercontent.com/u/19283945?v=3","gravatar_id":"","url":"https://api.github.com/users/MatteoPiovanelli-Laser","html_url":"https://github.com/MatteoPiovanelli-Laser","followers_url":"https://api.github.com/users/MatteoPiovanelli-Laser/followers","following_url":"https://api.github.com/users/MatteoPiovanelli-Laser/following{/other_user}","gists_url":"https://api.github.com/users/MatteoPiovanelli-Laser/gists{/gist_id}","starred_url":"https://api.github.com/users/MatteoPiovanelli-Laser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatteoPiovanelli-Laser/subscriptions","organizations_url":"https://api.github.com/users/MatteoPiovanelli-Laser/orgs","repos_url":"https://api.github.com/users/MatteoPiovanelli-Laser/repos","events_url":"https://api.github.com/users/MatteoPiovanelli-Laser/events{/privacy}","received_events_url":"https://api.github.com/users/MatteoPiovanelli-Laser/received_events","type":"User","site_admin":false},"body":"Work on #117 \r\nThis PR contains the first portion of the work related to persistent carts and wishlists.\r\n\r\nThere is no wishlist functionality yet.\r\n\r\nthe ShoppingCart is treated as a content type with a ProductsListPart to store an authenticated user's cart in the item's infoset.\r\n\r\nIf a user already has a cart, we do not create a new one.\r\n\r\nIf a user is not logged in, their cart is stored as it was, using local storage and session storage.Once the user logs in, whatever they had in their carts gets merged into the persistent cart, and session and local storage are kept empty as long as the user is logged in.\r\nTo keep the local storage clear, I had to change the shoppingcart.js scripts a bit. Note that I did not change the minified version yet\r\n\r\nBesides handling the peculiarity of login/logout scenarios, the cart works normally: items can be added/removed/updated, the cart is emptied on checkout and so on.\r\n\r\nNOw I'll get to implementing the functionality of wishlists.","created_at":"2017-05-22T08:19:57Z","updated_at":"2017-05-22T08:19:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/pulls/122/commits","review_comments_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/pulls/122/comments","review_comment_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/issues/122/comments","statuses_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/statuses/dbb96580b0ec2150800c7803f984bc94bb00da5a","head":{"label":"LaserSrl:Enhancements/PersistentCarts_PR","ref":"Enhancements/PersistentCarts_PR","sha":"dbb96580b0ec2150800c7803f984bc94bb00da5a","user":{"login":"LaserSrl","id":13333718,"avatar_url":"https://avatars2.githubusercontent.com/u/13333718?v=3","gravatar_id":"","url":"https://api.github.com/users/LaserSrl","html_url":"https://github.com/LaserSrl","followers_url":"https://api.github.com/users/LaserSrl/followers","following_url":"https://api.github.com/users/LaserSrl/following{/other_user}","gists_url":"https://api.github.com/users/LaserSrl/gists{/gist_id}","starred_url":"https://api.github.com/users/LaserSrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaserSrl/subscriptions","organizations_url":"https://api.github.com/users/LaserSrl/orgs","repos_url":"https://api.github.com/users/LaserSrl/repos","events_url":"https://api.github.com/users/LaserSrl/events{/privacy}","received_events_url":"https://api.github.com/users/LaserSrl/received_events","type":"Organization","site_admin":false},"repo":{"id":84430055,"name":"Nwazet.Commerce","full_name":"LaserSrl/Nwazet.Commerce","owner":{"login":"LaserSrl","id":13333718,"avatar_url":"https://avatars2.githubusercontent.com/u/13333718?v=3","gravatar_id":"","url":"https://api.github.com/users/LaserSrl","html_url":"https://github.com/LaserSrl","followers_url":"https://api.github.com/users/LaserSrl/followers","following_url":"https://api.github.com/users/LaserSrl/following{/other_user}","gists_url":"https://api.github.com/users/LaserSrl/gists{/gist_id}","starred_url":"https://api.github.com/users/LaserSrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaserSrl/subscriptions","organizations_url":"https://api.github.com/users/LaserSrl/orgs","repos_url":"https://api.github.com/users/LaserSrl/repos","events_url":"https://api.github.com/users/LaserSrl/events{/privacy}","received_events_url":"https://api.github.com/users/LaserSrl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LaserSrl/Nwazet.Commerce","description":"Idiomatic commerce module for Orchard CMS.","fork":true,"url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce","forks_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/forks","keys_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/teams","hooks_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/hooks","issue_events_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/issues/events{/number}","events_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/events","assignees_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/assignees{/user}","branches_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/branches{/branch}","tags_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/tags","blobs_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/statuses/{sha}","languages_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/languages","stargazers_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/stargazers","contributors_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/contributors","subscribers_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/subscribers","subscription_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/subscription","commits_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/contents/{+path}","compare_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/merges","archive_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/downloads","issues_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/issues{/number}","pulls_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/pulls{/number}","milestones_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/milestones{/number}","notifications_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/labels{/name}","releases_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/releases{/id}","deployments_url":"https://api.github.com/repos/LaserSrl/Nwazet.Commerce/deployments","created_at":"2017-03-09T10:36:32Z","updated_at":"2017-03-09T10:36:34Z","pushed_at":"2017-05-22T08:11:22Z","git_url":"git://github.com/LaserSrl/Nwazet.Commerce.git","ssh_url":"git@github.com:LaserSrl/Nwazet.Commerce.git","clone_url":"https://github.com/LaserSrl/Nwazet.Commerce.git","svn_url":"https://github.com/LaserSrl/Nwazet.Commerce","homepage":null,"size":2314,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bleroy:master","ref":"master","sha":"f07addd75da31ba21cb5cd0ce891b7103e146247","user":{"login":"bleroy","id":1165609,"avatar_url":"https://avatars3.githubusercontent.com/u/1165609?v=3","gravatar_id":"","url":"https://api.github.com/users/bleroy","html_url":"https://github.com/bleroy","followers_url":"https://api.github.com/users/bleroy/followers","following_url":"https://api.github.com/users/bleroy/following{/other_user}","gists_url":"https://api.github.com/users/bleroy/gists{/gist_id}","starred_url":"https://api.github.com/users/bleroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleroy/subscriptions","organizations_url":"https://api.github.com/users/bleroy/orgs","repos_url":"https://api.github.com/users/bleroy/repos","events_url":"https://api.github.com/users/bleroy/events{/privacy}","received_events_url":"https://api.github.com/users/bleroy/received_events","type":"User","site_admin":false},"repo":{"id":52814892,"name":"Nwazet.Commerce","full_name":"bleroy/Nwazet.Commerce","owner":{"login":"bleroy","id":1165609,"avatar_url":"https://avatars3.githubusercontent.com/u/1165609?v=3","gravatar_id":"","url":"https://api.github.com/users/bleroy","html_url":"https://github.com/bleroy","followers_url":"https://api.github.com/users/bleroy/followers","following_url":"https://api.github.com/users/bleroy/following{/other_user}","gists_url":"https://api.github.com/users/bleroy/gists{/gist_id}","starred_url":"https://api.github.com/users/bleroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleroy/subscriptions","organizations_url":"https://api.github.com/users/bleroy/orgs","repos_url":"https://api.github.com/users/bleroy/repos","events_url":"https://api.github.com/users/bleroy/events{/privacy}","received_events_url":"https://api.github.com/users/bleroy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bleroy/Nwazet.Commerce","description":"Idiomatic commerce module for Orchard CMS.","fork":false,"url":"https://api.github.com/repos/bleroy/Nwazet.Commerce","forks_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/forks","keys_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/teams","hooks_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/hooks","issue_events_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/issues/events{/number}","events_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/events","assignees_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/assignees{/user}","branches_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/branches{/branch}","tags_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/tags","blobs_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/statuses/{sha}","languages_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/languages","stargazers_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/stargazers","contributors_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/contributors","subscribers_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/subscribers","subscription_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/subscription","commits_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/contents/{+path}","compare_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/merges","archive_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/downloads","issues_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/issues{/number}","pulls_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/pulls{/number}","milestones_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/milestones{/number}","notifications_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/labels{/name}","releases_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/releases{/id}","deployments_url":"https://api.github.com/repos/bleroy/Nwazet.Commerce/deployments","created_at":"2016-02-29T18:49:39Z","updated_at":"2017-05-15T14:18:38Z","pushed_at":"2017-05-22T08:06:04Z","git_url":"git://github.com/bleroy/Nwazet.Commerce.git","ssh_url":"git@github.com:bleroy/Nwazet.Commerce.git","clone_url":"https://github.com/bleroy/Nwazet.Commerce.git","svn_url":"https://github.com/bleroy/Nwazet.Commerce","homepage":null,"size":2350,"stargazers_count":12,"watchers_count":12,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":24,"forks":10,"open_issues":24,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bleroy/Nwazet.Commerce/pulls/122"},"html":{"href":"https://github.com/bleroy/Nwazet.Commerce/pull/122"},"issue":{"href":"https://api.github.com/repos/bleroy/Nwazet.Commerce/issues/122"},"comments":{"href":"https://api.github.com/repos/bleroy/Nwazet.Commerce/issues/122/comments"},"review_comments":{"href":"https://api.github.com/repos/bleroy/Nwazet.Commerce/pulls/122/comments"},"review_comment":{"href":"https://api.github.com/repos/bleroy/Nwazet.Commerce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bleroy/Nwazet.Commerce/pulls/122/commits"},"statuses":{"href":"https://api.github.com/repos/bleroy/Nwazet.Commerce/statuses/dbb96580b0ec2150800c7803f984bc94bb00da5a"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":14,"additions":848,"deletions":66,"changed_files":18}}
{"actor":{"display_login":"MatteoPiovanelli-Laser"}}