{"action":"created","issue":{"url":"https://api.github.com/repos/toggl/mobileapp/issues/2419","repository_url":"https://api.github.com/repos/toggl/mobileapp","labels_url":"https://api.github.com/repos/toggl/mobileapp/issues/2419/labels{/name}","comments_url":"https://api.github.com/repos/toggl/mobileapp/issues/2419/comments","events_url":"https://api.github.com/repos/toggl/mobileapp/issues/2419/events","html_url":"https://github.com/toggl/mobileapp/pull/2419","id":330618256,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzNTgzMTQ5","number":2419,"title":"Refactor preferences model","user":{"login":"Odrakir","id":724743,"node_id":"MDQ6VXNlcjcyNDc0Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/724743?v=4","gravatar_id":"","url":"https://api.github.com/users/Odrakir","html_url":"https://github.com/Odrakir","followers_url":"https://api.github.com/users/Odrakir/followers","following_url":"https://api.github.com/users/Odrakir/following{/other_user}","gists_url":"https://api.github.com/users/Odrakir/gists{/gist_id}","starred_url":"https://api.github.com/users/Odrakir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Odrakir/subscriptions","organizations_url":"https://api.github.com/users/Odrakir/orgs","repos_url":"https://api.github.com/users/Odrakir/repos","events_url":"https://api.github.com/users/Odrakir/events{/privacy}","received_events_url":"https://api.github.com/users/Odrakir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-08T11:14:46Z","updated_at":"2018-06-11T06:17:57Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/toggl/mobileapp/pulls/2419","html_url":"https://github.com/toggl/mobileapp/pull/2419","diff_url":"https://github.com/toggl/mobileapp/pull/2419.diff","patch_url":"https://github.com/toggl/mobileapp/pull/2419.patch"},"body":"More or less the same deal as with `Client`.\r\n\r\nWe loose validation for now. And also, in this case I'm forced to set a default value in the constructor for `SyncStatus`. Does that look ok?"},"comment":{"url":"https://api.github.com/repos/toggl/mobileapp/issues/comments/396133790","html_url":"https://github.com/toggl/mobileapp/pull/2419#issuecomment-396133790","issue_url":"https://api.github.com/repos/toggl/mobileapp/issues/2419","id":396133790,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjEzMzc5MA==","user":{"login":"Odrakir","id":724743,"node_id":"MDQ6VXNlcjcyNDc0Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/724743?v=4","gravatar_id":"","url":"https://api.github.com/users/Odrakir","html_url":"https://github.com/Odrakir","followers_url":"https://api.github.com/users/Odrakir/followers","following_url":"https://api.github.com/users/Odrakir/following{/other_user}","gists_url":"https://api.github.com/users/Odrakir/gists{/gist_id}","starred_url":"https://api.github.com/users/Odrakir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Odrakir/subscriptions","organizations_url":"https://api.github.com/users/Odrakir/orgs","repos_url":"https://api.github.com/users/Odrakir/repos","events_url":"https://api.github.com/users/Odrakir/events{/privacy}","received_events_url":"https://api.github.com/users/Odrakir/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T06:17:57Z","updated_at":"2018-06-11T06:17:57Z","author_association":"CONTRIBUTOR","body":"I think the only way to not loose validation is having creation DTOs. Otherwise, we need to have these models without some of its parameters when instantiating them for DB creation. We could have 2 different ways of constructing them (which is kind of what was going on until now), but I don't believe that's a good solution."}}
{"actor":{"display_login":"Odrakir"}}