{"action":"created","issue":{"url":"https://api.github.com/repos/Vauxoo/addons-vauxoo/issues/718","repository_url":"https://api.github.com/repos/Vauxoo/addons-vauxoo","labels_url":"https://api.github.com/repos/Vauxoo/addons-vauxoo/issues/718/labels{/name}","comments_url":"https://api.github.com/repos/Vauxoo/addons-vauxoo/issues/718/comments","events_url":"https://api.github.com/repos/Vauxoo/addons-vauxoo/issues/718/events","html_url":"https://github.com/Vauxoo/addons-vauxoo/pull/718","id":131493422,"number":718,"title":"[WIP][product_extended_segmentation] Consider bottom threshold for product cost update","user":{"login":"osvalr","id":2961943,"avatar_url":"https://avatars.githubusercontent.com/u/2961943?v=3","gravatar_id":"","url":"https://api.github.com/users/osvalr","html_url":"https://github.com/osvalr","followers_url":"https://api.github.com/users/osvalr/followers","following_url":"https://api.github.com/users/osvalr/following{/other_user}","gists_url":"https://api.github.com/users/osvalr/gists{/gist_id}","starred_url":"https://api.github.com/users/osvalr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osvalr/subscriptions","organizations_url":"https://api.github.com/users/osvalr/orgs","repos_url":"https://api.github.com/users/osvalr/repos","events_url":"https://api.github.com/users/osvalr/events{/privacy}","received_events_url":"https://api.github.com/users/osvalr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-04T22:33:17Z","updated_at":"2016-02-10T18:10:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Vauxoo/addons-vauxoo/pulls/718","html_url":"https://github.com/Vauxoo/addons-vauxoo/pull/718","diff_url":"https://github.com/Vauxoo/addons-vauxoo/pull/718.diff","patch_url":"https://github.com/Vauxoo/addons-vauxoo/pull/718.patch"},"body":"## Changes made:\r\n- [X] Include bottom threshold for cost update\r\n- [X] Update unit test for threshold behavior with the following use cases:\r\n  - [X] new price is under the threshold, product price is not updated but segments.\r\n  - [X] new price is above the threshold, product price is updated as well segments\r\n  - [X] check default values on wizard\r\n\r\nVideo showing this feature\r\n[![demo video](http://img.youtube.com/vi/Qv2UR1xZOoc/0.jpg)](http://www.youtube.com/watch?v=Qv2UR1xZOoc \"Threshold\")\r\n\r\n \r\nUse cases taken in count to logic in here\r\n\r\n|Threshold|Current Price|New Price|Price Diff|Action|\r\n|--------:|------------:|--------:|---------:|-----|\r\n|0|0|0|0|update only segments|\r\n|0|0|10|10|update cost and segments|\r\n|10|0|0|0|update only segments|\r\n|10|0|10|0|update cost and segments|\r\n|0|100|90|-10|update only segments|\r\n|10|100|80|-20|update only segments|\r\n|10|100|95|-5|update cost and segments|\r\n|10|0|-5|-5|do nothing|"},"comment":{"url":"https://api.github.com/repos/Vauxoo/addons-vauxoo/issues/comments/182508302","html_url":"https://github.com/Vauxoo/addons-vauxoo/pull/718#issuecomment-182508302","issue_url":"https://api.github.com/repos/Vauxoo/addons-vauxoo/issues/718","id":182508302,"user":{"login":"osvalr","id":2961943,"avatar_url":"https://avatars.githubusercontent.com/u/2961943?v=3","gravatar_id":"","url":"https://api.github.com/users/osvalr","html_url":"https://github.com/osvalr","followers_url":"https://api.github.com/users/osvalr/followers","following_url":"https://api.github.com/users/osvalr/following{/other_user}","gists_url":"https://api.github.com/users/osvalr/gists{/gist_id}","starred_url":"https://api.github.com/users/osvalr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osvalr/subscriptions","organizations_url":"https://api.github.com/users/osvalr/orgs","repos_url":"https://api.github.com/users/osvalr/repos","events_url":"https://api.github.com/users/osvalr/events{/privacy}","received_events_url":"https://api.github.com/users/osvalr/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T18:10:51Z","updated_at":"2016-02-10T18:10:51Z","body":"@hbto @nhomar please check ASAP"}}