{"action":"opened","number":8343,"pull_request":{"url":"https://api.github.com/repos/zulip/zulip/pulls/8343","id":168465508,"html_url":"https://github.com/zulip/zulip/pull/8343","diff_url":"https://github.com/zulip/zulip/pull/8343.diff","patch_url":"https://github.com/zulip/zulip/pull/8343.patch","issue_url":"https://api.github.com/repos/zulip/zulip/issues/8343","number":8343,"state":"open","locked":false,"title":"invitations: Improve error message displayed on inviting deactivated …","user":{"login":"aedorado","id":6378532,"avatar_url":"https://avatars2.githubusercontent.com/u/6378532?v=4","gravatar_id":"","url":"https://api.github.com/users/aedorado","html_url":"https://github.com/aedorado","followers_url":"https://api.github.com/users/aedorado/followers","following_url":"https://api.github.com/users/aedorado/following{/other_user}","gists_url":"https://api.github.com/users/aedorado/gists{/gist_id}","starred_url":"https://api.github.com/users/aedorado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aedorado/subscriptions","organizations_url":"https://api.github.com/users/aedorado/orgs","repos_url":"https://api.github.com/users/aedorado/repos","events_url":"https://api.github.com/users/aedorado/events{/privacy}","received_events_url":"https://api.github.com/users/aedorado/received_events","type":"User","site_admin":false},"body":"…users.\r\n\r\nThe following are achieved:\r\n\r\nUpon inviting a user whose account was deactivated,\r\nthe error message reads 'Has an account that has been deactivated.'\r\ninstead of 'Already has an account.'\r\n\r\nFurthermore, if the inviting user is a realm admin, it also adds,\r\n'You can reactivate a deactivated user in organization settings.'\r\nIf the inviting user is a non-admin for the realm, it adds\r\n'Organization administrators can reactivate a\r\ndeactivated user in organization settings.'\r\n\r\nFixes #8144.","created_at":"2018-02-11T18:03:35Z","updated_at":"2018-02-11T18:03:35Z","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/zulip/zulip/pulls/8343/commits","review_comments_url":"https://api.github.com/repos/zulip/zulip/pulls/8343/comments","review_comment_url":"https://api.github.com/repos/zulip/zulip/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/8343/comments","statuses_url":"https://api.github.com/repos/zulip/zulip/statuses/ee42f62377c934c0bb270c6100bd48be7701d7bf","head":{"label":"aedorado:user-reactivation","ref":"user-reactivation","sha":"ee42f62377c934c0bb270c6100bd48be7701d7bf","user":{"login":"aedorado","id":6378532,"avatar_url":"https://avatars2.githubusercontent.com/u/6378532?v=4","gravatar_id":"","url":"https://api.github.com/users/aedorado","html_url":"https://github.com/aedorado","followers_url":"https://api.github.com/users/aedorado/followers","following_url":"https://api.github.com/users/aedorado/following{/other_user}","gists_url":"https://api.github.com/users/aedorado/gists{/gist_id}","starred_url":"https://api.github.com/users/aedorado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aedorado/subscriptions","organizations_url":"https://api.github.com/users/aedorado/orgs","repos_url":"https://api.github.com/users/aedorado/repos","events_url":"https://api.github.com/users/aedorado/events{/privacy}","received_events_url":"https://api.github.com/users/aedorado/received_events","type":"User","site_admin":false},"repo":{"id":118577680,"name":"zulip","full_name":"aedorado/zulip","owner":{"login":"aedorado","id":6378532,"avatar_url":"https://avatars2.githubusercontent.com/u/6378532?v=4","gravatar_id":"","url":"https://api.github.com/users/aedorado","html_url":"https://github.com/aedorado","followers_url":"https://api.github.com/users/aedorado/followers","following_url":"https://api.github.com/users/aedorado/following{/other_user}","gists_url":"https://api.github.com/users/aedorado/gists{/gist_id}","starred_url":"https://api.github.com/users/aedorado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aedorado/subscriptions","organizations_url":"https://api.github.com/users/aedorado/orgs","repos_url":"https://api.github.com/users/aedorado/repos","events_url":"https://api.github.com/users/aedorado/events{/privacy}","received_events_url":"https://api.github.com/users/aedorado/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aedorado/zulip","description":"Zulip server - powerful open source team chat","fork":true,"url":"https://api.github.com/repos/aedorado/zulip","forks_url":"https://api.github.com/repos/aedorado/zulip/forks","keys_url":"https://api.github.com/repos/aedorado/zulip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aedorado/zulip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aedorado/zulip/teams","hooks_url":"https://api.github.com/repos/aedorado/zulip/hooks","issue_events_url":"https://api.github.com/repos/aedorado/zulip/issues/events{/number}","events_url":"https://api.github.com/repos/aedorado/zulip/events","assignees_url":"https://api.github.com/repos/aedorado/zulip/assignees{/user}","branches_url":"https://api.github.com/repos/aedorado/zulip/branches{/branch}","tags_url":"https://api.github.com/repos/aedorado/zulip/tags","blobs_url":"https://api.github.com/repos/aedorado/zulip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aedorado/zulip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aedorado/zulip/git/refs{/sha}","trees_url":"https://api.github.com/repos/aedorado/zulip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aedorado/zulip/statuses/{sha}","languages_url":"https://api.github.com/repos/aedorado/zulip/languages","stargazers_url":"https://api.github.com/repos/aedorado/zulip/stargazers","contributors_url":"https://api.github.com/repos/aedorado/zulip/contributors","subscribers_url":"https://api.github.com/repos/aedorado/zulip/subscribers","subscription_url":"https://api.github.com/repos/aedorado/zulip/subscription","commits_url":"https://api.github.com/repos/aedorado/zulip/commits{/sha}","git_commits_url":"https://api.github.com/repos/aedorado/zulip/git/commits{/sha}","comments_url":"https://api.github.com/repos/aedorado/zulip/comments{/number}","issue_comment_url":"https://api.github.com/repos/aedorado/zulip/issues/comments{/number}","contents_url":"https://api.github.com/repos/aedorado/zulip/contents/{+path}","compare_url":"https://api.github.com/repos/aedorado/zulip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aedorado/zulip/merges","archive_url":"https://api.github.com/repos/aedorado/zulip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aedorado/zulip/downloads","issues_url":"https://api.github.com/repos/aedorado/zulip/issues{/number}","pulls_url":"https://api.github.com/repos/aedorado/zulip/pulls{/number}","milestones_url":"https://api.github.com/repos/aedorado/zulip/milestones{/number}","notifications_url":"https://api.github.com/repos/aedorado/zulip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aedorado/zulip/labels{/name}","releases_url":"https://api.github.com/repos/aedorado/zulip/releases{/id}","deployments_url":"https://api.github.com/repos/aedorado/zulip/deployments","created_at":"2018-01-23T08:00:00Z","updated_at":"2018-01-23T08:00:10Z","pushed_at":"2018-02-11T18:01:59Z","git_url":"git://github.com/aedorado/zulip.git","ssh_url":"git@github.com:aedorado/zulip.git","clone_url":"https://github.com/aedorado/zulip.git","svn_url":"https://github.com/aedorado/zulip","homepage":"https://zulip.org/","size":193038,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zulip:master","ref":"master","sha":"7925e258a2f56ddfcd3c37b4fbbb2f0a69038c50","user":{"login":"zulip","id":4921959,"avatar_url":"https://avatars2.githubusercontent.com/u/4921959?v=4","gravatar_id":"","url":"https://api.github.com/users/zulip","html_url":"https://github.com/zulip","followers_url":"https://api.github.com/users/zulip/followers","following_url":"https://api.github.com/users/zulip/following{/other_user}","gists_url":"https://api.github.com/users/zulip/gists{/gist_id}","starred_url":"https://api.github.com/users/zulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulip/subscriptions","organizations_url":"https://api.github.com/users/zulip/orgs","repos_url":"https://api.github.com/users/zulip/repos","events_url":"https://api.github.com/users/zulip/events{/privacy}","received_events_url":"https://api.github.com/users/zulip/received_events","type":"Organization","site_admin":false},"repo":{"id":43160685,"name":"zulip","full_name":"zulip/zulip","owner":{"login":"zulip","id":4921959,"avatar_url":"https://avatars2.githubusercontent.com/u/4921959?v=4","gravatar_id":"","url":"https://api.github.com/users/zulip","html_url":"https://github.com/zulip","followers_url":"https://api.github.com/users/zulip/followers","following_url":"https://api.github.com/users/zulip/following{/other_user}","gists_url":"https://api.github.com/users/zulip/gists{/gist_id}","starred_url":"https://api.github.com/users/zulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulip/subscriptions","organizations_url":"https://api.github.com/users/zulip/orgs","repos_url":"https://api.github.com/users/zulip/repos","events_url":"https://api.github.com/users/zulip/events{/privacy}","received_events_url":"https://api.github.com/users/zulip/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zulip/zulip","description":"Zulip server - powerful open source team chat","fork":false,"url":"https://api.github.com/repos/zulip/zulip","forks_url":"https://api.github.com/repos/zulip/zulip/forks","keys_url":"https://api.github.com/repos/zulip/zulip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zulip/zulip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zulip/zulip/teams","hooks_url":"https://api.github.com/repos/zulip/zulip/hooks","issue_events_url":"https://api.github.com/repos/zulip/zulip/issues/events{/number}","events_url":"https://api.github.com/repos/zulip/zulip/events","assignees_url":"https://api.github.com/repos/zulip/zulip/assignees{/user}","branches_url":"https://api.github.com/repos/zulip/zulip/branches{/branch}","tags_url":"https://api.github.com/repos/zulip/zulip/tags","blobs_url":"https://api.github.com/repos/zulip/zulip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zulip/zulip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zulip/zulip/git/refs{/sha}","trees_url":"https://api.github.com/repos/zulip/zulip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zulip/zulip/statuses/{sha}","languages_url":"https://api.github.com/repos/zulip/zulip/languages","stargazers_url":"https://api.github.com/repos/zulip/zulip/stargazers","contributors_url":"https://api.github.com/repos/zulip/zulip/contributors","subscribers_url":"https://api.github.com/repos/zulip/zulip/subscribers","subscription_url":"https://api.github.com/repos/zulip/zulip/subscription","commits_url":"https://api.github.com/repos/zulip/zulip/commits{/sha}","git_commits_url":"https://api.github.com/repos/zulip/zulip/git/commits{/sha}","comments_url":"https://api.github.com/repos/zulip/zulip/comments{/number}","issue_comment_url":"https://api.github.com/repos/zulip/zulip/issues/comments{/number}","contents_url":"https://api.github.com/repos/zulip/zulip/contents/{+path}","compare_url":"https://api.github.com/repos/zulip/zulip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zulip/zulip/merges","archive_url":"https://api.github.com/repos/zulip/zulip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zulip/zulip/downloads","issues_url":"https://api.github.com/repos/zulip/zulip/issues{/number}","pulls_url":"https://api.github.com/repos/zulip/zulip/pulls{/number}","milestones_url":"https://api.github.com/repos/zulip/zulip/milestones{/number}","notifications_url":"https://api.github.com/repos/zulip/zulip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zulip/zulip/labels{/name}","releases_url":"https://api.github.com/repos/zulip/zulip/releases{/id}","deployments_url":"https://api.github.com/repos/zulip/zulip/deployments","created_at":"2015-09-25T16:37:25Z","updated_at":"2018-02-11T15:05:40Z","pushed_at":"2018-02-11T17:59:28Z","git_url":"git://github.com/zulip/zulip.git","ssh_url":"git@github.com:zulip/zulip.git","clone_url":"https://github.com/zulip/zulip.git","svn_url":"https://github.com/zulip/zulip","homepage":"https://zulip.org/","size":192952,"stargazers_count":5968,"watchers_count":5968,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1971,"mirror_url":null,"archived":false,"open_issues_count":1077,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":1971,"open_issues":1077,"watchers":5968,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip/pulls/8343"},"html":{"href":"https://github.com/zulip/zulip/pull/8343"},"issue":{"href":"https://api.github.com/repos/zulip/zulip/issues/8343"},"comments":{"href":"https://api.github.com/repos/zulip/zulip/issues/8343/comments"},"review_comments":{"href":"https://api.github.com/repos/zulip/zulip/pulls/8343/comments"},"review_comment":{"href":"https://api.github.com/repos/zulip/zulip/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zulip/zulip/pulls/8343/commits"},"statuses":{"href":"https://api.github.com/repos/zulip/zulip/statuses/ee42f62377c934c0bb270c6100bd48be7701d7bf"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":28,"deletions":9,"changed_files":2}}
{"actor":{"display_login":"aedorado"}}