{"action":"closed","number":83,"pull_request":{"url":"https://api.github.com/repos/qwat/qwat-data-model/pulls/83","id":53665624,"html_url":"https://github.com/qwat/qwat-data-model/pull/83","diff_url":"https://github.com/qwat/qwat-data-model/pull/83.diff","patch_url":"https://github.com/qwat/qwat-data-model/pull/83.patch","issue_url":"https://api.github.com/repos/qwat/qwat-data-model/issues/83","number":83,"state":"closed","locked":false,"title":"fix altitude trigger","user":{"login":"tudorbarascu","id":3179646,"avatar_url":"https://avatars.githubusercontent.com/u/3179646?v=3","gravatar_id":"","url":"https://api.github.com/users/tudorbarascu","html_url":"https://github.com/tudorbarascu","followers_url":"https://api.github.com/users/tudorbarascu/followers","following_url":"https://api.github.com/users/tudorbarascu/following{/other_user}","gists_url":"https://api.github.com/users/tudorbarascu/gists{/gist_id}","starred_url":"https://api.github.com/users/tudorbarascu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tudorbarascu/subscriptions","organizations_url":"https://api.github.com/users/tudorbarascu/orgs","repos_url":"https://api.github.com/users/tudorbarascu/repos","events_url":"https://api.github.com/users/tudorbarascu/events{/privacy}","received_events_url":"https://api.github.com/users/tudorbarascu/received_events","type":"User","site_admin":false},"body":"This is to fix the insert case with 2d geometry and null altitude when:\r\n``insert into qwat_od.cover\r\n(fk_distributor, fk_installation, fk_status, geometry)\r\nSELECT 1, 1, 101, ST_SetSRID( ST_MakePoint( 400001, 400001), 21781);``\r\n\r\noutputs:\r\n\r\n``ERROR:  new row for relation \"cover\" violates check constraint \"enforce_dims_geometry\"\r\nDETAIL:  Failing row contains (2, null, 1, 101, null, 1, null, null, t, null, null, 01010000201555000000000000046A184100000000046A1841, null, 1, null, null, null, null, 1, null, null, null, null)``","created_at":"2015-12-15T06:33:41Z","updated_at":"2016-02-12T05:37:54Z","closed_at":"2016-02-12T05:37:54Z","merged_at":null,"merge_commit_sha":"dc9570fdfbddbd12dc3d19391324a657a0857805","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/qwat/qwat-data-model/pulls/83/commits","review_comments_url":"https://api.github.com/repos/qwat/qwat-data-model/pulls/83/comments","review_comment_url":"https://api.github.com/repos/qwat/qwat-data-model/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qwat/qwat-data-model/issues/83/comments","statuses_url":"https://api.github.com/repos/qwat/qwat-data-model/statuses/de4bb30c65cd90056c6aad59ab400edbc09461df","head":{"label":"tudorbarascu:master","ref":"master","sha":"de4bb30c65cd90056c6aad59ab400edbc09461df","user":{"login":"tudorbarascu","id":3179646,"avatar_url":"https://avatars.githubusercontent.com/u/3179646?v=3","gravatar_id":"","url":"https://api.github.com/users/tudorbarascu","html_url":"https://github.com/tudorbarascu","followers_url":"https://api.github.com/users/tudorbarascu/followers","following_url":"https://api.github.com/users/tudorbarascu/following{/other_user}","gists_url":"https://api.github.com/users/tudorbarascu/gists{/gist_id}","starred_url":"https://api.github.com/users/tudorbarascu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tudorbarascu/subscriptions","organizations_url":"https://api.github.com/users/tudorbarascu/orgs","repos_url":"https://api.github.com/users/tudorbarascu/repos","events_url":"https://api.github.com/users/tudorbarascu/events{/privacy}","received_events_url":"https://api.github.com/users/tudorbarascu/received_events","type":"User","site_admin":false},"repo":{"id":29286492,"name":"qwat-data-model","full_name":"tudorbarascu/qwat-data-model","owner":{"login":"tudorbarascu","id":3179646,"avatar_url":"https://avatars.githubusercontent.com/u/3179646?v=3","gravatar_id":"","url":"https://api.github.com/users/tudorbarascu","html_url":"https://github.com/tudorbarascu","followers_url":"https://api.github.com/users/tudorbarascu/followers","following_url":"https://api.github.com/users/tudorbarascu/following{/other_user}","gists_url":"https://api.github.com/users/tudorbarascu/gists{/gist_id}","starred_url":"https://api.github.com/users/tudorbarascu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tudorbarascu/subscriptions","organizations_url":"https://api.github.com/users/tudorbarascu/orgs","repos_url":"https://api.github.com/users/tudorbarascu/repos","events_url":"https://api.github.com/users/tudorbarascu/events{/privacy}","received_events_url":"https://api.github.com/users/tudorbarascu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tudorbarascu/qwat-data-model","description":"","fork":true,"url":"https://api.github.com/repos/tudorbarascu/qwat-data-model","forks_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/forks","keys_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/teams","hooks_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/hooks","issue_events_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/issues/events{/number}","events_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/events","assignees_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/assignees{/user}","branches_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/branches{/branch}","tags_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/tags","blobs_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/statuses/{sha}","languages_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/languages","stargazers_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/stargazers","contributors_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/contributors","subscribers_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/subscribers","subscription_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/subscription","commits_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/contents/{+path}","compare_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/merges","archive_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/downloads","issues_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/issues{/number}","pulls_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/pulls{/number}","milestones_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/milestones{/number}","notifications_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/labels{/name}","releases_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/releases{/id}","deployments_url":"https://api.github.com/repos/tudorbarascu/qwat-data-model/deployments","created_at":"2015-01-15T07:46:26Z","updated_at":"2015-10-04T05:20:07Z","pushed_at":"2016-02-12T05:37:54Z","git_url":"git://github.com/tudorbarascu/qwat-data-model.git","ssh_url":"git@github.com:tudorbarascu/qwat-data-model.git","clone_url":"https://github.com/tudorbarascu/qwat-data-model.git","svn_url":"https://github.com/tudorbarascu/qwat-data-model","homepage":null,"size":614,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"qwat:master","ref":"master","sha":"de4bb30c65cd90056c6aad59ab400edbc09461df","user":{"login":"qwat","id":1303359,"avatar_url":"https://avatars.githubusercontent.com/u/1303359?v=3","gravatar_id":"","url":"https://api.github.com/users/qwat","html_url":"https://github.com/qwat","followers_url":"https://api.github.com/users/qwat/followers","following_url":"https://api.github.com/users/qwat/following{/other_user}","gists_url":"https://api.github.com/users/qwat/gists{/gist_id}","starred_url":"https://api.github.com/users/qwat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qwat/subscriptions","organizations_url":"https://api.github.com/users/qwat/orgs","repos_url":"https://api.github.com/users/qwat/repos","events_url":"https://api.github.com/users/qwat/events{/privacy}","received_events_url":"https://api.github.com/users/qwat/received_events","type":"Organization","site_admin":false},"repo":{"id":28190802,"name":"qwat-data-model","full_name":"qwat/qwat-data-model","owner":{"login":"qwat","id":1303359,"avatar_url":"https://avatars.githubusercontent.com/u/1303359?v=3","gravatar_id":"","url":"https://api.github.com/users/qwat","html_url":"https://github.com/qwat","followers_url":"https://api.github.com/users/qwat/followers","following_url":"https://api.github.com/users/qwat/following{/other_user}","gists_url":"https://api.github.com/users/qwat/gists{/gist_id}","starred_url":"https://api.github.com/users/qwat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qwat/subscriptions","organizations_url":"https://api.github.com/users/qwat/orgs","repos_url":"https://api.github.com/users/qwat/repos","events_url":"https://api.github.com/users/qwat/events{/privacy}","received_events_url":"https://api.github.com/users/qwat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qwat/qwat-data-model","description":"This is the PostGIS data model for qWAT, the water management software based on QGIS","fork":false,"url":"https://api.github.com/repos/qwat/qwat-data-model","forks_url":"https://api.github.com/repos/qwat/qwat-data-model/forks","keys_url":"https://api.github.com/repos/qwat/qwat-data-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qwat/qwat-data-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qwat/qwat-data-model/teams","hooks_url":"https://api.github.com/repos/qwat/qwat-data-model/hooks","issue_events_url":"https://api.github.com/repos/qwat/qwat-data-model/issues/events{/number}","events_url":"https://api.github.com/repos/qwat/qwat-data-model/events","assignees_url":"https://api.github.com/repos/qwat/qwat-data-model/assignees{/user}","branches_url":"https://api.github.com/repos/qwat/qwat-data-model/branches{/branch}","tags_url":"https://api.github.com/repos/qwat/qwat-data-model/tags","blobs_url":"https://api.github.com/repos/qwat/qwat-data-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qwat/qwat-data-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qwat/qwat-data-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/qwat/qwat-data-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qwat/qwat-data-model/statuses/{sha}","languages_url":"https://api.github.com/repos/qwat/qwat-data-model/languages","stargazers_url":"https://api.github.com/repos/qwat/qwat-data-model/stargazers","contributors_url":"https://api.github.com/repos/qwat/qwat-data-model/contributors","subscribers_url":"https://api.github.com/repos/qwat/qwat-data-model/subscribers","subscription_url":"https://api.github.com/repos/qwat/qwat-data-model/subscription","commits_url":"https://api.github.com/repos/qwat/qwat-data-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/qwat/qwat-data-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/qwat/qwat-data-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/qwat/qwat-data-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/qwat/qwat-data-model/contents/{+path}","compare_url":"https://api.github.com/repos/qwat/qwat-data-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qwat/qwat-data-model/merges","archive_url":"https://api.github.com/repos/qwat/qwat-data-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qwat/qwat-data-model/downloads","issues_url":"https://api.github.com/repos/qwat/qwat-data-model/issues{/number}","pulls_url":"https://api.github.com/repos/qwat/qwat-data-model/pulls{/number}","milestones_url":"https://api.github.com/repos/qwat/qwat-data-model/milestones{/number}","notifications_url":"https://api.github.com/repos/qwat/qwat-data-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qwat/qwat-data-model/labels{/name}","releases_url":"https://api.github.com/repos/qwat/qwat-data-model/releases{/id}","deployments_url":"https://api.github.com/repos/qwat/qwat-data-model/deployments","created_at":"2014-12-18T16:13:05Z","updated_at":"2016-02-05T09:47:11Z","pushed_at":"2016-02-10T09:17:50Z","git_url":"git://github.com/qwat/qwat-data-model.git","ssh_url":"git@github.com:qwat/qwat-data-model.git","clone_url":"https://github.com/qwat/qwat-data-model.git","svn_url":"https://github.com/qwat/qwat-data-model","homepage":"","size":632,"stargazers_count":5,"watchers_count":5,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":21,"forks":5,"open_issues":21,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qwat/qwat-data-model/pulls/83"},"html":{"href":"https://github.com/qwat/qwat-data-model/pull/83"},"issue":{"href":"https://api.github.com/repos/qwat/qwat-data-model/issues/83"},"comments":{"href":"https://api.github.com/repos/qwat/qwat-data-model/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/qwat/qwat-data-model/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/qwat/qwat-data-model/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qwat/qwat-data-model/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/qwat/qwat-data-model/statuses/de4bb30c65cd90056c6aad59ab400edbc09461df"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":2,"review_comments":0,"commits":0,"additions":0,"deletions":0,"changed_files":0}}