{"action":"closed","number":722,"pull_request":{"url":"https://api.github.com/repos/codeforamerica/michigan-benefits/pulls/722","id":177607674,"html_url":"https://github.com/codeforamerica/michigan-benefits/pull/722","diff_url":"https://github.com/codeforamerica/michigan-benefits/pull/722.diff","patch_url":"https://github.com/codeforamerica/michigan-benefits/pull/722.patch","issue_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/issues/722","number":722,"state":"closed","locked":false,"title":"Integrated/married","user":{"login":"hartsick","id":3675092,"avatar_url":"https://avatars0.githubusercontent.com/u/3675092?v=4","gravatar_id":"","url":"https://api.github.com/users/hartsick","html_url":"https://github.com/hartsick","followers_url":"https://api.github.com/users/hartsick/followers","following_url":"https://api.github.com/users/hartsick/following{/other_user}","gists_url":"https://api.github.com/users/hartsick/gists{/gist_id}","starred_url":"https://api.github.com/users/hartsick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartsick/subscriptions","organizations_url":"https://api.github.com/users/hartsick/orgs","repos_url":"https://api.github.com/users/hartsick/repos","events_url":"https://api.github.com/users/hartsick/events{/privacy}","received_events_url":"https://api.github.com/users/hartsick/received_events","type":"User","site_admin":false},"body":"Does a couple of feature things:\r\n\r\n1) If user has added a member and that member is their spouse, mark them as married (on `household_member`) and as someone in the household being married (on `navigator`).\r\n1) *In single-member household*: asks user if they're married\r\n1) *In multi-member household with no known spouses*: asks user if anyone in household is married.\r\n1) *In multi-member household with known married people*: asks user who is married. On this screen, they can't deselect members that have indicated they're married by relation \"spouse\", and they must select at least one married person.\r\n\r\nCommits have a decent descriptions of other things done along the way.\r\n\r\n![screen shot 2018-03-26 at 5 51 36 pm](https://user-images.githubusercontent.com/3675092/37941024-bd3d54a2-3120-11e8-961c-506bdbb23e37.png)\r\n![screen shot 2018-03-26 at 6 13 15 pm](https://user-images.githubusercontent.com/3675092/37941187-c57449c2-3121-11e8-8b79-7dfb56703199.png)\r\n![screen shot 2018-03-26 at 5 51 51 pm](https://user-images.githubusercontent.com/3675092/37941026-bf42e7bc-3120-11e8-9990-55d7067a9ad5.png)\r\n\r\nThere ended up being a good amount of logical complexity in here. I started to feel the pain of two sources of truth (navigator's `anyone_married` vs member's `married`), but ultimately think they serve different purposes in this PR.\r\n\r\nI'd still like to refactor the 'update' logic for multiple members—will tag a note with the relevant lines to get your thoughts. We had talked about refactoring this the next time it came up and I wanted to do so, but I ran out of time and wanted to get this up because my calendar is packed tomorrow. Some clear patterns have emerged, though!","created_at":"2018-03-27T01:15:59Z","updated_at":"2018-03-27T18:43:33Z","closed_at":"2018-03-27T18:43:33Z","merged_at":"2018-03-27T18:43:33Z","merge_commit_sha":"0aa18b1a4e68d9d09fc436f7442dac9407477de4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/pulls/722/commits","review_comments_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/pulls/722/comments","review_comment_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/issues/722/comments","statuses_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/statuses/6cd35e73c52a265b032bdff4c674888bb2b0f1af","head":{"label":"codeforamerica:integrated/married","ref":"integrated/married","sha":"6cd35e73c52a265b032bdff4c674888bb2b0f1af","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars2.githubusercontent.com/u/337792?v=4","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":83607937,"name":"michigan-benefits","full_name":"codeforamerica/michigan-benefits","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars2.githubusercontent.com/u/337792?v=4","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/michigan-benefits","description":"Digital Assister for Michigan","fork":false,"url":"https://api.github.com/repos/codeforamerica/michigan-benefits","forks_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/forks","keys_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/teams","hooks_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/events","assignees_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/tags","blobs_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/subscription","commits_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/merges","archive_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/downloads","issues_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/releases{/id}","deployments_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/deployments","created_at":"2017-03-01T22:24:46Z","updated_at":"2018-03-26T17:32:27Z","pushed_at":"2018-03-27T18:43:33Z","git_url":"git://github.com/codeforamerica/michigan-benefits.git","ssh_url":"git@github.com:codeforamerica/michigan-benefits.git","clone_url":"https://github.com/codeforamerica/michigan-benefits.git","svn_url":"https://github.com/codeforamerica/michigan-benefits","homepage":"","size":27986,"stargazers_count":15,"watchers_count":15,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":6,"open_issues":1,"watchers":15,"default_branch":"master"}},"base":{"label":"codeforamerica:master","ref":"master","sha":"a1f008c172ae14ce206d0aeb03b4b602b6e007ab","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars2.githubusercontent.com/u/337792?v=4","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":83607937,"name":"michigan-benefits","full_name":"codeforamerica/michigan-benefits","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars2.githubusercontent.com/u/337792?v=4","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/michigan-benefits","description":"Digital Assister for Michigan","fork":false,"url":"https://api.github.com/repos/codeforamerica/michigan-benefits","forks_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/forks","keys_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/teams","hooks_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/events","assignees_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/tags","blobs_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/subscription","commits_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/merges","archive_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/downloads","issues_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/releases{/id}","deployments_url":"https://api.github.com/repos/codeforamerica/michigan-benefits/deployments","created_at":"2017-03-01T22:24:46Z","updated_at":"2018-03-26T17:32:27Z","pushed_at":"2018-03-27T18:43:33Z","git_url":"git://github.com/codeforamerica/michigan-benefits.git","ssh_url":"git@github.com:codeforamerica/michigan-benefits.git","clone_url":"https://github.com/codeforamerica/michigan-benefits.git","svn_url":"https://github.com/codeforamerica/michigan-benefits","homepage":"","size":27986,"stargazers_count":15,"watchers_count":15,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":6,"open_issues":1,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeforamerica/michigan-benefits/pulls/722"},"html":{"href":"https://github.com/codeforamerica/michigan-benefits/pull/722"},"issue":{"href":"https://api.github.com/repos/codeforamerica/michigan-benefits/issues/722"},"comments":{"href":"https://api.github.com/repos/codeforamerica/michigan-benefits/issues/722/comments"},"review_comments":{"href":"https://api.github.com/repos/codeforamerica/michigan-benefits/pulls/722/comments"},"review_comment":{"href":"https://api.github.com/repos/codeforamerica/michigan-benefits/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeforamerica/michigan-benefits/pulls/722/commits"},"statuses":{"href":"https://api.github.com/repos/codeforamerica/michigan-benefits/statuses/6cd35e73c52a265b032bdff4c674888bb2b0f1af"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"hartsick","id":3675092,"avatar_url":"https://avatars0.githubusercontent.com/u/3675092?v=4","gravatar_id":"","url":"https://api.github.com/users/hartsick","html_url":"https://github.com/hartsick","followers_url":"https://api.github.com/users/hartsick/followers","following_url":"https://api.github.com/users/hartsick/following{/other_user}","gists_url":"https://api.github.com/users/hartsick/gists{/gist_id}","starred_url":"https://api.github.com/users/hartsick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartsick/subscriptions","organizations_url":"https://api.github.com/users/hartsick/orgs","repos_url":"https://api.github.com/users/hartsick/repos","events_url":"https://api.github.com/users/hartsick/events{/privacy}","received_events_url":"https://api.github.com/users/hartsick/received_events","type":"User","site_admin":false},"comments":0,"review_comments":4,"maintainer_can_modify":false,"commits":5,"additions":716,"deletions":257,"changed_files":42}}
{"actor":{"display_login":"hartsick"}}