{"action":"opened","issue":{"url":"https://api.github.com/repos/simone-trubian/dropp-client/issues/64","repository_url":"https://api.github.com/repos/simone-trubian/dropp-client","labels_url":"https://api.github.com/repos/simone-trubian/dropp-client/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/simone-trubian/dropp-client/issues/64/comments","events_url":"https://api.github.com/repos/simone-trubian/dropp-client/issues/64/events","html_url":"https://github.com/simone-trubian/dropp-client/issues/64","id":160687616,"number":64,"title":"[DPP-64] Create datatypes for availability","user":{"login":"simone-trubian","id":5606840,"avatar_url":"https://avatars.githubusercontent.com/u/5606840?v=3","gravatar_id":"","url":"https://api.github.com/users/simone-trubian","html_url":"https://github.com/simone-trubian","followers_url":"https://api.github.com/users/simone-trubian/followers","following_url":"https://api.github.com/users/simone-trubian/following{/other_user}","gists_url":"https://api.github.com/users/simone-trubian/gists{/gist_id}","starred_url":"https://api.github.com/users/simone-trubian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simone-trubian/subscriptions","organizations_url":"https://api.github.com/users/simone-trubian/orgs","repos_url":"https://api.github.com/users/simone-trubian/repos","events_url":"https://api.github.com/users/simone-trubian/events{/privacy}","received_events_url":"https://api.github.com/users/simone-trubian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/simone-trubian/dropp-client/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"simone-trubian","id":5606840,"avatar_url":"https://avatars.githubusercontent.com/u/5606840?v=3","gravatar_id":"","url":"https://api.github.com/users/simone-trubian","html_url":"https://github.com/simone-trubian","followers_url":"https://api.github.com/users/simone-trubian/followers","following_url":"https://api.github.com/users/simone-trubian/following{/other_user}","gists_url":"https://api.github.com/users/simone-trubian/gists{/gist_id}","starred_url":"https://api.github.com/users/simone-trubian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simone-trubian/subscriptions","organizations_url":"https://api.github.com/users/simone-trubian/orgs","repos_url":"https://api.github.com/users/simone-trubian/repos","events_url":"https://api.github.com/users/simone-trubian/events{/privacy}","received_events_url":"https://api.github.com/users/simone-trubian/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/simone-trubian/dropp-client/milestones/4","html_url":"https://github.com/simone-trubian/dropp-client/milestones/v0.6-Variable%20items%20scraping","labels_url":"https://api.github.com/repos/simone-trubian/dropp-client/milestones/4/labels","id":1708403,"number":4,"title":"v0.6-Variable items scraping","description":"Add JSON http requests handling capabilities in order to be able to process multi-category pages in BangGood. Together with the tightly focused primary goal, the release will also add improvements in the HTTP client such as error handling and logging.","creator":{"login":"simone-trubian","id":5606840,"avatar_url":"https://avatars.githubusercontent.com/u/5606840?v=3","gravatar_id":"","url":"https://api.github.com/users/simone-trubian","html_url":"https://github.com/simone-trubian","followers_url":"https://api.github.com/users/simone-trubian/followers","following_url":"https://api.github.com/users/simone-trubian/following{/other_user}","gists_url":"https://api.github.com/users/simone-trubian/gists{/gist_id}","starred_url":"https://api.github.com/users/simone-trubian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simone-trubian/subscriptions","organizations_url":"https://api.github.com/users/simone-trubian/orgs","repos_url":"https://api.github.com/users/simone-trubian/repos","events_url":"https://api.github.com/users/simone-trubian/events{/privacy}","received_events_url":"https://api.github.com/users/simone-trubian/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":4,"state":"open","created_at":"2016-04-15T07:53:23Z","updated_at":"2016-06-16T15:16:32Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-06-16T15:16:32Z","updated_at":"2016-06-16T15:16:32Z","closed_at":null,"body":"##### Issue\r\nCurrently the availability is simply the exact sentence as it is scraped from the source web page. This however is sub-optimal because it's tightly coupled with the underlying page structure also the actual sentences expected in the page are scattered throughout the codebase.\r\n\r\n##### Changes required\r\n- Create a new data type, possibly using type families that can construct different instances depending on the input.\r\n- Move the expected parsing sentences in one place only and use datatypes only.\r\n- Re-factor the current logic in codebase to use the new data type.\r\n- Change the report email to print the value of the Availability type instead of the actual sentence."}}
{"actor":{"display_login":"simone-trubian"}}