{"action":"opened","issue":{"url":"https://api.github.com/repos/shareholdergame/shareholdergame-ui/issues/37","repository_url":"https://api.github.com/repos/shareholdergame/shareholdergame-ui","labels_url":"https://api.github.com/repos/shareholdergame/shareholdergame-ui/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/shareholdergame/shareholdergame-ui/issues/37/comments","events_url":"https://api.github.com/repos/shareholdergame/shareholdergame-ui/issues/37/events","html_url":"https://github.com/shareholdergame/shareholdergame-ui/issues/37","id":388663415,"node_id":"MDU6SXNzdWUzODg2NjM0MTU=","number":37,"title":"REPURCHASE_STEP is not informative","user":{"login":"sergeychernyshev","id":38076,"node_id":"MDQ6VXNlcjM4MDc2","avatar_url":"https://avatars2.githubusercontent.com/u/38076?v=4","gravatar_id":"","url":"https://api.github.com/users/sergeychernyshev","html_url":"https://github.com/sergeychernyshev","followers_url":"https://api.github.com/users/sergeychernyshev/followers","following_url":"https://api.github.com/users/sergeychernyshev/following{/other_user}","gists_url":"https://api.github.com/users/sergeychernyshev/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeychernyshev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeychernyshev/subscriptions","organizations_url":"https://api.github.com/users/sergeychernyshev/orgs","repos_url":"https://api.github.com/users/sergeychernyshev/repos","events_url":"https://api.github.com/users/sergeychernyshev/events{/privacy}","received_events_url":"https://api.github.com/users/sergeychernyshev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-07T13:52:13Z","updated_at":"2018-12-07T13:52:13Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I see the new REPURCHASE_STEP for a turn where price was reduced below 10.\r\n\r\nUnfortunately, it's not informative enough to draw the UI:\r\n```json\r\n{\r\n  \"shares\": [\r\n    {\r\n      \"amount\": 115,\r\n      \"buySellAmount\": 0,\r\n      \"id\": 3\r\n    },\r\n    {\r\n      \"amount\": 0,\r\n      \"buySellAmount\": 0,\r\n      \"id\": 4\r\n    },\r\n    {\r\n      \"amount\": 0,\r\n      \"buySellAmount\": 0,\r\n      \"id\": 1\r\n    },\r\n    {\r\n      \"amount\": 0,\r\n      \"buySellAmount\": 0,\r\n      \"id\": 2\r\n    }\r\n  ],\r\n  \"compensations\": [],\r\n  \"stepType\": \"REPURCHASE_STEP\",\r\n  \"cashValue\": 0,\r\n  \"originalStepId\": 278447,\r\n  \"sharePrices\": []\r\n}\r\n```\r\n\r\nThe problem is that there is no way to relate it to actual change for the previous player's turn.\r\n\r\nIt uses `originalStepId` but step IDs are not something front-end can work with.\r\nIf it had player's turn order or at least playerID, that'd be something we can work with."}}
{"actor":{"display_login":"sergeychernyshev"}}