{"action":"closed","issue":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/4121","repository_url":"https://api.github.com/repos/medic/medic-webapp","labels_url":"https://api.github.com/repos/medic/medic-webapp/issues/4121/labels{/name}","comments_url":"https://api.github.com/repos/medic/medic-webapp/issues/4121/comments","events_url":"https://api.github.com/repos/medic/medic-webapp/issues/4121/events","html_url":"https://github.com/medic/medic-webapp/issues/4121","id":290824816,"number":4121,"title":"Update Notification transition crashes sentinel if the patient id is misconfigured","user":{"login":"SCdF","id":583851,"avatar_url":"https://avatars0.githubusercontent.com/u/583851?v=4","gravatar_id":"","url":"https://api.github.com/users/SCdF","html_url":"https://github.com/SCdF","followers_url":"https://api.github.com/users/SCdF/followers","following_url":"https://api.github.com/users/SCdF/following{/other_user}","gists_url":"https://api.github.com/users/SCdF/gists{/gist_id}","starred_url":"https://api.github.com/users/SCdF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SCdF/subscriptions","organizations_url":"https://api.github.com/users/SCdF/orgs","repos_url":"https://api.github.com/users/SCdF/repos","events_url":"https://api.github.com/users/SCdF/events{/privacy}","received_events_url":"https://api.github.com/users/SCdF/received_events","type":"User","site_admin":false},"labels":[{"id":279437628,"url":"https://api.github.com/repos/medic/medic-webapp/labels/Priority:%201%20-%20High","name":"Priority: 1 - High","color":"CC0000","default":false},{"id":55021872,"url":"https://api.github.com/repos/medic/medic-webapp/labels/Status:%205%20-%20Ready","name":"Status: 5 - Ready","color":"66CC66","default":false},{"id":4577664,"url":"https://api.github.com/repos/medic/medic-webapp/labels/Type:%20Bug","name":"Type: Bug","color":"c10c02","default":false},{"id":411543238,"url":"https://api.github.com/repos/medic/medic-webapp/labels/medic-sentinel","name":"medic-sentinel","color":"EEEEEE","default":false}],"state":"closed","locked":false,"assignee":{"login":"ngaruko","id":6979995,"avatar_url":"https://avatars3.githubusercontent.com/u/6979995?v=4","gravatar_id":"","url":"https://api.github.com/users/ngaruko","html_url":"https://github.com/ngaruko","followers_url":"https://api.github.com/users/ngaruko/followers","following_url":"https://api.github.com/users/ngaruko/following{/other_user}","gists_url":"https://api.github.com/users/ngaruko/gists{/gist_id}","starred_url":"https://api.github.com/users/ngaruko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngaruko/subscriptions","organizations_url":"https://api.github.com/users/ngaruko/orgs","repos_url":"https://api.github.com/users/ngaruko/repos","events_url":"https://api.github.com/users/ngaruko/events{/privacy}","received_events_url":"https://api.github.com/users/ngaruko/received_events","type":"User","site_admin":false},"assignees":[{"login":"ngaruko","id":6979995,"avatar_url":"https://avatars3.githubusercontent.com/u/6979995?v=4","gravatar_id":"","url":"https://api.github.com/users/ngaruko","html_url":"https://github.com/ngaruko","followers_url":"https://api.github.com/users/ngaruko/followers","following_url":"https://api.github.com/users/ngaruko/following{/other_user}","gists_url":"https://api.github.com/users/ngaruko/gists{/gist_id}","starred_url":"https://api.github.com/users/ngaruko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngaruko/subscriptions","organizations_url":"https://api.github.com/users/ngaruko/orgs","repos_url":"https://api.github.com/users/ngaruko/repos","events_url":"https://api.github.com/users/ngaruko/events{/privacy}","received_events_url":"https://api.github.com/users/ngaruko/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-01-23T12:50:18Z","updated_at":"2018-03-05T03:53:31Z","closed_at":"2018-03-05T03:53:31Z","author_association":"CONTRIBUTOR","body":"For project-specific information, see: https://github.com/medic/medic-projects/issues/3240\r\n\r\n```\r\nmedic_medic_medic-sentinel54.log:Error: Cannot provide registrations to template context without a patient\r\nmedic_medic_medic-sentinel54.log-    at Error (native)\r\nmedic_medic_medic-sentinel54.log-    at extendedTemplateContext (/srv/storage/gardener/data/working_dir/aHR0cDovL2xvY2FsaG9zdDo1OTg0L21lZGljL19kZXNpZ24vbWVkaWMvbWVkaWMtc2VudGluZWw=/node_modules/medic-sentinel/lib/messages.js:30:15)\r\nmedic_medic_medic-sentinel54.log-    at Object.addMessage (/srv/storage/gardener/data/working_dir/aHR0cDovL2xvY2FsaG9zdDo1OTg0L21lZGljL19kZXNpZ24vbWVkaWMvbWVkaWMtc2VudGluZWw=/node_modules/medic-sentinel/lib/messages.js:51:27)\r\nmedic_medic_medic-sentinel54.log-    at Object._addMsg (/srv/storage/gardener/data/working_dir/aHR0cDovL2xvY2FsaG9zdDo1OTg0L21lZGljL19kZXNpZ24vbWVkaWMvbWVkaWMtc2VudGluZWw=/node_modules/medic-sentinel/transitions/update_notifications.js:59:22)\r\nmedic_medic_medic-sentinel54.log-    at async.parallel (/srv/storage/gardener/data/working_dir/aHR0cDovL2xvY2FsaG9zdDo1OTg0L21lZGljL19kZXNpZ24vbWVkaWMvbWVkaWMtc2VudGluZWw=/node_modules/medic-sentinel/transitions/update_notifications.js:146:34)\r\nmedic_medic_medic-sentinel54.log-    at /srv/storage/gardener/data/working_dir/aHR0cDovL2xvY2FsaG9zdDo1OTg0L21lZGljL19kZXNpZ24vbWVkaWMvbWVkaWMtc2VudGluZWw=/node_modules/medic-sentinel/node_modules/async/dist/async.js:3838:9\r\nmedic_medic_medic-sentinel54.log-    at /srv/storage/gardener/data/working_dir/aHR0cDovL2xvY2FsaG9zdDo1OTg0L21lZGljL19kZXNpZ24vbWVkaWMvbWVkaWMtc2VudGluZWw=/node_modules/medic-sentinel/node_modules/async/dist/async.js:421:16\r\nmedic_medic_medic-sentinel54.log-    at iterateeCallback (/srv/storage/gardener/data/working_dir/aHR0cDovL2xvY2FsaG9zdDo1OTg0L21lZGljL19kZXNpZ24vbWVkaWMvbWVkaWMtc2VudGluZWw=/node_modules/medic-sentinel/node_modules/async/dist/async.js:928:24)\r\nmedic_medic_medic-sentinel54.log-    at /srv/storage/gardener/data/working_dir/aHR0cDovL2xvY2FsaG9zdDo1OTg0L21lZGljL19kZXNpZ24vbWVkaWMvbWVkaWMtc2VudGluZWw=/node_modules/medic-sentinel/node_modules/async/dist/async.js:906:16\r\nmedic_medic_medic-sentinel54.log-    at /srv/storage/gardener/data/working_dir/aHR0cDovL2xvY2FsaG9zdDo1OTg0L21lZGljL19kZXNpZ24vbWVkaWMvbWVkaWMtc2VudGluZWw=/node_modules/medic-sentinel/node_modules/async/dist/async.js:3835:13\r\n```\r\n\r\nThis occurs if the patient is not attached correctly.\r\n\r\nIt's not clear if the solution is to change the Error into a validation error that attaches to the document, or if the code should not get this far with a misconfigured patient."}}
{"actor":{"display_login":"ngaruko"}}