{"action":"closed","number":1106,"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/1106","id":350150707,"node_id":"MDExOlB1bGxSZXF1ZXN0MzUwMTUwNzA3","html_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid/pull/1106","diff_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid/pull/1106.diff","patch_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid/pull/1106.patch","issue_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/1106","number":1106,"state":"closed","locked":false,"title":"Ap 1121 event driven widgets","user":{"login":"stephenrichards","id":115617,"node_id":"MDQ6VXNlcjExNTYxNw==","avatar_url":"https://avatars1.githubusercontent.com/u/115617?v=4","gravatar_id":"","url":"https://api.github.com/users/stephenrichards","html_url":"https://github.com/stephenrichards","followers_url":"https://api.github.com/users/stephenrichards/followers","following_url":"https://api.github.com/users/stephenrichards/following{/other_user}","gists_url":"https://api.github.com/users/stephenrichards/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenrichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenrichards/subscriptions","organizations_url":"https://api.github.com/users/stephenrichards/orgs","repos_url":"https://api.github.com/users/stephenrichards/repos","events_url":"https://api.github.com/users/stephenrichards/events{/privacy}","received_events_url":"https://api.github.com/users/stephenrichards/received_events","type":"User","site_admin":false},"body":"## What\r\n\r\n[Make dashboard widgets event-driven](https://dsdmoj.atlassian.net/browse/AP-1121)\r\n\r\nCall the dashboard widgets as the objects save, this means no waits for the cron jobs to fire and instant geckoboard gratification.\r\nThis means that there are less resources running in K8s and less jobs being fired at the geckoboard API which should reduce the sentry complaints about too many requests being sent.\r\n\r\n## Checklist\r\n\r\nBefore you ask people to review this PR:\r\n\r\n- [x] Tests and rubocop should be passing: `bundle exec rake`\r\n- [x] Github should not be reporting conflicts; you should have recently run `git rebase master`.\r\n- [x] There should be no unnecessary whitespace changes. These make diffs harder to read and conflicts more likely.\r\n- [x] The PR description should say what you changed and why, with a link to the JIRA story.\r\n- [x] You should have looked at the diff against master and ensured that nothing unexpected is included in your changes.\r\n- [x] You should have checked that the commit messages say why the change was made.\r\n","created_at":"2019-12-06T18:40:46Z","updated_at":"2019-12-10T11:13:32Z","closed_at":"2019-12-10T11:13:32Z","merged_at":"2019-12-10T11:13:32Z","merge_commit_sha":"9d47c9125b1ea707503e67f0dddb8c2fa9055efe","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1589465994,"node_id":"MDU6TGFiZWwxNTg5NDY1OTk0","url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/labels/Approved","name":"Approved","color":"7fd662","default":false,"description":"Code review complete - ready for UAT"}],"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/1106/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/1106/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/1106/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/statuses/32bb8b44b33e198907155ed0a896875e0b6763e4","head":{"label":"ministryofjustice:ap-1121-event-driven-widgets","ref":"ap-1121-event-driven-widgets","sha":"32bb8b44b33e198907155ed0a896875e0b6763e4","user":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":143924174,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5MjQxNzQ=","name":"laa-apply-for-legal-aid","full_name":"ministryofjustice/laa-apply-for-legal-aid","private":false,"owner":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid","description":"This api will provide various services to create a legal aid application","fork":false,"url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid","forks_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/forks","keys_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/events","assignees_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/merges","archive_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/deployments","created_at":"2018-08-07T20:34:48Z","updated_at":"2019-12-09T15:59:07Z","pushed_at":"2019-12-10T11:13:32Z","git_url":"git://github.com/ministryofjustice/laa-apply-for-legal-aid.git","ssh_url":"git@github.com:ministryofjustice/laa-apply-for-legal-aid.git","clone_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid.git","svn_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid","homepage":"","size":7954,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":10,"watchers":6,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"f04c40e78f637e7bbc19c70ee4cb2e0fcd53d141","user":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":143924174,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5MjQxNzQ=","name":"laa-apply-for-legal-aid","full_name":"ministryofjustice/laa-apply-for-legal-aid","private":false,"owner":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid","description":"This api will provide various services to create a legal aid application","fork":false,"url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid","forks_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/forks","keys_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/events","assignees_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/merges","archive_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/deployments","created_at":"2018-08-07T20:34:48Z","updated_at":"2019-12-09T15:59:07Z","pushed_at":"2019-12-10T11:13:32Z","git_url":"git://github.com/ministryofjustice/laa-apply-for-legal-aid.git","ssh_url":"git@github.com:ministryofjustice/laa-apply-for-legal-aid.git","clone_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid.git","svn_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid","homepage":"","size":7954,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":10,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/1106"},"html":{"href":"https://github.com/ministryofjustice/laa-apply-for-legal-aid/pull/1106"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/1106"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/1106/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/1106/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/1106/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/statuses/32bb8b44b33e198907155ed0a896875e0b6763e4"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"colinbruce","id":6757677,"node_id":"MDQ6VXNlcjY3NTc2Nzc=","avatar_url":"https://avatars1.githubusercontent.com/u/6757677?v=4","gravatar_id":"","url":"https://api.github.com/users/colinbruce","html_url":"https://github.com/colinbruce","followers_url":"https://api.github.com/users/colinbruce/followers","following_url":"https://api.github.com/users/colinbruce/following{/other_user}","gists_url":"https://api.github.com/users/colinbruce/gists{/gist_id}","starred_url":"https://api.github.com/users/colinbruce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinbruce/subscriptions","organizations_url":"https://api.github.com/users/colinbruce/orgs","repos_url":"https://api.github.com/users/colinbruce/repos","events_url":"https://api.github.com/users/colinbruce/events{/privacy}","received_events_url":"https://api.github.com/users/colinbruce/received_events","type":"User","site_admin":false},"comments":0,"review_comments":2,"maintainer_can_modify":false,"commits":5,"additions":215,"deletions":335,"changed_files":32}}
{"actor":{"display_login":"colinbruce"}}