{"action":"opened","number":160,"pull_request":{"url":"https://api.github.com/repos/chef/chef-zero/pulls/160","id":42877456,"html_url":"https://github.com/chef/chef-zero/pull/160","diff_url":"https://github.com/chef/chef-zero/pull/160.diff","patch_url":"https://github.com/chef/chef-zero/pull/160.patch","issue_url":"https://api.github.com/repos/chef/chef-zero/issues/160","number":160,"state":"open","locked":false,"title":"Adding back logic to delete the association request when adding a user to an org (as well as adding the user to the groups)","user":{"login":"tyler-ball","id":2481463,"avatar_url":"https://avatars.githubusercontent.com/u/2481463?v=3","gravatar_id":"","url":"https://api.github.com/users/tyler-ball","html_url":"https://github.com/tyler-ball","followers_url":"https://api.github.com/users/tyler-ball/followers","following_url":"https://api.github.com/users/tyler-ball/following{/other_user}","gists_url":"https://api.github.com/users/tyler-ball/gists{/gist_id}","starred_url":"https://api.github.com/users/tyler-ball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyler-ball/subscriptions","organizations_url":"https://api.github.com/users/tyler-ball/orgs","repos_url":"https://api.github.com/users/tyler-ball/repos","events_url":"https://api.github.com/users/tyler-ball/events{/privacy}","received_events_url":"https://api.github.com/users/tyler-ball/received_events","type":"User","site_admin":false},"body":"I think we over-simplified in https://github.com/chef/chef-zero/pull/146 - adding a user to an org was no longer removing the association request or adding the user to the groups.  I _think_ I have fixed this now.\r\n\r\nThe only reason I caught this was the failures coming from https://github.com/chef/cheffish/blob/17638eec1cee1efd1cd68e4c531d984b5201c214/spec/integration/chef_organization_spec.rb#L145-L153 - cheffish was testing to make sure chef-zero was removing the user from the association when it was added to the org.  There was no failing pedant test for this - I need to file a oc-chef-pedant issue to get this covered.\r\n\r\n\\cc @jkeiser @ssd @marcparadise @andrewjamesbrown","created_at":"2015-08-19T23:44:07Z","updated_at":"2015-08-19T23:44:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chef/chef-zero/pulls/160/commits","review_comments_url":"https://api.github.com/repos/chef/chef-zero/pulls/160/comments","review_comment_url":"https://api.github.com/repos/chef/chef-zero/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chef/chef-zero/issues/160/comments","statuses_url":"https://api.github.com/repos/chef/chef-zero/statuses/4223892e11e9c26cd2e37a254b8e0ca633993227","head":{"label":"chef:tball/add_user_to_org","ref":"tball/add_user_to_org","sha":"4223892e11e9c26cd2e37a254b8e0ca633993227","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":7253769,"name":"chef-zero","full_name":"chef/chef-zero","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/chef-zero","description":"Simple, easy-run, fast-start in-memory Chef server for testing and solo purposes","fork":false,"url":"https://api.github.com/repos/chef/chef-zero","forks_url":"https://api.github.com/repos/chef/chef-zero/forks","keys_url":"https://api.github.com/repos/chef/chef-zero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/chef-zero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/chef-zero/teams","hooks_url":"https://api.github.com/repos/chef/chef-zero/hooks","issue_events_url":"https://api.github.com/repos/chef/chef-zero/issues/events{/number}","events_url":"https://api.github.com/repos/chef/chef-zero/events","assignees_url":"https://api.github.com/repos/chef/chef-zero/assignees{/user}","branches_url":"https://api.github.com/repos/chef/chef-zero/branches{/branch}","tags_url":"https://api.github.com/repos/chef/chef-zero/tags","blobs_url":"https://api.github.com/repos/chef/chef-zero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/chef-zero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/chef-zero/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/chef-zero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/chef-zero/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/chef-zero/languages","stargazers_url":"https://api.github.com/repos/chef/chef-zero/stargazers","contributors_url":"https://api.github.com/repos/chef/chef-zero/contributors","subscribers_url":"https://api.github.com/repos/chef/chef-zero/subscribers","subscription_url":"https://api.github.com/repos/chef/chef-zero/subscription","commits_url":"https://api.github.com/repos/chef/chef-zero/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/chef-zero/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/chef-zero/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/chef-zero/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/chef-zero/contents/{+path}","compare_url":"https://api.github.com/repos/chef/chef-zero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/chef-zero/merges","archive_url":"https://api.github.com/repos/chef/chef-zero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/chef-zero/downloads","issues_url":"https://api.github.com/repos/chef/chef-zero/issues{/number}","pulls_url":"https://api.github.com/repos/chef/chef-zero/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/chef-zero/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/chef-zero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/chef-zero/labels{/name}","releases_url":"https://api.github.com/repos/chef/chef-zero/releases{/id}","created_at":"2012-12-20T07:24:14Z","updated_at":"2015-08-18T09:03:15Z","pushed_at":"2015-08-19T23:44:07Z","git_url":"git://github.com/chef/chef-zero.git","ssh_url":"git@github.com:chef/chef-zero.git","clone_url":"https://github.com/chef/chef-zero.git","svn_url":"https://github.com/chef/chef-zero","homepage":null,"size":2098,"stargazers_count":430,"watchers_count":430,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":48,"forks":64,"open_issues":48,"watchers":430,"default_branch":"master"}},"base":{"label":"chef:master","ref":"master","sha":"34ade96c42d32943b0881069dfaf2d7f27856593","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":7253769,"name":"chef-zero","full_name":"chef/chef-zero","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/chef-zero","description":"Simple, easy-run, fast-start in-memory Chef server for testing and solo purposes","fork":false,"url":"https://api.github.com/repos/chef/chef-zero","forks_url":"https://api.github.com/repos/chef/chef-zero/forks","keys_url":"https://api.github.com/repos/chef/chef-zero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/chef-zero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/chef-zero/teams","hooks_url":"https://api.github.com/repos/chef/chef-zero/hooks","issue_events_url":"https://api.github.com/repos/chef/chef-zero/issues/events{/number}","events_url":"https://api.github.com/repos/chef/chef-zero/events","assignees_url":"https://api.github.com/repos/chef/chef-zero/assignees{/user}","branches_url":"https://api.github.com/repos/chef/chef-zero/branches{/branch}","tags_url":"https://api.github.com/repos/chef/chef-zero/tags","blobs_url":"https://api.github.com/repos/chef/chef-zero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/chef-zero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/chef-zero/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/chef-zero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/chef-zero/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/chef-zero/languages","stargazers_url":"https://api.github.com/repos/chef/chef-zero/stargazers","contributors_url":"https://api.github.com/repos/chef/chef-zero/contributors","subscribers_url":"https://api.github.com/repos/chef/chef-zero/subscribers","subscription_url":"https://api.github.com/repos/chef/chef-zero/subscription","commits_url":"https://api.github.com/repos/chef/chef-zero/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/chef-zero/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/chef-zero/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/chef-zero/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/chef-zero/contents/{+path}","compare_url":"https://api.github.com/repos/chef/chef-zero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/chef-zero/merges","archive_url":"https://api.github.com/repos/chef/chef-zero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/chef-zero/downloads","issues_url":"https://api.github.com/repos/chef/chef-zero/issues{/number}","pulls_url":"https://api.github.com/repos/chef/chef-zero/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/chef-zero/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/chef-zero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/chef-zero/labels{/name}","releases_url":"https://api.github.com/repos/chef/chef-zero/releases{/id}","created_at":"2012-12-20T07:24:14Z","updated_at":"2015-08-18T09:03:15Z","pushed_at":"2015-08-19T23:44:07Z","git_url":"git://github.com/chef/chef-zero.git","ssh_url":"git@github.com:chef/chef-zero.git","clone_url":"https://github.com/chef/chef-zero.git","svn_url":"https://github.com/chef/chef-zero","homepage":null,"size":2098,"stargazers_count":430,"watchers_count":430,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":48,"forks":64,"open_issues":48,"watchers":430,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chef/chef-zero/pulls/160"},"html":{"href":"https://github.com/chef/chef-zero/pull/160"},"issue":{"href":"https://api.github.com/repos/chef/chef-zero/issues/160"},"comments":{"href":"https://api.github.com/repos/chef/chef-zero/issues/160/comments"},"review_comments":{"href":"https://api.github.com/repos/chef/chef-zero/pulls/160/comments"},"review_comment":{"href":"https://api.github.com/repos/chef/chef-zero/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chef/chef-zero/pulls/160/commits"},"statuses":{"href":"https://api.github.com/repos/chef/chef-zero/statuses/4223892e11e9c26cd2e37a254b8e0ca633993227"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":37,"deletions":16,"changed_files":3}}