{"action":"created","issue":{"url":"https://api.github.com/repos/ActivityWatch/aw-client/issues/37","repository_url":"https://api.github.com/repos/ActivityWatch/aw-client","labels_url":"https://api.github.com/repos/ActivityWatch/aw-client/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/ActivityWatch/aw-client/issues/37/comments","events_url":"https://api.github.com/repos/ActivityWatch/aw-client/issues/37/events","html_url":"https://github.com/ActivityWatch/aw-client/issues/37","id":337949346,"node_id":"MDU6SXNzdWUzMzc5NDkzNDY=","number":37,"title":"Cannot create_bucket with queued=True","user":{"login":"Otto-AA","id":21040751,"node_id":"MDQ6VXNlcjIxMDQwNzUx","avatar_url":"https://avatars2.githubusercontent.com/u/21040751?v=4","gravatar_id":"","url":"https://api.github.com/users/Otto-AA","html_url":"https://github.com/Otto-AA","followers_url":"https://api.github.com/users/Otto-AA/followers","following_url":"https://api.github.com/users/Otto-AA/following{/other_user}","gists_url":"https://api.github.com/users/Otto-AA/gists{/gist_id}","starred_url":"https://api.github.com/users/Otto-AA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otto-AA/subscriptions","organizations_url":"https://api.github.com/users/Otto-AA/orgs","repos_url":"https://api.github.com/users/Otto-AA/repos","events_url":"https://api.github.com/users/Otto-AA/events{/privacy}","received_events_url":"https://api.github.com/users/Otto-AA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-07-03T15:28:10Z","updated_at":"2018-07-04T11:40:56Z","closed_at":null,"author_association":"NONE","body":"When using `queued=True` the client doesn't send the create_bucket request to the server.\r\n\r\n### Steps to reproduce:\r\n1. Start aw-server in testing mode: `aw-server --testing --verbose`\r\n\r\n2. Run following python script:\r\n```python\r\nfrom aw_client import ActivityWatchClient\r\nclient = ActivityWatchClient(\"test-client\", True)\r\nclient.create_bucket('test-bucket_{}'.format(client.hostname), event_type='test-event-type', queued=True)\r\n```\r\n\r\n### Expected behaviour\r\nA bucket is created.\r\n\r\n### Context\r\n- Ubuntu 18.04 LTS\r\n- python3\r\n- Versions: unknown (can look up if necessary)"},"comment":{"url":"https://api.github.com/repos/ActivityWatch/aw-client/issues/comments/402453749","html_url":"https://github.com/ActivityWatch/aw-client/issues/37#issuecomment-402453749","issue_url":"https://api.github.com/repos/ActivityWatch/aw-client/issues/37","id":402453749,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjQ1Mzc0OQ==","user":{"login":"johan-bjareholt","id":1398500,"node_id":"MDQ6VXNlcjEzOTg1MDA=","avatar_url":"https://avatars1.githubusercontent.com/u/1398500?v=4","gravatar_id":"","url":"https://api.github.com/users/johan-bjareholt","html_url":"https://github.com/johan-bjareholt","followers_url":"https://api.github.com/users/johan-bjareholt/followers","following_url":"https://api.github.com/users/johan-bjareholt/following{/other_user}","gists_url":"https://api.github.com/users/johan-bjareholt/gists{/gist_id}","starred_url":"https://api.github.com/users/johan-bjareholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johan-bjareholt/subscriptions","organizations_url":"https://api.github.com/users/johan-bjareholt/orgs","repos_url":"https://api.github.com/users/johan-bjareholt/repos","events_url":"https://api.github.com/users/johan-bjareholt/events{/privacy}","received_events_url":"https://api.github.com/users/johan-bjareholt/received_events","type":"User","site_admin":false},"created_at":"2018-07-04T11:40:56Z","updated_at":"2018-07-04T11:40:56Z","author_association":"MEMBER","body":"> Support calling create_bucket() before connect()\r\n\r\nNo, support calling create_bucket() AFTER connect() :p\r\n\r\nPreferably also add a TODO comment to make it impossible rather than just a warning in the future"}}
{"actor":{"display_login":"johan-bjareholt"}}