{"action":"created","issue":{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/1040","repository_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard","labels_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/1040/labels{/name}","comments_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/1040/comments","events_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/1040/events","html_url":"https://github.com/apinf/api-umbrella-dashboard/issues/1040","id":158629607,"number":1040,"title":"Refactor dashboard code","user":{"login":"frenchbread","id":2122679,"avatar_url":"https://avatars.githubusercontent.com/u/2122679?v=3","gravatar_id":"","url":"https://api.github.com/users/frenchbread","html_url":"https://github.com/frenchbread","followers_url":"https://api.github.com/users/frenchbread/followers","following_url":"https://api.github.com/users/frenchbread/following{/other_user}","gists_url":"https://api.github.com/users/frenchbread/gists{/gist_id}","starred_url":"https://api.github.com/users/frenchbread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenchbread/subscriptions","organizations_url":"https://api.github.com/users/frenchbread/orgs","repos_url":"https://api.github.com/users/frenchbread/repos","events_url":"https://api.github.com/users/frenchbread/events{/privacy}","received_events_url":"https://api.github.com/users/frenchbread/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/labels/Dashboard","name":"Dashboard","color":"3E4B9E"},{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"frenchbread","id":2122679,"avatar_url":"https://avatars.githubusercontent.com/u/2122679?v=3","gravatar_id":"","url":"https://api.github.com/users/frenchbread","html_url":"https://github.com/frenchbread","followers_url":"https://api.github.com/users/frenchbread/followers","following_url":"https://api.github.com/users/frenchbread/following{/other_user}","gists_url":"https://api.github.com/users/frenchbread/gists{/gist_id}","starred_url":"https://api.github.com/users/frenchbread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenchbread/subscriptions","organizations_url":"https://api.github.com/users/frenchbread/orgs","repos_url":"https://api.github.com/users/frenchbread/repos","events_url":"https://api.github.com/users/frenchbread/events{/privacy}","received_events_url":"https://api.github.com/users/frenchbread/received_events","type":"User","site_admin":false},"assignees":[{"login":"frenchbread","id":2122679,"avatar_url":"https://avatars.githubusercontent.com/u/2122679?v=3","gravatar_id":"","url":"https://api.github.com/users/frenchbread","html_url":"https://github.com/frenchbread","followers_url":"https://api.github.com/users/frenchbread/followers","following_url":"https://api.github.com/users/frenchbread/following{/other_user}","gists_url":"https://api.github.com/users/frenchbread/gists{/gist_id}","starred_url":"https://api.github.com/users/frenchbread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenchbread/subscriptions","organizations_url":"https://api.github.com/users/frenchbread/orgs","repos_url":"https://api.github.com/users/frenchbread/repos","events_url":"https://api.github.com/users/frenchbread/events{/privacy}","received_events_url":"https://api.github.com/users/frenchbread/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-06-06T08:55:33Z","updated_at":"2016-06-27T06:47:29Z","closed_at":null,"body":"> As an Apinf developer I want to easily reuse functions that are used there.\n\n- Refactor code to be more easy to read and maintain.\n- If the logic architecture allows it, try to make code more object oriented\n\nSince this is not creating any new functionality, but rather improving existing one, do not spend more than 1 hour on this task.\n\n# Definition of done\n- [ ] Dashboard contains no functions with subfunctions\n- [ ] If possible, dashboard functions are objects with methods\n- [ ] Most or all of ElasticSearch variables are parametrized\n- [ ] Code is easy to read\n- [ ] Code contains comments"},"comment":{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/comments/228666150","html_url":"https://github.com/apinf/api-umbrella-dashboard/issues/1040#issuecomment-228666150","issue_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/1040","id":228666150,"user":{"login":"frenchbread","id":2122679,"avatar_url":"https://avatars.githubusercontent.com/u/2122679?v=3","gravatar_id":"","url":"https://api.github.com/users/frenchbread","html_url":"https://github.com/frenchbread","followers_url":"https://api.github.com/users/frenchbread/followers","following_url":"https://api.github.com/users/frenchbread/following{/other_user}","gists_url":"https://api.github.com/users/frenchbread/gists{/gist_id}","starred_url":"https://api.github.com/users/frenchbread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenchbread/subscriptions","organizations_url":"https://api.github.com/users/frenchbread/orgs","repos_url":"https://api.github.com/users/frenchbread/repos","events_url":"https://api.github.com/users/frenchbread/events{/privacy}","received_events_url":"https://api.github.com/users/frenchbread/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T06:47:29Z","updated_at":"2016-06-27T06:47:29Z","body":"Testing out refactored version of updated dashboard in [this](https://github.com/frenchbread/apinf-dashboard-example) repo.\r\n\r\nStill having two issues: \r\n- Data fetch take too much time (even though it has been optimized)\r\n- \"Average response time\" chart does not work"}}
{"actor":{"display_login":"frenchbread"}}