{"action":"opened","issue":{"url":"https://api.github.com/repos/datopian/datahub-cli/issues/45","repository_url":"https://api.github.com/repos/datopian/datahub-cli","labels_url":"https://api.github.com/repos/datopian/datahub-cli/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/datopian/datahub-cli/issues/45/comments","events_url":"https://api.github.com/repos/datopian/datahub-cli/issues/45/events","html_url":"https://github.com/datopian/datahub-cli/issues/45","id":234441278,"number":45,"title":"Move commonly used functions in utils","user":{"login":"zelima","id":15143785,"avatar_url":"https://avatars0.githubusercontent.com/u/15143785?v=3","gravatar_id":"","url":"https://api.github.com/users/zelima","html_url":"https://github.com/zelima","followers_url":"https://api.github.com/users/zelima/followers","following_url":"https://api.github.com/users/zelima/following{/other_user}","gists_url":"https://api.github.com/users/zelima/gists{/gist_id}","starred_url":"https://api.github.com/users/zelima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zelima/subscriptions","organizations_url":"https://api.github.com/users/zelima/orgs","repos_url":"https://api.github.com/users/zelima/repos","events_url":"https://api.github.com/users/zelima/events{/privacy}","received_events_url":"https://api.github.com/users/zelima/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"zelima","id":15143785,"avatar_url":"https://avatars0.githubusercontent.com/u/15143785?v=3","gravatar_id":"","url":"https://api.github.com/users/zelima","html_url":"https://github.com/zelima","followers_url":"https://api.github.com/users/zelima/followers","following_url":"https://api.github.com/users/zelima/following{/other_user}","gists_url":"https://api.github.com/users/zelima/gists{/gist_id}","starred_url":"https://api.github.com/users/zelima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zelima/subscriptions","organizations_url":"https://api.github.com/users/zelima/orgs","repos_url":"https://api.github.com/users/zelima/repos","events_url":"https://api.github.com/users/zelima/events{/privacy}","received_events_url":"https://api.github.com/users/zelima/received_events","type":"User","site_admin":false},"assignees":[{"login":"zelima","id":15143785,"avatar_url":"https://avatars0.githubusercontent.com/u/15143785?v=3","gravatar_id":"","url":"https://api.github.com/users/zelima","html_url":"https://github.com/zelima","followers_url":"https://api.github.com/users/zelima/followers","following_url":"https://api.github.com/users/zelima/following{/other_user}","gists_url":"https://api.github.com/users/zelima/gists{/gist_id}","starred_url":"https://api.github.com/users/zelima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zelima/subscriptions","organizations_url":"https://api.github.com/users/zelima/orgs","repos_url":"https://api.github.com/users/zelima/repos","events_url":"https://api.github.com/users/zelima/events{/privacy}","received_events_url":"https://api.github.com/users/zelima/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/datopian/datahub-cli/milestones/2","html_url":"https://github.com/datopian/datahub-cli/milestone/2","labels_url":"https://api.github.com/repos/datopian/datahub-cli/milestones/2/labels","id":2539867,"number":2,"title":"Sprint - 19 June 2017","description":"","creator":{"login":"anuveyatsu","id":17809581,"avatar_url":"https://avatars2.githubusercontent.com/u/17809581?v=3","gravatar_id":"","url":"https://api.github.com/users/anuveyatsu","html_url":"https://github.com/anuveyatsu","followers_url":"https://api.github.com/users/anuveyatsu/followers","following_url":"https://api.github.com/users/anuveyatsu/following{/other_user}","gists_url":"https://api.github.com/users/anuveyatsu/gists{/gist_id}","starred_url":"https://api.github.com/users/anuveyatsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuveyatsu/subscriptions","organizations_url":"https://api.github.com/users/anuveyatsu/orgs","repos_url":"https://api.github.com/users/anuveyatsu/repos","events_url":"https://api.github.com/users/anuveyatsu/events{/privacy}","received_events_url":"https://api.github.com/users/anuveyatsu/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":2,"state":"open","created_at":"2017-05-24T06:17:41Z","updated_at":"2017-06-08T07:55:26Z","due_on":"2017-06-19T07:00:00Z","closed_at":null},"comments":0,"created_at":"2017-06-08T07:55:26Z","updated_at":"2017-06-08T07:55:26Z","closed_at":null,"body":"We have functions for checking if dp exists, reading dp, logging messages etc.. that are used in many different places. Would be better if we moved them into one place and used from there. \r\n\r\n## Acceptance criteria\r\n\r\n- [ ] We do not have same exact functions written in different places\r\n- [ ] functions are tested\r\n\r\n## Tasks\r\n\r\n- [ ] move out all the common functions in utils/common\r\n- [ ] create new ones if needed Eg Identifier parser function\r\n- [ ] refactor code to use that functions"}}
{"actor":{"display_login":"zelima"}}