{"action":"created","issue":{"url":"https://api.github.com/repos/wellcometrust/platform/issues/2335","repository_url":"https://api.github.com/repos/wellcometrust/platform","labels_url":"https://api.github.com/repos/wellcometrust/platform/issues/2335/labels{/name}","comments_url":"https://api.github.com/repos/wellcometrust/platform/issues/2335/comments","events_url":"https://api.github.com/repos/wellcometrust/platform/issues/2335/events","html_url":"https://github.com/wellcometrust/platform/pull/2335","id":337457844,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NjM0NTQ3","number":2335,"title":"[WIP] Don't use defaults in our Work model","user":{"login":"alexwlchan","id":301220,"node_id":"MDQ6VXNlcjMwMTIyMA==","avatar_url":"https://avatars0.githubusercontent.com/u/301220?v=4","gravatar_id":"","url":"https://api.github.com/users/alexwlchan","html_url":"https://github.com/alexwlchan","followers_url":"https://api.github.com/users/alexwlchan/followers","following_url":"https://api.github.com/users/alexwlchan/following{/other_user}","gists_url":"https://api.github.com/users/alexwlchan/gists{/gist_id}","starred_url":"https://api.github.com/users/alexwlchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexwlchan/subscriptions","organizations_url":"https://api.github.com/users/alexwlchan/orgs","repos_url":"https://api.github.com/users/alexwlchan/repos","events_url":"https://api.github.com/users/alexwlchan/events{/privacy}","received_events_url":"https://api.github.com/users/alexwlchan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-02T10:21:09Z","updated_at":"2018-07-09T12:30:39Z","closed_at":"2018-07-09T12:30:39Z","author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/wellcometrust/platform/pulls/2335","html_url":"https://github.com/wellcometrust/platform/pull/2335","diff_url":"https://github.com/wellcometrust/platform/pull/2335.diff","patch_url":"https://github.com/wellcometrust/platform/pull/2335.patch"},"body":"Part of #2333.\r\n\r\nWhen you create an instance of `Work`, you need to specify _all_ the fields – previously we had a variety of defaults. This should make Circe stricter, and it'll be easier to spot places where we have mismatched models in play.\r\n\r\nThis patch includes a major reworking of the `WorksUtil` trait so the tests can be kept sensible (and in many cases, I’ve trimmed the setting of unnecessary attributes in tests). Plus a new test that trying to decode JSON from an old model fails (the decoding succeeded before I’d made my changes)."},"comment":{"url":"https://api.github.com/repos/wellcometrust/platform/issues/comments/403462423","html_url":"https://github.com/wellcometrust/platform/pull/2335#issuecomment-403462423","issue_url":"https://api.github.com/repos/wellcometrust/platform/issues/2335","id":403462423,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzQ2MjQyMw==","user":{"login":"alexwlchan","id":301220,"node_id":"MDQ6VXNlcjMwMTIyMA==","avatar_url":"https://avatars0.githubusercontent.com/u/301220?v=4","gravatar_id":"","url":"https://api.github.com/users/alexwlchan","html_url":"https://github.com/alexwlchan","followers_url":"https://api.github.com/users/alexwlchan/followers","following_url":"https://api.github.com/users/alexwlchan/following{/other_user}","gists_url":"https://api.github.com/users/alexwlchan/gists{/gist_id}","starred_url":"https://api.github.com/users/alexwlchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexwlchan/subscriptions","organizations_url":"https://api.github.com/users/alexwlchan/orgs","repos_url":"https://api.github.com/users/alexwlchan/repos","events_url":"https://api.github.com/users/alexwlchan/events{/privacy}","received_events_url":"https://api.github.com/users/alexwlchan/received_events","type":"User","site_admin":false},"created_at":"2018-07-09T12:30:39Z","updated_at":"2018-07-09T12:30:39Z","author_association":"MEMBER","body":"Replaced by #2403."}}
{"actor":{"display_login":"alexwlchan"}}