{"action":"closed","number":139,"pull_request":{"url":"https://api.github.com/repos/linz/nz-building-outlines/pulls/139","id":203686461,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzNjg2NDYx","html_url":"https://github.com/linz/nz-building-outlines/pull/139","diff_url":"https://github.com/linz/nz-building-outlines/pull/139.diff","patch_url":"https://github.com/linz/nz-building-outlines/pull/139.patch","issue_url":"https://api.github.com/repos/linz/nz-building-outlines/issues/139","number":139,"state":"closed","locked":false,"title":"Add on_error_stop in psql command","user":{"login":"YingtingChen","id":33814626,"node_id":"MDQ6VXNlcjMzODE0NjI2","avatar_url":"https://avatars1.githubusercontent.com/u/33814626?v=4","gravatar_id":"","url":"https://api.github.com/users/YingtingChen","html_url":"https://github.com/YingtingChen","followers_url":"https://api.github.com/users/YingtingChen/followers","following_url":"https://api.github.com/users/YingtingChen/following{/other_user}","gists_url":"https://api.github.com/users/YingtingChen/gists{/gist_id}","starred_url":"https://api.github.com/users/YingtingChen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YingtingChen/subscriptions","organizations_url":"https://api.github.com/users/YingtingChen/orgs","repos_url":"https://api.github.com/users/YingtingChen/repos","events_url":"https://api.github.com/users/YingtingChen/events{/privacy}","received_events_url":"https://api.github.com/users/YingtingChen/received_events","type":"User","site_admin":false},"body":"Fixes: #135   \r\n\r\n\r\n### Change Description:\r\n\r\n- Modified the `nz-buildings-load`. If there's an error from the sql, the script will catch it and then exit. \r\n\r\n### Notes for Testing:\r\n\r\ngo to folder and run `sudo make install` and run `nz-buildings-load` on one of your database. `09-buildings_functions.sql` has an error so the process should stop at this.\r\n\r\n#### Source Code Documentation Tasks:\r\n- [ ] README updated (where applicable)\r\n- [ ] CHANGELOG (Unreleased section) updated\r\n- [ ] Docstrings / comments included to help explain code\r\n\r\n#### User Documentation Tasks:\r\n- [ ] Confluence user guide updated (where applicable)\r\n\r\n#### Testing Tasks:\r\n- [ ] Added tests that fail without this change\r\n- [ ] All tests are passing in development environment\r\n- [ ] Reviewers assigned\r\n- [ ] Linked to main issue for ZenHub board\r\n","created_at":"2018-07-24T23:58:43Z","updated_at":"2018-07-25T00:22:01Z","closed_at":"2018-07-25T00:22:01Z","merged_at":null,"merge_commit_sha":"d51fd64068b22c7bf10a702ac82c714e2f1507af","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/linz/nz-building-outlines/pulls/139/commits","review_comments_url":"https://api.github.com/repos/linz/nz-building-outlines/pulls/139/comments","review_comment_url":"https://api.github.com/repos/linz/nz-building-outlines/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linz/nz-building-outlines/issues/139/comments","statuses_url":"https://api.github.com/repos/linz/nz-building-outlines/statuses/28457314843d35c3c27c1c3c2bcc8b96a4e9e75b","head":{"label":"linz:psql-on_error_stop","ref":"psql-on_error_stop","sha":"28457314843d35c3c27c1c3c2bcc8b96a4e9e75b","user":{"login":"linz","id":614813,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNDgxMw==","avatar_url":"https://avatars3.githubusercontent.com/u/614813?v=4","gravatar_id":"","url":"https://api.github.com/users/linz","html_url":"https://github.com/linz","followers_url":"https://api.github.com/users/linz/followers","following_url":"https://api.github.com/users/linz/following{/other_user}","gists_url":"https://api.github.com/users/linz/gists{/gist_id}","starred_url":"https://api.github.com/users/linz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linz/subscriptions","organizations_url":"https://api.github.com/users/linz/orgs","repos_url":"https://api.github.com/users/linz/repos","events_url":"https://api.github.com/users/linz/events{/privacy}","received_events_url":"https://api.github.com/users/linz/received_events","type":"Organization","site_admin":false},"repo":{"id":94153540,"node_id":"MDEwOlJlcG9zaXRvcnk5NDE1MzU0MA==","name":"nz-building-outlines","full_name":"linz/nz-building-outlines","owner":{"login":"linz","id":614813,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNDgxMw==","avatar_url":"https://avatars3.githubusercontent.com/u/614813?v=4","gravatar_id":"","url":"https://api.github.com/users/linz","html_url":"https://github.com/linz","followers_url":"https://api.github.com/users/linz/followers","following_url":"https://api.github.com/users/linz/following{/other_user}","gists_url":"https://api.github.com/users/linz/gists{/gist_id}","starred_url":"https://api.github.com/users/linz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linz/subscriptions","organizations_url":"https://api.github.com/users/linz/orgs","repos_url":"https://api.github.com/users/linz/repos","events_url":"https://api.github.com/users/linz/events{/privacy}","received_events_url":"https://api.github.com/users/linz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linz/nz-building-outlines","description":":house: NZ Buildings | PostGIS schema and documentation, comparison functions","fork":false,"url":"https://api.github.com/repos/linz/nz-building-outlines","forks_url":"https://api.github.com/repos/linz/nz-building-outlines/forks","keys_url":"https://api.github.com/repos/linz/nz-building-outlines/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linz/nz-building-outlines/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linz/nz-building-outlines/teams","hooks_url":"https://api.github.com/repos/linz/nz-building-outlines/hooks","issue_events_url":"https://api.github.com/repos/linz/nz-building-outlines/issues/events{/number}","events_url":"https://api.github.com/repos/linz/nz-building-outlines/events","assignees_url":"https://api.github.com/repos/linz/nz-building-outlines/assignees{/user}","branches_url":"https://api.github.com/repos/linz/nz-building-outlines/branches{/branch}","tags_url":"https://api.github.com/repos/linz/nz-building-outlines/tags","blobs_url":"https://api.github.com/repos/linz/nz-building-outlines/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linz/nz-building-outlines/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linz/nz-building-outlines/git/refs{/sha}","trees_url":"https://api.github.com/repos/linz/nz-building-outlines/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linz/nz-building-outlines/statuses/{sha}","languages_url":"https://api.github.com/repos/linz/nz-building-outlines/languages","stargazers_url":"https://api.github.com/repos/linz/nz-building-outlines/stargazers","contributors_url":"https://api.github.com/repos/linz/nz-building-outlines/contributors","subscribers_url":"https://api.github.com/repos/linz/nz-building-outlines/subscribers","subscription_url":"https://api.github.com/repos/linz/nz-building-outlines/subscription","commits_url":"https://api.github.com/repos/linz/nz-building-outlines/commits{/sha}","git_commits_url":"https://api.github.com/repos/linz/nz-building-outlines/git/commits{/sha}","comments_url":"https://api.github.com/repos/linz/nz-building-outlines/comments{/number}","issue_comment_url":"https://api.github.com/repos/linz/nz-building-outlines/issues/comments{/number}","contents_url":"https://api.github.com/repos/linz/nz-building-outlines/contents/{+path}","compare_url":"https://api.github.com/repos/linz/nz-building-outlines/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linz/nz-building-outlines/merges","archive_url":"https://api.github.com/repos/linz/nz-building-outlines/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linz/nz-building-outlines/downloads","issues_url":"https://api.github.com/repos/linz/nz-building-outlines/issues{/number}","pulls_url":"https://api.github.com/repos/linz/nz-building-outlines/pulls{/number}","milestones_url":"https://api.github.com/repos/linz/nz-building-outlines/milestones{/number}","notifications_url":"https://api.github.com/repos/linz/nz-building-outlines/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linz/nz-building-outlines/labels{/name}","releases_url":"https://api.github.com/repos/linz/nz-building-outlines/releases{/id}","deployments_url":"https://api.github.com/repos/linz/nz-building-outlines/deployments","created_at":"2017-06-13T00:49:47Z","updated_at":"2018-07-24T22:45:51Z","pushed_at":"2018-07-25T00:19:51Z","git_url":"git://github.com/linz/nz-building-outlines.git","ssh_url":"git@github.com:linz/nz-building-outlines.git","clone_url":"https://github.com/linz/nz-building-outlines.git","svn_url":"https://github.com/linz/nz-building-outlines","homepage":"","size":3248,"stargazers_count":0,"watchers_count":0,"language":"SQLPL","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"linz:master","ref":"master","sha":"a88dd9a6c39b2838c7024b6abad3832bb314fef2","user":{"login":"linz","id":614813,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNDgxMw==","avatar_url":"https://avatars3.githubusercontent.com/u/614813?v=4","gravatar_id":"","url":"https://api.github.com/users/linz","html_url":"https://github.com/linz","followers_url":"https://api.github.com/users/linz/followers","following_url":"https://api.github.com/users/linz/following{/other_user}","gists_url":"https://api.github.com/users/linz/gists{/gist_id}","starred_url":"https://api.github.com/users/linz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linz/subscriptions","organizations_url":"https://api.github.com/users/linz/orgs","repos_url":"https://api.github.com/users/linz/repos","events_url":"https://api.github.com/users/linz/events{/privacy}","received_events_url":"https://api.github.com/users/linz/received_events","type":"Organization","site_admin":false},"repo":{"id":94153540,"node_id":"MDEwOlJlcG9zaXRvcnk5NDE1MzU0MA==","name":"nz-building-outlines","full_name":"linz/nz-building-outlines","owner":{"login":"linz","id":614813,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNDgxMw==","avatar_url":"https://avatars3.githubusercontent.com/u/614813?v=4","gravatar_id":"","url":"https://api.github.com/users/linz","html_url":"https://github.com/linz","followers_url":"https://api.github.com/users/linz/followers","following_url":"https://api.github.com/users/linz/following{/other_user}","gists_url":"https://api.github.com/users/linz/gists{/gist_id}","starred_url":"https://api.github.com/users/linz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linz/subscriptions","organizations_url":"https://api.github.com/users/linz/orgs","repos_url":"https://api.github.com/users/linz/repos","events_url":"https://api.github.com/users/linz/events{/privacy}","received_events_url":"https://api.github.com/users/linz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linz/nz-building-outlines","description":":house: NZ Buildings | PostGIS schema and documentation, comparison functions","fork":false,"url":"https://api.github.com/repos/linz/nz-building-outlines","forks_url":"https://api.github.com/repos/linz/nz-building-outlines/forks","keys_url":"https://api.github.com/repos/linz/nz-building-outlines/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linz/nz-building-outlines/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linz/nz-building-outlines/teams","hooks_url":"https://api.github.com/repos/linz/nz-building-outlines/hooks","issue_events_url":"https://api.github.com/repos/linz/nz-building-outlines/issues/events{/number}","events_url":"https://api.github.com/repos/linz/nz-building-outlines/events","assignees_url":"https://api.github.com/repos/linz/nz-building-outlines/assignees{/user}","branches_url":"https://api.github.com/repos/linz/nz-building-outlines/branches{/branch}","tags_url":"https://api.github.com/repos/linz/nz-building-outlines/tags","blobs_url":"https://api.github.com/repos/linz/nz-building-outlines/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linz/nz-building-outlines/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linz/nz-building-outlines/git/refs{/sha}","trees_url":"https://api.github.com/repos/linz/nz-building-outlines/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linz/nz-building-outlines/statuses/{sha}","languages_url":"https://api.github.com/repos/linz/nz-building-outlines/languages","stargazers_url":"https://api.github.com/repos/linz/nz-building-outlines/stargazers","contributors_url":"https://api.github.com/repos/linz/nz-building-outlines/contributors","subscribers_url":"https://api.github.com/repos/linz/nz-building-outlines/subscribers","subscription_url":"https://api.github.com/repos/linz/nz-building-outlines/subscription","commits_url":"https://api.github.com/repos/linz/nz-building-outlines/commits{/sha}","git_commits_url":"https://api.github.com/repos/linz/nz-building-outlines/git/commits{/sha}","comments_url":"https://api.github.com/repos/linz/nz-building-outlines/comments{/number}","issue_comment_url":"https://api.github.com/repos/linz/nz-building-outlines/issues/comments{/number}","contents_url":"https://api.github.com/repos/linz/nz-building-outlines/contents/{+path}","compare_url":"https://api.github.com/repos/linz/nz-building-outlines/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linz/nz-building-outlines/merges","archive_url":"https://api.github.com/repos/linz/nz-building-outlines/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linz/nz-building-outlines/downloads","issues_url":"https://api.github.com/repos/linz/nz-building-outlines/issues{/number}","pulls_url":"https://api.github.com/repos/linz/nz-building-outlines/pulls{/number}","milestones_url":"https://api.github.com/repos/linz/nz-building-outlines/milestones{/number}","notifications_url":"https://api.github.com/repos/linz/nz-building-outlines/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linz/nz-building-outlines/labels{/name}","releases_url":"https://api.github.com/repos/linz/nz-building-outlines/releases{/id}","deployments_url":"https://api.github.com/repos/linz/nz-building-outlines/deployments","created_at":"2017-06-13T00:49:47Z","updated_at":"2018-07-24T22:45:51Z","pushed_at":"2018-07-25T00:19:51Z","git_url":"git://github.com/linz/nz-building-outlines.git","ssh_url":"git@github.com:linz/nz-building-outlines.git","clone_url":"https://github.com/linz/nz-building-outlines.git","svn_url":"https://github.com/linz/nz-building-outlines","homepage":"","size":3248,"stargazers_count":0,"watchers_count":0,"language":"SQLPL","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linz/nz-building-outlines/pulls/139"},"html":{"href":"https://github.com/linz/nz-building-outlines/pull/139"},"issue":{"href":"https://api.github.com/repos/linz/nz-building-outlines/issues/139"},"comments":{"href":"https://api.github.com/repos/linz/nz-building-outlines/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/linz/nz-building-outlines/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/linz/nz-building-outlines/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linz/nz-building-outlines/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/linz/nz-building-outlines/statuses/28457314843d35c3c27c1c3c2bcc8b96a4e9e75b"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"unstable","merged_by":null,"comments":2,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":29,"deletions":10,"changed_files":1}}
{"actor":{"display_login":"dwsilk"}}