{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh-demos/issues/20","labels_url":"https://api.github.com/repos/bokeh/bokeh-demos/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh-demos/issues/20/comments","events_url":"https://api.github.com/repos/bokeh/bokeh-demos/issues/20/events","html_url":"https://github.com/bokeh/bokeh-demos/pull/20","id":128361175,"number":20,"title":"Happiness v2","user":{"login":"birdsarah","id":1796208,"avatar_url":"https://avatars.githubusercontent.com/u/1796208?v=3","gravatar_id":"","url":"https://api.github.com/users/birdsarah","html_url":"https://github.com/birdsarah","followers_url":"https://api.github.com/users/birdsarah/followers","following_url":"https://api.github.com/users/birdsarah/following{/other_user}","gists_url":"https://api.github.com/users/birdsarah/gists{/gist_id}","starred_url":"https://api.github.com/users/birdsarah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birdsarah/subscriptions","organizations_url":"https://api.github.com/users/birdsarah/orgs","repos_url":"https://api.github.com/users/birdsarah/repos","events_url":"https://api.github.com/users/birdsarah/events{/privacy}","received_events_url":"https://api.github.com/users/birdsarah/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bokeh/bokeh-demos/labels/status:%20ready","name":"status: ready","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-23T23:52:33Z","updated_at":"2016-01-26T23:26:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bokeh/bokeh-demos/pulls/20","html_url":"https://github.com/bokeh/bokeh-demos/pull/20","diff_url":"https://github.com/bokeh/bokeh-demos/pull/20.diff","patch_url":"https://github.com/bokeh/bokeh-demos/pull/20.patch"},"body":"This switches from using periodic callback to update the plots to having django update the plots when there is new data.\r\n\r\nIn Happiness v1, the database was being pinged every 2 seconds. This new technique should be far more efficient and scalable and is a net reduction in code (you can't quite see this from the PR because other artefacts have been added).\r\n\r\nThere is a notebook that has some narrative about things that have been learned making v1 and v2 and things that could still be improved."},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh-demos/issues/comments/175291294","html_url":"https://github.com/bokeh/bokeh-demos/pull/20#issuecomment-175291294","issue_url":"https://api.github.com/repos/bokeh/bokeh-demos/issues/20","id":175291294,"user":{"login":"bryevdv","id":1078448,"avatar_url":"https://avatars.githubusercontent.com/u/1078448?v=3","gravatar_id":"","url":"https://api.github.com/users/bryevdv","html_url":"https://github.com/bryevdv","followers_url":"https://api.github.com/users/bryevdv/followers","following_url":"https://api.github.com/users/bryevdv/following{/other_user}","gists_url":"https://api.github.com/users/bryevdv/gists{/gist_id}","starred_url":"https://api.github.com/users/bryevdv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryevdv/subscriptions","organizations_url":"https://api.github.com/users/bryevdv/orgs","repos_url":"https://api.github.com/users/bryevdv/repos","events_url":"https://api.github.com/users/bryevdv/events{/privacy}","received_events_url":"https://api.github.com/users/bryevdv/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T23:26:24Z","updated_at":"2016-01-26T23:26:24Z","body":"Some small suggestions (maybe other PR):\r\n\r\n* would be nice if the data was always the \"last X days, regardless of when the user runs the demo\r\n* didn't realize date did not get incremented when happiness logged, was confusing, suggest auto-incrementing date\r\n* does not seems to be auto-ranging when new points are added?\r\n* reset seems to weirdly shrink plot size (!)"}}