{"action":"created","comment":{"url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/pulls/comments/214306303","pull_request_review_id":151334680,"id":214306303,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDMwNjMwMw==","diff_hunk":"@@ -40,7 +40,21 @@\n         </td>\n         <td>\n           <%= link_to(tenancy_path(id: tenancy.ref), class: 'tenancy_list__link') do %>\n-            <span class=\"tenancy_list__<%= tenancy.band %>\"><%= tenancy.score %></span>\n+            <span class=\"tenancy_list__<%= tenancy.band %>\"><%= tenancy.score %>\n+              <div class=\"priority_breakdown\">\n+                <p>\n+                  Balance <%= tenancy.current_balance %> contributed <%= tenancy.balance_contribution %><br />\n+                  Days in arrears <%= tenancy.days_in_arrears %> contributed <%= tenancy.days_in_arrears_contribution %><br />\n+                  Days since last payment <%= tenancy.days_since_last_payment %> contributed <%= tenancy.days_since_last_payment_contribution %><br />\n+                  Difference in payment amounts for the last three payments of £<%= tenancy.payment_amount_delta %> contributed <%= tenancy.payment_amount_delta_contribution %><br />\n+                  Time difference between last three payments of <%= tenancy.payment_date_delta %> days contributed <%= tenancy.payment_date_delta_contribution %><br />\n+                  Number of histoirc broken agreements (<%= tenancy.number_of_broken_agreements %>) contributed <%= tenancy.number_of_broken_agreements_contribution %><br />","path":"app/views/tenancies/index.html.erb","position":13,"original_position":13,"commit_id":"13a8b93e3f0adbd3db7dca1ffc5da5e712224176","original_commit_id":"13a8b93e3f0adbd3db7dca1ffc5da5e712224176","user":{"login":"madetech-jeffpinkham","id":42766962,"node_id":"MDQ6VXNlcjQyNzY2OTYy","avatar_url":"https://avatars0.githubusercontent.com/u/42766962?v=4","gravatar_id":"","url":"https://api.github.com/users/madetech-jeffpinkham","html_url":"https://github.com/madetech-jeffpinkham","followers_url":"https://api.github.com/users/madetech-jeffpinkham/followers","following_url":"https://api.github.com/users/madetech-jeffpinkham/following{/other_user}","gists_url":"https://api.github.com/users/madetech-jeffpinkham/gists{/gist_id}","starred_url":"https://api.github.com/users/madetech-jeffpinkham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madetech-jeffpinkham/subscriptions","organizations_url":"https://api.github.com/users/madetech-jeffpinkham/orgs","repos_url":"https://api.github.com/users/madetech-jeffpinkham/repos","events_url":"https://api.github.com/users/madetech-jeffpinkham/events{/privacy}","received_events_url":"https://api.github.com/users/madetech-jeffpinkham/received_events","type":"User","site_admin":false},"body":"\"histoirc\" should be \"historic\"","created_at":"2018-08-31T10:08:50Z","updated_at":"2018-08-31T10:08:50Z","html_url":"https://github.com/LBHackney-IT/LBH-IncomeCollection/pull/60#discussion_r214306303","pull_request_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/pulls/60","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/pulls/comments/214306303"},"html":{"href":"https://github.com/LBHackney-IT/LBH-IncomeCollection/pull/60#discussion_r214306303"},"pull_request":{"href":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/pulls/60"}}},"pull_request":{"url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/pulls/60","id":212334748,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyMzM0NzQ4","html_url":"https://github.com/LBHackney-IT/LBH-IncomeCollection/pull/60","diff_url":"https://github.com/LBHackney-IT/LBH-IncomeCollection/pull/60.diff","patch_url":"https://github.com/LBHackney-IT/LBH-IncomeCollection/pull/60.patch","issue_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/issues/60","number":60,"state":"open","locked":false,"title":"Show priority breakdown on list page","user":{"login":"StevenLeighton21","id":7647632,"node_id":"MDQ6VXNlcjc2NDc2MzI=","avatar_url":"https://avatars2.githubusercontent.com/u/7647632?v=4","gravatar_id":"","url":"https://api.github.com/users/StevenLeighton21","html_url":"https://github.com/StevenLeighton21","followers_url":"https://api.github.com/users/StevenLeighton21/followers","following_url":"https://api.github.com/users/StevenLeighton21/following{/other_user}","gists_url":"https://api.github.com/users/StevenLeighton21/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenLeighton21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenLeighton21/subscriptions","organizations_url":"https://api.github.com/users/StevenLeighton21/orgs","repos_url":"https://api.github.com/users/StevenLeighton21/repos","events_url":"https://api.github.com/users/StevenLeighton21/events{/privacy}","received_events_url":"https://api.github.com/users/StevenLeighton21/received_events","type":"User","site_admin":false},"body":"![image](https://user-images.githubusercontent.com/7647632/44906637-62e2a200-ad0d-11e8-97f6-ff814c3bc90d.png)\r\n\r\nNo precedent or design for this, so any requested visual changes should be an additional task.\r\nThere's also only rudimentary handling of missing data.","created_at":"2018-08-31T10:03:26Z","updated_at":"2018-08-31T10:08:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e7c273dc4d128c68dce63da5bd1cecb6d4966f5a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/pulls/60/commits","review_comments_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/pulls/60/comments","review_comment_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/issues/60/comments","statuses_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/statuses/13a8b93e3f0adbd3db7dca1ffc5da5e712224176","head":{"label":"LBHackney-IT:show-priority-breakdown","ref":"show-priority-breakdown","sha":"13a8b93e3f0adbd3db7dca1ffc5da5e712224176","user":{"login":"LBHackney-IT","id":29410061,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NDEwMDYx","avatar_url":"https://avatars2.githubusercontent.com/u/29410061?v=4","gravatar_id":"","url":"https://api.github.com/users/LBHackney-IT","html_url":"https://github.com/LBHackney-IT","followers_url":"https://api.github.com/users/LBHackney-IT/followers","following_url":"https://api.github.com/users/LBHackney-IT/following{/other_user}","gists_url":"https://api.github.com/users/LBHackney-IT/gists{/gist_id}","starred_url":"https://api.github.com/users/LBHackney-IT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LBHackney-IT/subscriptions","organizations_url":"https://api.github.com/users/LBHackney-IT/orgs","repos_url":"https://api.github.com/users/LBHackney-IT/repos","events_url":"https://api.github.com/users/LBHackney-IT/events{/privacy}","received_events_url":"https://api.github.com/users/LBHackney-IT/received_events","type":"Organization","site_admin":false},"repo":{"id":130986323,"node_id":"MDEwOlJlcG9zaXRvcnkxMzA5ODYzMjM=","name":"LBH-IncomeCollection","full_name":"LBHackney-IT/LBH-IncomeCollection","owner":{"login":"LBHackney-IT","id":29410061,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NDEwMDYx","avatar_url":"https://avatars2.githubusercontent.com/u/29410061?v=4","gravatar_id":"","url":"https://api.github.com/users/LBHackney-IT","html_url":"https://github.com/LBHackney-IT","followers_url":"https://api.github.com/users/LBHackney-IT/followers","following_url":"https://api.github.com/users/LBHackney-IT/following{/other_user}","gists_url":"https://api.github.com/users/LBHackney-IT/gists{/gist_id}","starred_url":"https://api.github.com/users/LBHackney-IT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LBHackney-IT/subscriptions","organizations_url":"https://api.github.com/users/LBHackney-IT/orgs","repos_url":"https://api.github.com/users/LBHackney-IT/repos","events_url":"https://api.github.com/users/LBHackney-IT/events{/privacy}","received_events_url":"https://api.github.com/users/LBHackney-IT/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LBHackney-IT/LBH-IncomeCollection","description":"Income collection team MVP service","fork":false,"url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection","forks_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/forks","keys_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/teams","hooks_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/hooks","issue_events_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/issues/events{/number}","events_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/events","assignees_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/assignees{/user}","branches_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/branches{/branch}","tags_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/tags","blobs_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/git/refs{/sha}","trees_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/statuses/{sha}","languages_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/languages","stargazers_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/stargazers","contributors_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/contributors","subscribers_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/subscribers","subscription_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/subscription","commits_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/commits{/sha}","git_commits_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/git/commits{/sha}","comments_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/comments{/number}","issue_comment_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/issues/comments{/number}","contents_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/contents/{+path}","compare_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/merges","archive_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/downloads","issues_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/issues{/number}","pulls_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/pulls{/number}","milestones_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/milestones{/number}","notifications_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/labels{/name}","releases_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/releases{/id}","deployments_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/deployments","created_at":"2018-04-25T09:56:49Z","updated_at":"2018-08-29T13:24:20Z","pushed_at":"2018-08-31T10:03:27Z","git_url":"git://github.com/LBHackney-IT/LBH-IncomeCollection.git","ssh_url":"git@github.com:LBHackney-IT/LBH-IncomeCollection.git","clone_url":"https://github.com/LBHackney-IT/LBH-IncomeCollection.git","svn_url":"https://github.com/LBHackney-IT/LBH-IncomeCollection","homepage":null,"size":370,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"LBHackney-IT:master","ref":"master","sha":"183f9cfc9459d9678345e94dff7f5f670ef35025","user":{"login":"LBHackney-IT","id":29410061,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NDEwMDYx","avatar_url":"https://avatars2.githubusercontent.com/u/29410061?v=4","gravatar_id":"","url":"https://api.github.com/users/LBHackney-IT","html_url":"https://github.com/LBHackney-IT","followers_url":"https://api.github.com/users/LBHackney-IT/followers","following_url":"https://api.github.com/users/LBHackney-IT/following{/other_user}","gists_url":"https://api.github.com/users/LBHackney-IT/gists{/gist_id}","starred_url":"https://api.github.com/users/LBHackney-IT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LBHackney-IT/subscriptions","organizations_url":"https://api.github.com/users/LBHackney-IT/orgs","repos_url":"https://api.github.com/users/LBHackney-IT/repos","events_url":"https://api.github.com/users/LBHackney-IT/events{/privacy}","received_events_url":"https://api.github.com/users/LBHackney-IT/received_events","type":"Organization","site_admin":false},"repo":{"id":130986323,"node_id":"MDEwOlJlcG9zaXRvcnkxMzA5ODYzMjM=","name":"LBH-IncomeCollection","full_name":"LBHackney-IT/LBH-IncomeCollection","owner":{"login":"LBHackney-IT","id":29410061,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NDEwMDYx","avatar_url":"https://avatars2.githubusercontent.com/u/29410061?v=4","gravatar_id":"","url":"https://api.github.com/users/LBHackney-IT","html_url":"https://github.com/LBHackney-IT","followers_url":"https://api.github.com/users/LBHackney-IT/followers","following_url":"https://api.github.com/users/LBHackney-IT/following{/other_user}","gists_url":"https://api.github.com/users/LBHackney-IT/gists{/gist_id}","starred_url":"https://api.github.com/users/LBHackney-IT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LBHackney-IT/subscriptions","organizations_url":"https://api.github.com/users/LBHackney-IT/orgs","repos_url":"https://api.github.com/users/LBHackney-IT/repos","events_url":"https://api.github.com/users/LBHackney-IT/events{/privacy}","received_events_url":"https://api.github.com/users/LBHackney-IT/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LBHackney-IT/LBH-IncomeCollection","description":"Income collection team MVP service","fork":false,"url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection","forks_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/forks","keys_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/teams","hooks_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/hooks","issue_events_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/issues/events{/number}","events_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/events","assignees_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/assignees{/user}","branches_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/branches{/branch}","tags_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/tags","blobs_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/git/refs{/sha}","trees_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/statuses/{sha}","languages_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/languages","stargazers_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/stargazers","contributors_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/contributors","subscribers_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/subscribers","subscription_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/subscription","commits_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/commits{/sha}","git_commits_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/git/commits{/sha}","comments_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/comments{/number}","issue_comment_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/issues/comments{/number}","contents_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/contents/{+path}","compare_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/merges","archive_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/downloads","issues_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/issues{/number}","pulls_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/pulls{/number}","milestones_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/milestones{/number}","notifications_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/labels{/name}","releases_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/releases{/id}","deployments_url":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/deployments","created_at":"2018-04-25T09:56:49Z","updated_at":"2018-08-29T13:24:20Z","pushed_at":"2018-08-31T10:03:27Z","git_url":"git://github.com/LBHackney-IT/LBH-IncomeCollection.git","ssh_url":"git@github.com:LBHackney-IT/LBH-IncomeCollection.git","clone_url":"https://github.com/LBHackney-IT/LBH-IncomeCollection.git","svn_url":"https://github.com/LBHackney-IT/LBH-IncomeCollection","homepage":null,"size":370,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/pulls/60"},"html":{"href":"https://github.com/LBHackney-IT/LBH-IncomeCollection/pull/60"},"issue":{"href":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/issues/60"},"comments":{"href":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/LBHackney-IT/LBH-IncomeCollection/statuses/13a8b93e3f0adbd3db7dca1ffc5da5e712224176"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"madetech-jeffpinkham"}}