{"action":"opened","number":1898,"pull_request":{"url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/pulls/1898","id":37066087,"html_url":"https://github.com/wp-e-commerce/WP-e-Commerce/pull/1898","diff_url":"https://github.com/wp-e-commerce/WP-e-Commerce/pull/1898.diff","patch_url":"https://github.com/wp-e-commerce/WP-e-Commerce/pull/1898.patch","issue_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/1898","number":1898,"state":"open","locked":false,"title":"Delete download status entry upon file deletion.","user":{"login":"misulicus","id":3201116,"avatar_url":"https://avatars.githubusercontent.com/u/3201116?v=3","gravatar_id":"","url":"https://api.github.com/users/misulicus","html_url":"https://github.com/misulicus","followers_url":"https://api.github.com/users/misulicus/followers","following_url":"https://api.github.com/users/misulicus/following{/other_user}","gists_url":"https://api.github.com/users/misulicus/gists{/gist_id}","starred_url":"https://api.github.com/users/misulicus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misulicus/subscriptions","organizations_url":"https://api.github.com/users/misulicus/orgs","repos_url":"https://api.github.com/users/misulicus/repos","events_url":"https://api.github.com/users/misulicus/events{/privacy}","received_events_url":"https://api.github.com/users/misulicus/received_events","type":"User","site_admin":false},"body":"When a file linked to a product is deleted the WPSC_TABLE_DOWNLOAD_STATUS entries (all for that file) should be removed since when entering a new or the same file again the post ID will be different thus the fileid will be different and old entries will be just leftovers once a file is deleted.","created_at":"2015-06-05T20:16:51Z","updated_at":"2015-06-05T20:16:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/pulls/1898/commits","review_comments_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/pulls/1898/comments","review_comment_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/1898/comments","statuses_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/statuses/93d21b69fae3db4ad840cb34178caf9a4636db62","head":{"label":"misulicus:patch-14","ref":"patch-14","sha":"93d21b69fae3db4ad840cb34178caf9a4636db62","user":{"login":"misulicus","id":3201116,"avatar_url":"https://avatars.githubusercontent.com/u/3201116?v=3","gravatar_id":"","url":"https://api.github.com/users/misulicus","html_url":"https://github.com/misulicus","followers_url":"https://api.github.com/users/misulicus/followers","following_url":"https://api.github.com/users/misulicus/following{/other_user}","gists_url":"https://api.github.com/users/misulicus/gists{/gist_id}","starred_url":"https://api.github.com/users/misulicus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misulicus/subscriptions","organizations_url":"https://api.github.com/users/misulicus/orgs","repos_url":"https://api.github.com/users/misulicus/repos","events_url":"https://api.github.com/users/misulicus/events{/privacy}","received_events_url":"https://api.github.com/users/misulicus/received_events","type":"User","site_admin":false},"repo":{"id":25681715,"name":"WP-e-Commerce","full_name":"misulicus/WP-e-Commerce","owner":{"login":"misulicus","id":3201116,"avatar_url":"https://avatars.githubusercontent.com/u/3201116?v=3","gravatar_id":"","url":"https://api.github.com/users/misulicus","html_url":"https://github.com/misulicus","followers_url":"https://api.github.com/users/misulicus/followers","following_url":"https://api.github.com/users/misulicus/following{/other_user}","gists_url":"https://api.github.com/users/misulicus/gists{/gist_id}","starred_url":"https://api.github.com/users/misulicus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misulicus/subscriptions","organizations_url":"https://api.github.com/users/misulicus/orgs","repos_url":"https://api.github.com/users/misulicus/repos","events_url":"https://api.github.com/users/misulicus/events{/privacy}","received_events_url":"https://api.github.com/users/misulicus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/misulicus/WP-e-Commerce","description":"WP e-Commerce Plugin - The most popular and robust e-Commerce solution for WordPress","fork":true,"url":"https://api.github.com/repos/misulicus/WP-e-Commerce","forks_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/forks","keys_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/teams","hooks_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/hooks","issue_events_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/issues/events{/number}","events_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/events","assignees_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/assignees{/user}","branches_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/branches{/branch}","tags_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/tags","blobs_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/statuses/{sha}","languages_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/languages","stargazers_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/stargazers","contributors_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/contributors","subscribers_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/subscribers","subscription_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/subscription","commits_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/contents/{+path}","compare_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/merges","archive_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/downloads","issues_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/issues{/number}","pulls_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/pulls{/number}","milestones_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/milestones{/number}","notifications_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/labels{/name}","releases_url":"https://api.github.com/repos/misulicus/WP-e-Commerce/releases{/id}","created_at":"2014-10-24T09:42:21Z","updated_at":"2014-10-24T09:45:10Z","pushed_at":"2015-06-05T20:16:46Z","git_url":"git://github.com/misulicus/WP-e-Commerce.git","ssh_url":"git@github.com:misulicus/WP-e-Commerce.git","clone_url":"https://github.com/misulicus/WP-e-Commerce.git","svn_url":"https://github.com/misulicus/WP-e-Commerce","homepage":"http://getshopped.org","size":18411,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wp-e-commerce:master","ref":"master","sha":"981a49002b2f3e7501a34b47f0f16cdbf40f7ce7","user":{"login":"wp-e-commerce","id":2290601,"avatar_url":"https://avatars.githubusercontent.com/u/2290601?v=3","gravatar_id":"","url":"https://api.github.com/users/wp-e-commerce","html_url":"https://github.com/wp-e-commerce","followers_url":"https://api.github.com/users/wp-e-commerce/followers","following_url":"https://api.github.com/users/wp-e-commerce/following{/other_user}","gists_url":"https://api.github.com/users/wp-e-commerce/gists{/gist_id}","starred_url":"https://api.github.com/users/wp-e-commerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wp-e-commerce/subscriptions","organizations_url":"https://api.github.com/users/wp-e-commerce/orgs","repos_url":"https://api.github.com/users/wp-e-commerce/repos","events_url":"https://api.github.com/users/wp-e-commerce/events{/privacy}","received_events_url":"https://api.github.com/users/wp-e-commerce/received_events","type":"Organization","site_admin":false},"repo":{"id":2052629,"name":"WP-e-Commerce","full_name":"wp-e-commerce/WP-e-Commerce","owner":{"login":"wp-e-commerce","id":2290601,"avatar_url":"https://avatars.githubusercontent.com/u/2290601?v=3","gravatar_id":"","url":"https://api.github.com/users/wp-e-commerce","html_url":"https://github.com/wp-e-commerce","followers_url":"https://api.github.com/users/wp-e-commerce/followers","following_url":"https://api.github.com/users/wp-e-commerce/following{/other_user}","gists_url":"https://api.github.com/users/wp-e-commerce/gists{/gist_id}","starred_url":"https://api.github.com/users/wp-e-commerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wp-e-commerce/subscriptions","organizations_url":"https://api.github.com/users/wp-e-commerce/orgs","repos_url":"https://api.github.com/users/wp-e-commerce/repos","events_url":"https://api.github.com/users/wp-e-commerce/events{/privacy}","received_events_url":"https://api.github.com/users/wp-e-commerce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wp-e-commerce/WP-e-Commerce","description":"WP eCommerce - The most popular independent eCommerce platform for WordPress","fork":false,"url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce","forks_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/forks","keys_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/teams","hooks_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/hooks","issue_events_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/events{/number}","events_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/events","assignees_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/assignees{/user}","branches_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/branches{/branch}","tags_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/tags","blobs_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/statuses/{sha}","languages_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/languages","stargazers_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/stargazers","contributors_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/contributors","subscribers_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/subscribers","subscription_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/subscription","commits_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/contents/{+path}","compare_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/merges","archive_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/downloads","issues_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues{/number}","pulls_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/pulls{/number}","milestones_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/milestones{/number}","notifications_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/labels{/name}","releases_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/releases{/id}","created_at":"2011-07-15T10:54:16Z","updated_at":"2015-06-05T06:21:00Z","pushed_at":"2015-06-05T19:44:31Z","git_url":"git://github.com/wp-e-commerce/WP-e-Commerce.git","ssh_url":"git@github.com:wp-e-commerce/WP-e-Commerce.git","clone_url":"https://github.com/wp-e-commerce/WP-e-Commerce.git","svn_url":"https://github.com/wp-e-commerce/WP-e-Commerce","homepage":"https://wpecommerce.org","size":28835,"stargazers_count":162,"watchers_count":162,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":176,"mirror_url":null,"open_issues_count":403,"forks":176,"open_issues":403,"watchers":162,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/pulls/1898"},"html":{"href":"https://github.com/wp-e-commerce/WP-e-Commerce/pull/1898"},"issue":{"href":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/1898"},"comments":{"href":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/1898/comments"},"review_comments":{"href":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/pulls/1898/comments"},"review_comment":{"href":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/pulls/1898/commits"},"statuses":{"href":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/statuses/93d21b69fae3db4ad840cb34178caf9a4636db62"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":1,"changed_files":1}}