{"action":"created","issue":{"url":"https://api.github.com/repos/Sakuten/backend/issues/81","repository_url":"https://api.github.com/repos/Sakuten/backend","labels_url":"https://api.github.com/repos/Sakuten/backend/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/Sakuten/backend/issues/81/comments","events_url":"https://api.github.com/repos/Sakuten/backend/issues/81/events","html_url":"https://github.com/Sakuten/backend/pull/81","id":344529137,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzOTAzMjI1","number":81,"title":"Add: Add /draw_all endpoint to draw all available lotteries","user":{"login":"coord-e","id":16184855,"node_id":"MDQ6VXNlcjE2MTg0ODU1","avatar_url":"https://avatars0.githubusercontent.com/u/16184855?v=4","gravatar_id":"","url":"https://api.github.com/users/coord-e","html_url":"https://github.com/coord-e","followers_url":"https://api.github.com/users/coord-e/followers","following_url":"https://api.github.com/users/coord-e/following{/other_user}","gists_url":"https://api.github.com/users/coord-e/gists{/gist_id}","starred_url":"https://api.github.com/users/coord-e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coord-e/subscriptions","organizations_url":"https://api.github.com/users/coord-e/orgs","repos_url":"https://api.github.com/users/coord-e/repos","events_url":"https://api.github.com/users/coord-e/events{/privacy}","received_events_url":"https://api.github.com/users/coord-e/received_events","type":"User","site_admin":false},"labels":[{"id":930242900,"node_id":"MDU6TGFiZWw5MzAyNDI5MDA=","url":"https://api.github.com/repos/Sakuten/backend/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":989508706,"node_id":"MDU6TGFiZWw5ODk1MDg3MDY=","url":"https://api.github.com/repos/Sakuten/backend/labels/epic","name":"epic","color":"04f909","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Sakuten/backend/milestones/1","html_url":"https://github.com/Sakuten/backend/milestone/1","labels_url":"https://api.github.com/repos/Sakuten/backend/milestones/1/labels","id":3455979,"node_id":"MDk6TWlsZXN0b25lMzQ1NTk3OQ==","number":1,"title":"v0.1","description":"基本機能完全動作。QRコード読み取りから登録、抽選までひと通りできるようになる。","creator":{"login":"coord-e","id":16184855,"node_id":"MDQ6VXNlcjE2MTg0ODU1","avatar_url":"https://avatars0.githubusercontent.com/u/16184855?v=4","gravatar_id":"","url":"https://api.github.com/users/coord-e","html_url":"https://github.com/coord-e","followers_url":"https://api.github.com/users/coord-e/followers","following_url":"https://api.github.com/users/coord-e/following{/other_user}","gists_url":"https://api.github.com/users/coord-e/gists{/gist_id}","starred_url":"https://api.github.com/users/coord-e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coord-e/subscriptions","organizations_url":"https://api.github.com/users/coord-e/orgs","repos_url":"https://api.github.com/users/coord-e/repos","events_url":"https://api.github.com/users/coord-e/events{/privacy}","received_events_url":"https://api.github.com/users/coord-e/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":19,"state":"open","created_at":"2018-06-27T12:43:47Z","updated_at":"2018-07-26T09:23:44Z","due_on":"2018-07-26T07:00:00Z","closed_at":null},"comments":26,"created_at":"2018-07-25T17:04:10Z","updated_at":"2018-07-26T10:52:24Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/Sakuten/backend/pulls/81","html_url":"https://github.com/Sakuten/backend/pull/81","diff_url":"https://github.com/Sakuten/backend/pull/81.diff","patch_url":"https://github.com/Sakuten/backend/pull/81.patch"},"body":"Step 1: 再現済み環境\r\n====================\r\n\r\n * OS: Linux coordiserver 4.17.0-1-amd64 #1 SMP Debian 4.17.8-1 (2018-07-20) x86_64 GNU/Linux\r\n * devenv: 644a8300449c4e26134ef01d0583f7c44e4975dc\r\n * frontend: e2ebc7f3a73403fc2b2b71ce6e7aa1708bb6fb41\r\n * backend: b8acce516bc74e03b70b43f853ce656e2c2ad144\r\n  \r\nStep 2: 変更内容\r\n----------------\r\n\r\n  * `/draw_all`\bを追加\r\n  * 現在時刻に基づき引くべきlotteriesを引く\r\n    * `api.time_management`ができたりした\r\n  * Fix #30 \r\n\r\nStep 2: 検証手順\r\n================\r\n\r\n再現のための手順:\r\n-----------------\r\n\r\n  1. `api.config.BaseConfig`の`WINNERS_NUM`値を小さな値`2`とかに変える\r\n  2.  `api.config.BaseConfig`の`START_DATETIME`, `END_DATETIME`, `TIMEPOINTS`をそこらへんに適当に設定する(別にマシンの時刻を変えてもいい)\r\n  3. いくつかのユーザーで適当なlotteryにapply\r\n  4. lotteryが引ける時間になったらadminで/draw_allをPOST\r\n  \r\n修正前の挙動:\r\n-------------\r\n\r\n  * まず/draw_allがない\r\n  \r\n修正後の挙動:\r\n-------------\r\n\r\n  * ある\r\n\r\nStep 3: 影響範囲\r\n================\r\n\r\n  * `/lotteries/{idx}/draw`のフローに変更が生じたが、動作に変化はない\r\n"},"comment":{"url":"https://api.github.com/repos/Sakuten/backend/issues/comments/408057908","html_url":"https://github.com/Sakuten/backend/pull/81#issuecomment-408057908","issue_url":"https://api.github.com/repos/Sakuten/backend/issues/81","id":408057908,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODA1NzkwOA==","user":{"login":"coord-e","id":16184855,"node_id":"MDQ6VXNlcjE2MTg0ODU1","avatar_url":"https://avatars0.githubusercontent.com/u/16184855?v=4","gravatar_id":"","url":"https://api.github.com/users/coord-e","html_url":"https://github.com/coord-e","followers_url":"https://api.github.com/users/coord-e/followers","following_url":"https://api.github.com/users/coord-e/following{/other_user}","gists_url":"https://api.github.com/users/coord-e/gists{/gist_id}","starred_url":"https://api.github.com/users/coord-e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coord-e/subscriptions","organizations_url":"https://api.github.com/users/coord-e/orgs","repos_url":"https://api.github.com/users/coord-e/repos","events_url":"https://api.github.com/users/coord-e/events{/privacy}","received_events_url":"https://api.github.com/users/coord-e/received_events","type":"User","site_admin":false},"created_at":"2018-07-26T10:52:24Z","updated_at":"2018-07-26T10:52:24Z","author_association":"MEMBER","body":"もしかして: `BaseConfig.TIMEZONE`"}}
{"actor":{"display_login":"coord-e"}}