{"action":"opened","number":1490,"pull_request":{"url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/pulls/1490","id":188702106,"html_url":"https://github.com/Icinga/icingaweb2-module-director/pull/1490","diff_url":"https://github.com/Icinga/icingaweb2-module-director/pull/1490.diff","patch_url":"https://github.com/Icinga/icingaweb2-module-director/pull/1490.patch","issue_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/1490","number":1490,"state":"open","locked":false,"title":"Membership cache not correctly updated in sync","user":{"login":"lazyfrosch","id":121874,"avatar_url":"https://avatars2.githubusercontent.com/u/121874?v=4","gravatar_id":"","url":"https://api.github.com/users/lazyfrosch","html_url":"https://github.com/lazyfrosch","followers_url":"https://api.github.com/users/lazyfrosch/followers","following_url":"https://api.github.com/users/lazyfrosch/following{/other_user}","gists_url":"https://api.github.com/users/lazyfrosch/gists{/gist_id}","starred_url":"https://api.github.com/users/lazyfrosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazyfrosch/subscriptions","organizations_url":"https://api.github.com/users/lazyfrosch/orgs","repos_url":"https://api.github.com/users/lazyfrosch/repos","events_url":"https://api.github.com/users/lazyfrosch/events{/privacy}","received_events_url":"https://api.github.com/users/lazyfrosch/received_events","type":"User","site_admin":false},"body":"When object imports get changed by the sync.\n\nThe issue basically is, that the resolver is using the old imports, because `TemplateTree`\nonly uses the object presented when is hasn't been stored yet.\n\nThis always happens when the resolver is running deferred - after all objects have been stored.\n\nAlso I added a housekeeping CLI command to check and fix the cache:\n\n```\n$ icingacli director housekeeping memberships --apply\nChecking host memberships\n7825 objects - 1983 groups\nFound 424 new and 56 outdated mappings\nUpdate complete.\n```","created_at":"2018-05-17T11:12:45Z","updated_at":"2018-05-17T11:12:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/pulls/1490/commits","review_comments_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/pulls/1490/comments","review_comment_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/1490/comments","statuses_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/statuses/ab1104ed6bfd93db90c9d0d00a697e808d9a163d","head":{"label":"Icinga:bugfix/membership-cache-on-sync","ref":"bugfix/membership-cache-on-sync","sha":"ab1104ed6bfd93db90c9d0d00a697e808d9a163d","user":{"login":"Icinga","id":835441,"avatar_url":"https://avatars3.githubusercontent.com/u/835441?v=4","gravatar_id":"","url":"https://api.github.com/users/Icinga","html_url":"https://github.com/Icinga","followers_url":"https://api.github.com/users/Icinga/followers","following_url":"https://api.github.com/users/Icinga/following{/other_user}","gists_url":"https://api.github.com/users/Icinga/gists{/gist_id}","starred_url":"https://api.github.com/users/Icinga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Icinga/subscriptions","organizations_url":"https://api.github.com/users/Icinga/orgs","repos_url":"https://api.github.com/users/Icinga/repos","events_url":"https://api.github.com/users/Icinga/events{/privacy}","received_events_url":"https://api.github.com/users/Icinga/received_events","type":"Organization","site_admin":false},"repo":{"id":46419329,"name":"icingaweb2-module-director","full_name":"Icinga/icingaweb2-module-director","owner":{"login":"Icinga","id":835441,"avatar_url":"https://avatars3.githubusercontent.com/u/835441?v=4","gravatar_id":"","url":"https://api.github.com/users/Icinga","html_url":"https://github.com/Icinga","followers_url":"https://api.github.com/users/Icinga/followers","following_url":"https://api.github.com/users/Icinga/following{/other_user}","gists_url":"https://api.github.com/users/Icinga/gists{/gist_id}","starred_url":"https://api.github.com/users/Icinga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Icinga/subscriptions","organizations_url":"https://api.github.com/users/Icinga/orgs","repos_url":"https://api.github.com/users/Icinga/repos","events_url":"https://api.github.com/users/Icinga/events{/privacy}","received_events_url":"https://api.github.com/users/Icinga/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Icinga/icingaweb2-module-director","description":"The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.","fork":false,"url":"https://api.github.com/repos/Icinga/icingaweb2-module-director","forks_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/forks","keys_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/teams","hooks_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/hooks","issue_events_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/events{/number}","events_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/events","assignees_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/assignees{/user}","branches_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/branches{/branch}","tags_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/tags","blobs_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/git/refs{/sha}","trees_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/statuses/{sha}","languages_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/languages","stargazers_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/stargazers","contributors_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/contributors","subscribers_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/subscribers","subscription_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/subscription","commits_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/commits{/sha}","git_commits_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/git/commits{/sha}","comments_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/comments{/number}","issue_comment_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/comments{/number}","contents_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/contents/{+path}","compare_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/merges","archive_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/downloads","issues_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues{/number}","pulls_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/pulls{/number}","milestones_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/milestones{/number}","notifications_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/labels{/name}","releases_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/releases{/id}","deployments_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/deployments","created_at":"2015-11-18T13:08:28Z","updated_at":"2018-05-17T06:36:54Z","pushed_at":"2018-05-17T11:12:41Z","git_url":"git://github.com/Icinga/icingaweb2-module-director.git","ssh_url":"git@github.com:Icinga/icingaweb2-module-director.git","clone_url":"https://github.com/Icinga/icingaweb2-module-director.git","svn_url":"https://github.com/Icinga/icingaweb2-module-director","homepage":"https://www.icinga.com/products/icinga-web-2-modules/","size":7681,"stargazers_count":237,"watchers_count":237,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":120,"mirror_url":null,"archived":false,"open_issues_count":407,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":120,"open_issues":407,"watchers":237,"default_branch":"master"}},"base":{"label":"Icinga:master","ref":"master","sha":"b773b90ae5837b65d9a24c602846e80730001703","user":{"login":"Icinga","id":835441,"avatar_url":"https://avatars3.githubusercontent.com/u/835441?v=4","gravatar_id":"","url":"https://api.github.com/users/Icinga","html_url":"https://github.com/Icinga","followers_url":"https://api.github.com/users/Icinga/followers","following_url":"https://api.github.com/users/Icinga/following{/other_user}","gists_url":"https://api.github.com/users/Icinga/gists{/gist_id}","starred_url":"https://api.github.com/users/Icinga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Icinga/subscriptions","organizations_url":"https://api.github.com/users/Icinga/orgs","repos_url":"https://api.github.com/users/Icinga/repos","events_url":"https://api.github.com/users/Icinga/events{/privacy}","received_events_url":"https://api.github.com/users/Icinga/received_events","type":"Organization","site_admin":false},"repo":{"id":46419329,"name":"icingaweb2-module-director","full_name":"Icinga/icingaweb2-module-director","owner":{"login":"Icinga","id":835441,"avatar_url":"https://avatars3.githubusercontent.com/u/835441?v=4","gravatar_id":"","url":"https://api.github.com/users/Icinga","html_url":"https://github.com/Icinga","followers_url":"https://api.github.com/users/Icinga/followers","following_url":"https://api.github.com/users/Icinga/following{/other_user}","gists_url":"https://api.github.com/users/Icinga/gists{/gist_id}","starred_url":"https://api.github.com/users/Icinga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Icinga/subscriptions","organizations_url":"https://api.github.com/users/Icinga/orgs","repos_url":"https://api.github.com/users/Icinga/repos","events_url":"https://api.github.com/users/Icinga/events{/privacy}","received_events_url":"https://api.github.com/users/Icinga/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Icinga/icingaweb2-module-director","description":"The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.","fork":false,"url":"https://api.github.com/repos/Icinga/icingaweb2-module-director","forks_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/forks","keys_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/teams","hooks_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/hooks","issue_events_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/events{/number}","events_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/events","assignees_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/assignees{/user}","branches_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/branches{/branch}","tags_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/tags","blobs_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/git/refs{/sha}","trees_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/statuses/{sha}","languages_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/languages","stargazers_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/stargazers","contributors_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/contributors","subscribers_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/subscribers","subscription_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/subscription","commits_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/commits{/sha}","git_commits_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/git/commits{/sha}","comments_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/comments{/number}","issue_comment_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/comments{/number}","contents_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/contents/{+path}","compare_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/merges","archive_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/downloads","issues_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues{/number}","pulls_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/pulls{/number}","milestones_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/milestones{/number}","notifications_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/labels{/name}","releases_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/releases{/id}","deployments_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/deployments","created_at":"2015-11-18T13:08:28Z","updated_at":"2018-05-17T06:36:54Z","pushed_at":"2018-05-17T11:12:41Z","git_url":"git://github.com/Icinga/icingaweb2-module-director.git","ssh_url":"git@github.com:Icinga/icingaweb2-module-director.git","clone_url":"https://github.com/Icinga/icingaweb2-module-director.git","svn_url":"https://github.com/Icinga/icingaweb2-module-director","homepage":"https://www.icinga.com/products/icinga-web-2-modules/","size":7681,"stargazers_count":237,"watchers_count":237,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":120,"mirror_url":null,"archived":false,"open_issues_count":407,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":120,"open_issues":407,"watchers":237,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Icinga/icingaweb2-module-director/pulls/1490"},"html":{"href":"https://github.com/Icinga/icingaweb2-module-director/pull/1490"},"issue":{"href":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/1490"},"comments":{"href":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/1490/comments"},"review_comments":{"href":"https://api.github.com/repos/Icinga/icingaweb2-module-director/pulls/1490/comments"},"review_comment":{"href":"https://api.github.com/repos/Icinga/icingaweb2-module-director/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Icinga/icingaweb2-module-director/pulls/1490/commits"},"statuses":{"href":"https://api.github.com/repos/Icinga/icingaweb2-module-director/statuses/ab1104ed6bfd93db90c9d0d00a697e808d9a163d"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":221,"deletions":7,"changed_files":6}}
{"actor":{"display_login":"lazyfrosch"}}