{"action":"closed","number":57,"pull_request":{"url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/pulls/57","id":33935740,"html_url":"https://github.com/mysociety/popolo-viewer-sinatra/pull/57","diff_url":"https://github.com/mysociety/popolo-viewer-sinatra/pull/57.diff","patch_url":"https://github.com/mysociety/popolo-viewer-sinatra/pull/57.patch","issue_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/issues/57","number":57,"state":"closed","locked":false,"title":"Only show legislative memberships on a Person page","user":{"login":"tmtmtmtm","id":57483,"avatar_url":"https://avatars.githubusercontent.com/u/57483?v=3","gravatar_id":"","url":"https://api.github.com/users/tmtmtmtm","html_url":"https://github.com/tmtmtmtm","followers_url":"https://api.github.com/users/tmtmtmtm/followers","following_url":"https://api.github.com/users/tmtmtmtm/following{/other_user}","gists_url":"https://api.github.com/users/tmtmtmtm/gists{/gist_id}","starred_url":"https://api.github.com/users/tmtmtmtm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmtmtmtm/subscriptions","organizations_url":"https://api.github.com/users/tmtmtmtm/orgs","repos_url":"https://api.github.com/users/tmtmtmtm/repos","events_url":"https://api.github.com/users/tmtmtmtm/events{/privacy}","received_events_url":"https://api.github.com/users/tmtmtmtm/received_events","type":"User","site_admin":false},"body":"A Person page is breaking when viewing someone who’s in both the Legislature and the Executive\r\n\r\nAs we’re not really handling Executive positions at all yet, make this display only legislative memberships for now.\r\n\r\nBefore:\r\n![screen shot 2015-04-23 at 08 59 22](https://cloud.githubusercontent.com/assets/57483/7292842/193cfafc-e997-11e4-9ef6-59f810fcfec4.png)\r\n\r\nAfter:\r\n![david melding 2015-04-23 at 09 58 01](https://cloud.githubusercontent.com/assets/57483/7293736/5b6adcde-e99f-11e4-82e9-809fa2f1cf70.png)\r\n\r\n\r\nFixes #51 \r\n\r\n<!---\r\n@huboard:{\"order\":14.0}\r\n-->\r\n","created_at":"2015-04-23T08:57:50Z","updated_at":"2015-04-23T09:49:43Z","closed_at":"2015-04-23T09:49:43Z","merged_at":"2015-04-23T09:49:43Z","merge_commit_sha":"f6a50ed345f30d336d1d9572b9bb084102c28eb0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/pulls/57/commits","review_comments_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/pulls/57/comments","review_comment_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/issues/57/comments","statuses_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/statuses/19bdff5e3e19c44aa33ac110e323c0260cdbb682","head":{"label":"mysociety:51-broken_person","ref":"51-broken_person","sha":"19bdff5e3e19c44aa33ac110e323c0260cdbb682","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":33254196,"name":"popolo-viewer-sinatra","full_name":"mysociety/popolo-viewer-sinatra","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/popolo-viewer-sinatra","description":"Sinatra app for viewing Popolo data","fork":false,"url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra","forks_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/forks","keys_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/teams","hooks_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/hooks","issue_events_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/events","assignees_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/tags","blobs_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/languages","stargazers_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/stargazers","contributors_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/contributors","subscribers_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/subscribers","subscription_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/subscription","commits_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/merges","archive_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/downloads","issues_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/releases{/id}","created_at":"2015-04-01T15:02:20Z","updated_at":"2015-04-23T09:49:43Z","pushed_at":"2015-04-23T09:49:43Z","git_url":"git://github.com/mysociety/popolo-viewer-sinatra.git","ssh_url":"git@github.com:mysociety/popolo-viewer-sinatra.git","clone_url":"https://github.com/mysociety/popolo-viewer-sinatra.git","svn_url":"https://github.com/mysociety/popolo-viewer-sinatra","homepage":null,"size":1917,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":0,"default_branch":"master"}},"base":{"label":"mysociety:master","ref":"master","sha":"d18ca00269ea99f21b997987d8371819951ab2b7","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":33254196,"name":"popolo-viewer-sinatra","full_name":"mysociety/popolo-viewer-sinatra","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/popolo-viewer-sinatra","description":"Sinatra app for viewing Popolo data","fork":false,"url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra","forks_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/forks","keys_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/teams","hooks_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/hooks","issue_events_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/events","assignees_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/tags","blobs_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/languages","stargazers_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/stargazers","contributors_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/contributors","subscribers_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/subscribers","subscription_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/subscription","commits_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/merges","archive_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/downloads","issues_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/releases{/id}","created_at":"2015-04-01T15:02:20Z","updated_at":"2015-04-23T09:49:43Z","pushed_at":"2015-04-23T09:49:43Z","git_url":"git://github.com/mysociety/popolo-viewer-sinatra.git","ssh_url":"git@github.com:mysociety/popolo-viewer-sinatra.git","clone_url":"https://github.com/mysociety/popolo-viewer-sinatra.git","svn_url":"https://github.com/mysociety/popolo-viewer-sinatra","homepage":null,"size":1917,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/pulls/57"},"html":{"href":"https://github.com/mysociety/popolo-viewer-sinatra/pull/57"},"issue":{"href":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/issues/57"},"comments":{"href":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/mysociety/popolo-viewer-sinatra/statuses/19bdff5e3e19c44aa33ac110e323c0260cdbb682"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tmtmtmtm","id":57483,"avatar_url":"https://avatars.githubusercontent.com/u/57483?v=3","gravatar_id":"","url":"https://api.github.com/users/tmtmtmtm","html_url":"https://github.com/tmtmtmtm","followers_url":"https://api.github.com/users/tmtmtmtm/followers","following_url":"https://api.github.com/users/tmtmtmtm/following{/other_user}","gists_url":"https://api.github.com/users/tmtmtmtm/gists{/gist_id}","starred_url":"https://api.github.com/users/tmtmtmtm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmtmtmtm/subscriptions","organizations_url":"https://api.github.com/users/tmtmtmtm/orgs","repos_url":"https://api.github.com/users/tmtmtmtm/repos","events_url":"https://api.github.com/users/tmtmtmtm/events{/privacy}","received_events_url":"https://api.github.com/users/tmtmtmtm/received_events","type":"User","site_admin":false},"comments":1,"review_comments":2,"commits":1,"additions":61,"deletions":3,"changed_files":5}}