{"action":"created","comment":{"url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/comments/193695311","pull_request_review_id":126715975,"id":193695311,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzY5NTMxMQ==","diff_hunk":"@@ -74,6 +74,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {\n \t\t'stock_quantity'     => null,\n \t\t'stock_status'       => 'instock',\n \t\t'backorders'         => 'no',\n+\t\t'low_stock_amount'   => -1,","path":"includes/abstracts/abstract-wc-product.php","position":4,"original_position":4,"commit_id":"e5800b66b0b684a4e00a4b2f44955be06267f2e0","original_commit_id":"e5800b66b0b684a4e00a4b2f44955be06267f2e0","user":{"login":"mikejolley","id":90977,"node_id":"MDQ6VXNlcjkwOTc3","avatar_url":"https://avatars2.githubusercontent.com/u/90977?v=4","gravatar_id":"","url":"https://api.github.com/users/mikejolley","html_url":"https://github.com/mikejolley","followers_url":"https://api.github.com/users/mikejolley/followers","following_url":"https://api.github.com/users/mikejolley/following{/other_user}","gists_url":"https://api.github.com/users/mikejolley/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejolley/subscriptions","organizations_url":"https://api.github.com/users/mikejolley/orgs","repos_url":"https://api.github.com/users/mikejolley/repos","events_url":"https://api.github.com/users/mikejolley/events{/privacy}","received_events_url":"https://api.github.com/users/mikejolley/received_events","type":"User","site_admin":false},"body":"We should default to '', rather than -1. '' value can use the global setting.","created_at":"2018-06-07T10:14:52Z","updated_at":"2018-06-07T10:15:11Z","html_url":"https://github.com/woocommerce/woocommerce/pull/20260#discussion_r193695311","pull_request_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/20260","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/comments/193695311"},"html":{"href":"https://github.com/woocommerce/woocommerce/pull/20260#discussion_r193695311"},"pull_request":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/20260"}}},"pull_request":{"url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/20260","id":190772075,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkwNzcyMDc1","html_url":"https://github.com/woocommerce/woocommerce/pull/20260","diff_url":"https://github.com/woocommerce/woocommerce/pull/20260.diff","patch_url":"https://github.com/woocommerce/woocommerce/pull/20260.patch","issue_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/20260","number":20260,"state":"open","locked":false,"title":"Set low stock notification threshold per product","user":{"login":"leglesslizard","id":6690398,"node_id":"MDQ6VXNlcjY2OTAzOTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6690398?v=4","gravatar_id":"","url":"https://api.github.com/users/leglesslizard","html_url":"https://github.com/leglesslizard","followers_url":"https://api.github.com/users/leglesslizard/followers","following_url":"https://api.github.com/users/leglesslizard/following{/other_user}","gists_url":"https://api.github.com/users/leglesslizard/gists{/gist_id}","starred_url":"https://api.github.com/users/leglesslizard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leglesslizard/subscriptions","organizations_url":"https://api.github.com/users/leglesslizard/orgs","repos_url":"https://api.github.com/users/leglesslizard/repos","events_url":"https://api.github.com/users/leglesslizard/events{/privacy}","received_events_url":"https://api.github.com/users/leglesslizard/received_events","type":"User","site_admin":false},"body":"### All Submissions:\r\n\r\n* [x] Have you followed the [WooCommerce Contributing guideline](https://github.com/woocommerce/woocommerce/blob/master/.github/CONTRIBUTING.md)?\r\n* [x] Does your code follow the [WordPress' coding standards](https://make.wordpress.org/core/handbook/best-practices/coding-standards/)?\r\n* [x] Have you checked to ensure there aren't other open [Pull Requests](../../pulls) for the same update/change?\r\n\r\n### Changes proposed in this Pull Request:\r\n\r\nAdds a \"low stock threshold\" field on the inventory tab of the edit product page.  This overrides the global value for sending out low stock notifications.  By default, the field is populated with the global low stock threshold.\r\nOriginal request: http://ideas.woocommerce.com/forums/133476-woocommerce/suggestions/3590021-set-low-stock-notification-threshold-per-product\r\n\r\n### How to test the changes in this Pull Request:\r\n\r\n1. Make sure \"enable stock management\" and  \"low stock notifications\" are enabled in WooCommerce->Settings->Products->Inventory\r\n2. Set a product (simple, variable/variation) to managing stock, set a low stock threshold and update\r\n3. Purchase the product to reduce stock count and check for email notifications\r\n\r\n### Other information:\r\n\r\nParent variables, if set to managing stock, will control these notifications for child variations if they are not set to managing stock.\r\n\r\n* [x] Have you added an explanation of what your changes do and why you'd like us to include them?\r\n* [ ] Have you written new tests for your changes, as applicable?\r\n* [x] Have you successfully ran tests with your changes locally?\r\n\r\n### Changelog entry\r\n- Option has been added on the inventory tab of the edit product page to set a low stock threshold for low stock admin notifications\r\n","created_at":"2018-05-27T05:54:36Z","updated_at":"2018-06-07T10:15:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"587a838af95ef54242dd0dbf36f5020274707a85","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":152992,"node_id":"MDU6TGFiZWwxNTI5OTI=","url":"https://api.github.com/repos/woocommerce/woocommerce/labels/enhancement","name":"enhancement","color":"c5def5","default":true},{"id":33006752,"node_id":"MDU6TGFiZWwzMzAwNjc1Mg==","url":"https://api.github.com/repos/woocommerce/woocommerce/labels/status:%20needs%20review","name":"status: needs review","color":"1d76db","default":false}],"milestone":{"url":"https://api.github.com/repos/woocommerce/woocommerce/milestones/119","html_url":"https://github.com/woocommerce/woocommerce/milestone/119","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/milestones/119/labels","id":3238941,"node_id":"MDk6TWlsZXN0b25lMzIzODk0MQ==","number":119,"title":"3.5.0","description":"","creator":{"login":"mikejolley","id":90977,"node_id":"MDQ6VXNlcjkwOTc3","avatar_url":"https://avatars2.githubusercontent.com/u/90977?v=4","gravatar_id":"","url":"https://api.github.com/users/mikejolley","html_url":"https://github.com/mikejolley","followers_url":"https://api.github.com/users/mikejolley/followers","following_url":"https://api.github.com/users/mikejolley/following{/other_user}","gists_url":"https://api.github.com/users/mikejolley/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejolley/subscriptions","organizations_url":"https://api.github.com/users/mikejolley/orgs","repos_url":"https://api.github.com/users/mikejolley/repos","events_url":"https://api.github.com/users/mikejolley/events{/privacy}","received_events_url":"https://api.github.com/users/mikejolley/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":58,"state":"open","created_at":"2018-04-03T13:53:41Z","updated_at":"2018-06-07T09:41:36Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/20260/commits","review_comments_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/20260/comments","review_comment_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/20260/comments","statuses_url":"https://api.github.com/repos/woocommerce/woocommerce/statuses/e5800b66b0b684a4e00a4b2f44955be06267f2e0","head":{"label":"leglesslizard:master","ref":"master","sha":"e5800b66b0b684a4e00a4b2f44955be06267f2e0","user":{"login":"leglesslizard","id":6690398,"node_id":"MDQ6VXNlcjY2OTAzOTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6690398?v=4","gravatar_id":"","url":"https://api.github.com/users/leglesslizard","html_url":"https://github.com/leglesslizard","followers_url":"https://api.github.com/users/leglesslizard/followers","following_url":"https://api.github.com/users/leglesslizard/following{/other_user}","gists_url":"https://api.github.com/users/leglesslizard/gists{/gist_id}","starred_url":"https://api.github.com/users/leglesslizard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leglesslizard/subscriptions","organizations_url":"https://api.github.com/users/leglesslizard/orgs","repos_url":"https://api.github.com/users/leglesslizard/repos","events_url":"https://api.github.com/users/leglesslizard/events{/privacy}","received_events_url":"https://api.github.com/users/leglesslizard/received_events","type":"User","site_admin":false},"repo":{"id":135009550,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUwMDk1NTA=","name":"woocommerce","full_name":"leglesslizard/woocommerce","owner":{"login":"leglesslizard","id":6690398,"node_id":"MDQ6VXNlcjY2OTAzOTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6690398?v=4","gravatar_id":"","url":"https://api.github.com/users/leglesslizard","html_url":"https://github.com/leglesslizard","followers_url":"https://api.github.com/users/leglesslizard/followers","following_url":"https://api.github.com/users/leglesslizard/following{/other_user}","gists_url":"https://api.github.com/users/leglesslizard/gists{/gist_id}","starred_url":"https://api.github.com/users/leglesslizard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leglesslizard/subscriptions","organizations_url":"https://api.github.com/users/leglesslizard/orgs","repos_url":"https://api.github.com/users/leglesslizard/repos","events_url":"https://api.github.com/users/leglesslizard/events{/privacy}","received_events_url":"https://api.github.com/users/leglesslizard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leglesslizard/woocommerce","description":"An open source eCommerce plugin for WordPress.","fork":true,"url":"https://api.github.com/repos/leglesslizard/woocommerce","forks_url":"https://api.github.com/repos/leglesslizard/woocommerce/forks","keys_url":"https://api.github.com/repos/leglesslizard/woocommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leglesslizard/woocommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leglesslizard/woocommerce/teams","hooks_url":"https://api.github.com/repos/leglesslizard/woocommerce/hooks","issue_events_url":"https://api.github.com/repos/leglesslizard/woocommerce/issues/events{/number}","events_url":"https://api.github.com/repos/leglesslizard/woocommerce/events","assignees_url":"https://api.github.com/repos/leglesslizard/woocommerce/assignees{/user}","branches_url":"https://api.github.com/repos/leglesslizard/woocommerce/branches{/branch}","tags_url":"https://api.github.com/repos/leglesslizard/woocommerce/tags","blobs_url":"https://api.github.com/repos/leglesslizard/woocommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leglesslizard/woocommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leglesslizard/woocommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/leglesslizard/woocommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leglesslizard/woocommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/leglesslizard/woocommerce/languages","stargazers_url":"https://api.github.com/repos/leglesslizard/woocommerce/stargazers","contributors_url":"https://api.github.com/repos/leglesslizard/woocommerce/contributors","subscribers_url":"https://api.github.com/repos/leglesslizard/woocommerce/subscribers","subscription_url":"https://api.github.com/repos/leglesslizard/woocommerce/subscription","commits_url":"https://api.github.com/repos/leglesslizard/woocommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/leglesslizard/woocommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/leglesslizard/woocommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/leglesslizard/woocommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/leglesslizard/woocommerce/contents/{+path}","compare_url":"https://api.github.com/repos/leglesslizard/woocommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leglesslizard/woocommerce/merges","archive_url":"https://api.github.com/repos/leglesslizard/woocommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leglesslizard/woocommerce/downloads","issues_url":"https://api.github.com/repos/leglesslizard/woocommerce/issues{/number}","pulls_url":"https://api.github.com/repos/leglesslizard/woocommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/leglesslizard/woocommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/leglesslizard/woocommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leglesslizard/woocommerce/labels{/name}","releases_url":"https://api.github.com/repos/leglesslizard/woocommerce/releases{/id}","deployments_url":"https://api.github.com/repos/leglesslizard/woocommerce/deployments","created_at":"2018-05-27T02:28:35Z","updated_at":"2018-05-27T05:43:32Z","pushed_at":"2018-05-27T05:43:31Z","git_url":"git://github.com/leglesslizard/woocommerce.git","ssh_url":"git@github.com:leglesslizard/woocommerce.git","clone_url":"https://github.com/leglesslizard/woocommerce.git","svn_url":"https://github.com/leglesslizard/woocommerce","homepage":"http://www.woocommerce.com/","size":146873,"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":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"woocommerce:master","ref":"master","sha":"127e5f02131329068264dcd2456aae410692d97c","user":{"login":"woocommerce","id":473596,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/473596?v=4","gravatar_id":"","url":"https://api.github.com/users/woocommerce","html_url":"https://github.com/woocommerce","followers_url":"https://api.github.com/users/woocommerce/followers","following_url":"https://api.github.com/users/woocommerce/following{/other_user}","gists_url":"https://api.github.com/users/woocommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/woocommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woocommerce/subscriptions","organizations_url":"https://api.github.com/users/woocommerce/orgs","repos_url":"https://api.github.com/users/woocommerce/repos","events_url":"https://api.github.com/users/woocommerce/events{/privacy}","received_events_url":"https://api.github.com/users/woocommerce/received_events","type":"Organization","site_admin":false},"repo":{"id":2179920,"node_id":"MDEwOlJlcG9zaXRvcnkyMTc5OTIw","name":"woocommerce","full_name":"woocommerce/woocommerce","owner":{"login":"woocommerce","id":473596,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/473596?v=4","gravatar_id":"","url":"https://api.github.com/users/woocommerce","html_url":"https://github.com/woocommerce","followers_url":"https://api.github.com/users/woocommerce/followers","following_url":"https://api.github.com/users/woocommerce/following{/other_user}","gists_url":"https://api.github.com/users/woocommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/woocommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woocommerce/subscriptions","organizations_url":"https://api.github.com/users/woocommerce/orgs","repos_url":"https://api.github.com/users/woocommerce/repos","events_url":"https://api.github.com/users/woocommerce/events{/privacy}","received_events_url":"https://api.github.com/users/woocommerce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/woocommerce/woocommerce","description":"An open source eCommerce plugin for WordPress.","fork":false,"url":"https://api.github.com/repos/woocommerce/woocommerce","forks_url":"https://api.github.com/repos/woocommerce/woocommerce/forks","keys_url":"https://api.github.com/repos/woocommerce/woocommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woocommerce/woocommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woocommerce/woocommerce/teams","hooks_url":"https://api.github.com/repos/woocommerce/woocommerce/hooks","issue_events_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/events{/number}","events_url":"https://api.github.com/repos/woocommerce/woocommerce/events","assignees_url":"https://api.github.com/repos/woocommerce/woocommerce/assignees{/user}","branches_url":"https://api.github.com/repos/woocommerce/woocommerce/branches{/branch}","tags_url":"https://api.github.com/repos/woocommerce/woocommerce/tags","blobs_url":"https://api.github.com/repos/woocommerce/woocommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woocommerce/woocommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woocommerce/woocommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/woocommerce/woocommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woocommerce/woocommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/woocommerce/woocommerce/languages","stargazers_url":"https://api.github.com/repos/woocommerce/woocommerce/stargazers","contributors_url":"https://api.github.com/repos/woocommerce/woocommerce/contributors","subscribers_url":"https://api.github.com/repos/woocommerce/woocommerce/subscribers","subscription_url":"https://api.github.com/repos/woocommerce/woocommerce/subscription","commits_url":"https://api.github.com/repos/woocommerce/woocommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/woocommerce/woocommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/woocommerce/woocommerce/contents/{+path}","compare_url":"https://api.github.com/repos/woocommerce/woocommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woocommerce/woocommerce/merges","archive_url":"https://api.github.com/repos/woocommerce/woocommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woocommerce/woocommerce/downloads","issues_url":"https://api.github.com/repos/woocommerce/woocommerce/issues{/number}","pulls_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/woocommerce/woocommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/woocommerce/woocommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/labels{/name}","releases_url":"https://api.github.com/repos/woocommerce/woocommerce/releases{/id}","deployments_url":"https://api.github.com/repos/woocommerce/woocommerce/deployments","created_at":"2011-08-09T15:12:11Z","updated_at":"2018-06-07T09:41:46Z","pushed_at":"2018-06-07T09:42:51Z","git_url":"git://github.com/woocommerce/woocommerce.git","ssh_url":"git@github.com:woocommerce/woocommerce.git","clone_url":"https://github.com/woocommerce/woocommerce.git","svn_url":"https://github.com/woocommerce/woocommerce","homepage":"http://www.woocommerce.com/","size":147071,"stargazers_count":4482,"watchers_count":4482,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4124,"mirror_url":null,"archived":false,"open_issues_count":37,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":4124,"open_issues":37,"watchers":4482,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/20260"},"html":{"href":"https://github.com/woocommerce/woocommerce/pull/20260"},"issue":{"href":"https://api.github.com/repos/woocommerce/woocommerce/issues/20260"},"comments":{"href":"https://api.github.com/repos/woocommerce/woocommerce/issues/20260/comments"},"review_comments":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/20260/comments"},"review_comment":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/20260/commits"},"statuses":{"href":"https://api.github.com/repos/woocommerce/woocommerce/statuses/e5800b66b0b684a4e00a4b2f44955be06267f2e0"}},"author_association":"NONE"}}
{"actor":{"display_login":"mikejolley"}}