{"action":"closed","number":15,"pull_request":{"url":"https://api.github.com/repos/geoadmin/deploy/pulls/15","id":53035479,"html_url":"https://github.com/geoadmin/deploy/pull/15","diff_url":"https://github.com/geoadmin/deploy/pull/15.diff","patch_url":"https://github.com/geoadmin/deploy/pull/15.patch","issue_url":"https://api.github.com/repos/geoadmin/deploy/issues/15","number":15,"state":"closed","locked":false,"title":"[WIP] check for materialized view during table and database deploy and refr…","user":{"login":"ltclm","id":5286659,"avatar_url":"https://avatars.githubusercontent.com/u/5286659?v=3","gravatar_id":"","url":"https://api.github.com/users/ltclm","html_url":"https://github.com/ltclm","followers_url":"https://api.github.com/users/ltclm/followers","following_url":"https://api.github.com/users/ltclm/following{/other_user}","gists_url":"https://api.github.com/users/ltclm/gists{/gist_id}","starred_url":"https://api.github.com/users/ltclm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltclm/subscriptions","organizations_url":"https://api.github.com/users/ltclm/orgs","repos_url":"https://api.github.com/users/ltclm/repos","events_url":"https://api.github.com/users/ltclm/events{/privacy}","received_events_url":"https://api.github.com/users/ltclm/received_events","type":"User","site_admin":false},"body":"…esh them\r\n\r\nThis pr adds automatic materialized view refresh during deploy.\r\n**database deploy:**\r\nall materialized views will be refreshed in the **source database** before starting the database deploy\r\n\r\n**table deploy:**\r\nall materialized views, referencing the deployed table will be refreshed in the **target database** after the table deploy\r\n\r\nthe deploy script is using the following postgres function to get the list of affected materialized views:\r\nDB: ``_bgdi_showmaterializedviews('database')`` -> ``_bgdi_refreshmaterializedviews('matview')``\r\nTABLE: ``_bgdi_analyzetable('table')``  -> ``_bgdi_refreshmaterializedviews('matview')`` \r\n\r\nhttps://github.com/geoadmin/bgdi-scripts/commit/b248db1cd0ba1184c10fc532787ed215d8aef9d5\r\nthese functions are added/updated in each ``_master`` database automatically by cronjob (every 15 ')","created_at":"2015-12-08T20:41:57Z","updated_at":"2015-12-09T13:07:41Z","closed_at":"2015-12-09T13:07:41Z","merged_at":"2015-12-09T13:07:41Z","merge_commit_sha":"0e1ce801ced3e88addf4e1b0d5723d9ad32817f7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/geoadmin/deploy/pulls/15/commits","review_comments_url":"https://api.github.com/repos/geoadmin/deploy/pulls/15/comments","review_comment_url":"https://api.github.com/repos/geoadmin/deploy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/geoadmin/deploy/issues/15/comments","statuses_url":"https://api.github.com/repos/geoadmin/deploy/statuses/319748943806ca2a4e5f67f8b9f1ea8d7dde330b","head":{"label":"geoadmin:dev_ltclm_update_matviews","ref":"dev_ltclm_update_matviews","sha":"319748943806ca2a4e5f67f8b9f1ea8d7dde330b","user":{"login":"geoadmin","id":3369793,"avatar_url":"https://avatars.githubusercontent.com/u/3369793?v=3","gravatar_id":"","url":"https://api.github.com/users/geoadmin","html_url":"https://github.com/geoadmin","followers_url":"https://api.github.com/users/geoadmin/followers","following_url":"https://api.github.com/users/geoadmin/following{/other_user}","gists_url":"https://api.github.com/users/geoadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/geoadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoadmin/subscriptions","organizations_url":"https://api.github.com/users/geoadmin/orgs","repos_url":"https://api.github.com/users/geoadmin/repos","events_url":"https://api.github.com/users/geoadmin/events{/privacy}","received_events_url":"https://api.github.com/users/geoadmin/received_events","type":"Organization","site_admin":false},"repo":{"id":12749462,"name":"deploy","full_name":"geoadmin/deploy","owner":{"login":"geoadmin","id":3369793,"avatar_url":"https://avatars.githubusercontent.com/u/3369793?v=3","gravatar_id":"","url":"https://api.github.com/users/geoadmin","html_url":"https://github.com/geoadmin","followers_url":"https://api.github.com/users/geoadmin/followers","following_url":"https://api.github.com/users/geoadmin/following{/other_user}","gists_url":"https://api.github.com/users/geoadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/geoadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoadmin/subscriptions","organizations_url":"https://api.github.com/users/geoadmin/orgs","repos_url":"https://api.github.com/users/geoadmin/repos","events_url":"https://api.github.com/users/geoadmin/events{/privacy}","received_events_url":"https://api.github.com/users/geoadmin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/geoadmin/deploy","description":"Deployment scripts","fork":false,"url":"https://api.github.com/repos/geoadmin/deploy","forks_url":"https://api.github.com/repos/geoadmin/deploy/forks","keys_url":"https://api.github.com/repos/geoadmin/deploy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geoadmin/deploy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geoadmin/deploy/teams","hooks_url":"https://api.github.com/repos/geoadmin/deploy/hooks","issue_events_url":"https://api.github.com/repos/geoadmin/deploy/issues/events{/number}","events_url":"https://api.github.com/repos/geoadmin/deploy/events","assignees_url":"https://api.github.com/repos/geoadmin/deploy/assignees{/user}","branches_url":"https://api.github.com/repos/geoadmin/deploy/branches{/branch}","tags_url":"https://api.github.com/repos/geoadmin/deploy/tags","blobs_url":"https://api.github.com/repos/geoadmin/deploy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geoadmin/deploy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geoadmin/deploy/git/refs{/sha}","trees_url":"https://api.github.com/repos/geoadmin/deploy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geoadmin/deploy/statuses/{sha}","languages_url":"https://api.github.com/repos/geoadmin/deploy/languages","stargazers_url":"https://api.github.com/repos/geoadmin/deploy/stargazers","contributors_url":"https://api.github.com/repos/geoadmin/deploy/contributors","subscribers_url":"https://api.github.com/repos/geoadmin/deploy/subscribers","subscription_url":"https://api.github.com/repos/geoadmin/deploy/subscription","commits_url":"https://api.github.com/repos/geoadmin/deploy/commits{/sha}","git_commits_url":"https://api.github.com/repos/geoadmin/deploy/git/commits{/sha}","comments_url":"https://api.github.com/repos/geoadmin/deploy/comments{/number}","issue_comment_url":"https://api.github.com/repos/geoadmin/deploy/issues/comments{/number}","contents_url":"https://api.github.com/repos/geoadmin/deploy/contents/{+path}","compare_url":"https://api.github.com/repos/geoadmin/deploy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geoadmin/deploy/merges","archive_url":"https://api.github.com/repos/geoadmin/deploy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geoadmin/deploy/downloads","issues_url":"https://api.github.com/repos/geoadmin/deploy/issues{/number}","pulls_url":"https://api.github.com/repos/geoadmin/deploy/pulls{/number}","milestones_url":"https://api.github.com/repos/geoadmin/deploy/milestones{/number}","notifications_url":"https://api.github.com/repos/geoadmin/deploy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geoadmin/deploy/labels{/name}","releases_url":"https://api.github.com/repos/geoadmin/deploy/releases{/id}","created_at":"2013-09-11T06:41:02Z","updated_at":"2015-05-08T18:38:40Z","pushed_at":"2015-12-09T13:07:40Z","git_url":"git://github.com/geoadmin/deploy.git","ssh_url":"git@github.com:geoadmin/deploy.git","clone_url":"https://github.com/geoadmin/deploy.git","svn_url":"https://github.com/geoadmin/deploy","homepage":null,"size":113,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"geoadmin:master","ref":"master","sha":"7ffdc170f4b093ca2bc3a8f7827aafda41ec1a02","user":{"login":"geoadmin","id":3369793,"avatar_url":"https://avatars.githubusercontent.com/u/3369793?v=3","gravatar_id":"","url":"https://api.github.com/users/geoadmin","html_url":"https://github.com/geoadmin","followers_url":"https://api.github.com/users/geoadmin/followers","following_url":"https://api.github.com/users/geoadmin/following{/other_user}","gists_url":"https://api.github.com/users/geoadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/geoadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoadmin/subscriptions","organizations_url":"https://api.github.com/users/geoadmin/orgs","repos_url":"https://api.github.com/users/geoadmin/repos","events_url":"https://api.github.com/users/geoadmin/events{/privacy}","received_events_url":"https://api.github.com/users/geoadmin/received_events","type":"Organization","site_admin":false},"repo":{"id":12749462,"name":"deploy","full_name":"geoadmin/deploy","owner":{"login":"geoadmin","id":3369793,"avatar_url":"https://avatars.githubusercontent.com/u/3369793?v=3","gravatar_id":"","url":"https://api.github.com/users/geoadmin","html_url":"https://github.com/geoadmin","followers_url":"https://api.github.com/users/geoadmin/followers","following_url":"https://api.github.com/users/geoadmin/following{/other_user}","gists_url":"https://api.github.com/users/geoadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/geoadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoadmin/subscriptions","organizations_url":"https://api.github.com/users/geoadmin/orgs","repos_url":"https://api.github.com/users/geoadmin/repos","events_url":"https://api.github.com/users/geoadmin/events{/privacy}","received_events_url":"https://api.github.com/users/geoadmin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/geoadmin/deploy","description":"Deployment scripts","fork":false,"url":"https://api.github.com/repos/geoadmin/deploy","forks_url":"https://api.github.com/repos/geoadmin/deploy/forks","keys_url":"https://api.github.com/repos/geoadmin/deploy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geoadmin/deploy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geoadmin/deploy/teams","hooks_url":"https://api.github.com/repos/geoadmin/deploy/hooks","issue_events_url":"https://api.github.com/repos/geoadmin/deploy/issues/events{/number}","events_url":"https://api.github.com/repos/geoadmin/deploy/events","assignees_url":"https://api.github.com/repos/geoadmin/deploy/assignees{/user}","branches_url":"https://api.github.com/repos/geoadmin/deploy/branches{/branch}","tags_url":"https://api.github.com/repos/geoadmin/deploy/tags","blobs_url":"https://api.github.com/repos/geoadmin/deploy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geoadmin/deploy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geoadmin/deploy/git/refs{/sha}","trees_url":"https://api.github.com/repos/geoadmin/deploy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geoadmin/deploy/statuses/{sha}","languages_url":"https://api.github.com/repos/geoadmin/deploy/languages","stargazers_url":"https://api.github.com/repos/geoadmin/deploy/stargazers","contributors_url":"https://api.github.com/repos/geoadmin/deploy/contributors","subscribers_url":"https://api.github.com/repos/geoadmin/deploy/subscribers","subscription_url":"https://api.github.com/repos/geoadmin/deploy/subscription","commits_url":"https://api.github.com/repos/geoadmin/deploy/commits{/sha}","git_commits_url":"https://api.github.com/repos/geoadmin/deploy/git/commits{/sha}","comments_url":"https://api.github.com/repos/geoadmin/deploy/comments{/number}","issue_comment_url":"https://api.github.com/repos/geoadmin/deploy/issues/comments{/number}","contents_url":"https://api.github.com/repos/geoadmin/deploy/contents/{+path}","compare_url":"https://api.github.com/repos/geoadmin/deploy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geoadmin/deploy/merges","archive_url":"https://api.github.com/repos/geoadmin/deploy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geoadmin/deploy/downloads","issues_url":"https://api.github.com/repos/geoadmin/deploy/issues{/number}","pulls_url":"https://api.github.com/repos/geoadmin/deploy/pulls{/number}","milestones_url":"https://api.github.com/repos/geoadmin/deploy/milestones{/number}","notifications_url":"https://api.github.com/repos/geoadmin/deploy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geoadmin/deploy/labels{/name}","releases_url":"https://api.github.com/repos/geoadmin/deploy/releases{/id}","created_at":"2013-09-11T06:41:02Z","updated_at":"2015-05-08T18:38:40Z","pushed_at":"2015-12-09T13:07:40Z","git_url":"git://github.com/geoadmin/deploy.git","ssh_url":"git@github.com:geoadmin/deploy.git","clone_url":"https://github.com/geoadmin/deploy.git","svn_url":"https://github.com/geoadmin/deploy","homepage":null,"size":113,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/geoadmin/deploy/pulls/15"},"html":{"href":"https://github.com/geoadmin/deploy/pull/15"},"issue":{"href":"https://api.github.com/repos/geoadmin/deploy/issues/15"},"comments":{"href":"https://api.github.com/repos/geoadmin/deploy/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/geoadmin/deploy/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/geoadmin/deploy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/geoadmin/deploy/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/geoadmin/deploy/statuses/319748943806ca2a4e5f67f8b9f1ea8d7dde330b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"gjn","id":2572317,"avatar_url":"https://avatars.githubusercontent.com/u/2572317?v=3","gravatar_id":"","url":"https://api.github.com/users/gjn","html_url":"https://github.com/gjn","followers_url":"https://api.github.com/users/gjn/followers","following_url":"https://api.github.com/users/gjn/following{/other_user}","gists_url":"https://api.github.com/users/gjn/gists{/gist_id}","starred_url":"https://api.github.com/users/gjn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjn/subscriptions","organizations_url":"https://api.github.com/users/gjn/orgs","repos_url":"https://api.github.com/users/gjn/repos","events_url":"https://api.github.com/users/gjn/events{/privacy}","received_events_url":"https://api.github.com/users/gjn/received_events","type":"User","site_admin":false},"comments":7,"review_comments":4,"commits":2,"additions":34,"deletions":3,"changed_files":1}}