{"action":"created","comment":{"url":"https://api.github.com/repos/reportportal/service-ui/pulls/comments/192321133","pull_request_review_id":125075059,"id":192321133,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjMyMTEzMw==","diff_hunk":"@@ -15,46 +18,122 @@ const messages = defineMessages({\n     id: 'MembersPage.title',\n     defaultMessage: 'Project members',\n   },\n+  memberWasInvited: {\n+    id: 'MembersPage.memberWasInvited',\n+    defaultMessage: 'Member {name} was assigned to the project',\n+  },\n+  inviteExternalMember: {\n+    id: 'MembersPage.inviteExternalMember',\n+    defaultMessage:\n+      'Invite for member is successfully registered. Confirmation info will be send on provided email. Expiration: 1 day.',\n+  },\n });\n-@connect((state) => ({\n-  url: URLS.projectUsers(activeProjectSelector(state)),\n-}))\n+@connect(\n+  (state) => ({\n+    url: URLS.projectUsers(activeProjectSelector(state)),\n+    activeProject: activeProjectSelector(state),\n+  }),\n+  { showScreenLockAction, hideScreenLockAction, showNotification },\n+)\n @withFilter\n @withPagination()\n @injectIntl\n export class MembersPage extends PureComponent {\n   static propTypes = {\n     intl: intlShape.isRequired,\n     onSearchChange: PropTypes.func,\n+    onChangePage: PropTypes.func,\n+    onChangePageSize: PropTypes.func,\n+    onFilterChange: PropTypes.func,\n+    fetchData: PropTypes.func,\n+    showScreenLockAction: PropTypes.func,\n+    hideScreenLockAction: PropTypes.func,\n+    showNotification: PropTypes.func,\n     data: PropTypes.arrayOf(PropTypes.object),\n     activePage: PropTypes.number,\n     itemCount: PropTypes.number,\n     pageCount: PropTypes.number,\n     pageSize: PropTypes.number,\n-    onChangePage: PropTypes.func,\n-    onChangePageSize: PropTypes.func,\n     filter: PropTypes.string,\n-    onFilterChange: PropTypes.func,\n+    activeProject: PropTypes.string,\n   };\n \n   static defaultProps = {\n     onSearchChange: () => {},\n+    onChangePage: () => {},\n+    onChangePageSize: () => {},\n+    showScreenLockAction: () => {},\n+    hideScreenLockAction: () => {},\n+    showNotification: () => {},\n+    onFilterChange: () => {},\n+    fetchData: () => {},\n     data: [],\n     activePage: 1,\n     itemCount: 0,\n     pageCount: 0,\n     pageSize: 20,\n-    onChangePage: () => {},\n-    onChangePageSize: () => {},\n     filter: '',\n-    onFilterChange: () => {},\n+    activeProject: '',\n+  };\n+\n+  inviteUser = (userData) => {\n+    const data = {};\n+    if (userData.user.externalUser) {\n+      this.props.showScreenLockAction();\n+      data.default_project = this.props.activeProject;\n+      data.email = userData.user.userLogin;\n+      data.role = userData.role;\n+      return fetch(`/api/v1/user/bid`, {","path":"app/src/pages/inside/membersPage/membersPage.jsx","position":89,"original_position":89,"commit_id":"e1120eee8ca19c91bc88b6e1416053f1c56cb8e5","original_commit_id":"e1120eee8ca19c91bc88b6e1416053f1c56cb8e5","user":{"login":"ArtsiomYeliseyenka","id":21034967,"node_id":"MDQ6VXNlcjIxMDM0OTY3","avatar_url":"https://avatars2.githubusercontent.com/u/21034967?v=4","gravatar_id":"","url":"https://api.github.com/users/ArtsiomYeliseyenka","html_url":"https://github.com/ArtsiomYeliseyenka","followers_url":"https://api.github.com/users/ArtsiomYeliseyenka/followers","following_url":"https://api.github.com/users/ArtsiomYeliseyenka/following{/other_user}","gists_url":"https://api.github.com/users/ArtsiomYeliseyenka/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtsiomYeliseyenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtsiomYeliseyenka/subscriptions","organizations_url":"https://api.github.com/users/ArtsiomYeliseyenka/orgs","repos_url":"https://api.github.com/users/ArtsiomYeliseyenka/repos","events_url":"https://api.github.com/users/ArtsiomYeliseyenka/events{/privacy}","received_events_url":"https://api.github.com/users/ArtsiomYeliseyenka/received_events","type":"User","site_admin":false},"body":"Use common/urls.js","created_at":"2018-06-01T07:51:56Z","updated_at":"2018-06-01T08:00:15Z","html_url":"https://github.com/reportportal/service-ui/pull/747#discussion_r192321133","pull_request_url":"https://api.github.com/repos/reportportal/service-ui/pulls/747","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/reportportal/service-ui/pulls/comments/192321133"},"html":{"href":"https://github.com/reportportal/service-ui/pull/747#discussion_r192321133"},"pull_request":{"href":"https://api.github.com/repos/reportportal/service-ui/pulls/747"}}},"pull_request":{"url":"https://api.github.com/repos/reportportal/service-ui/pulls/747","id":183985417,"node_id":"MDExOlB1bGxSZXF1ZXN0MTgzOTg1NDE3","html_url":"https://github.com/reportportal/service-ui/pull/747","diff_url":"https://github.com/reportportal/service-ui/pull/747.diff","patch_url":"https://github.com/reportportal/service-ui/pull/747.patch","issue_url":"https://api.github.com/repos/reportportal/service-ui/issues/747","number":747,"state":"open","locked":false,"title":"EPMRPP-33752 Invite action","user":{"login":"yana95","id":21247044,"node_id":"MDQ6VXNlcjIxMjQ3MDQ0","avatar_url":"https://avatars1.githubusercontent.com/u/21247044?v=4","gravatar_id":"","url":"https://api.github.com/users/yana95","html_url":"https://github.com/yana95","followers_url":"https://api.github.com/users/yana95/followers","following_url":"https://api.github.com/users/yana95/following{/other_user}","gists_url":"https://api.github.com/users/yana95/gists{/gist_id}","starred_url":"https://api.github.com/users/yana95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yana95/subscriptions","organizations_url":"https://api.github.com/users/yana95/orgs","repos_url":"https://api.github.com/users/yana95/repos","events_url":"https://api.github.com/users/yana95/events{/privacy}","received_events_url":"https://api.github.com/users/yana95/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-25T10:10:18Z","updated_at":"2018-06-01T08:00:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d93942be497ebe3ed8e9931bd254a5a236f79321","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":746240917,"node_id":"MDU6TGFiZWw3NDYyNDA5MTc=","url":"https://api.github.com/repos/reportportal/service-ui/labels/review","name":"review","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/reportportal/service-ui/pulls/747/commits","review_comments_url":"https://api.github.com/repos/reportportal/service-ui/pulls/747/comments","review_comment_url":"https://api.github.com/repos/reportportal/service-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reportportal/service-ui/issues/747/comments","statuses_url":"https://api.github.com/repos/reportportal/service-ui/statuses/e1120eee8ca19c91bc88b6e1416053f1c56cb8e5","head":{"label":"yana95:invite-user-modal","ref":"invite-user-modal","sha":"e1120eee8ca19c91bc88b6e1416053f1c56cb8e5","user":{"login":"yana95","id":21247044,"node_id":"MDQ6VXNlcjIxMjQ3MDQ0","avatar_url":"https://avatars1.githubusercontent.com/u/21247044?v=4","gravatar_id":"","url":"https://api.github.com/users/yana95","html_url":"https://github.com/yana95","followers_url":"https://api.github.com/users/yana95/followers","following_url":"https://api.github.com/users/yana95/following{/other_user}","gists_url":"https://api.github.com/users/yana95/gists{/gist_id}","starred_url":"https://api.github.com/users/yana95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yana95/subscriptions","organizations_url":"https://api.github.com/users/yana95/orgs","repos_url":"https://api.github.com/users/yana95/repos","events_url":"https://api.github.com/users/yana95/events{/privacy}","received_events_url":"https://api.github.com/users/yana95/received_events","type":"User","site_admin":false},"repo":{"id":84942568,"node_id":"MDEwOlJlcG9zaXRvcnk4NDk0MjU2OA==","name":"service-ui","full_name":"yana95/service-ui","owner":{"login":"yana95","id":21247044,"node_id":"MDQ6VXNlcjIxMjQ3MDQ0","avatar_url":"https://avatars1.githubusercontent.com/u/21247044?v=4","gravatar_id":"","url":"https://api.github.com/users/yana95","html_url":"https://github.com/yana95","followers_url":"https://api.github.com/users/yana95/followers","following_url":"https://api.github.com/users/yana95/following{/other_user}","gists_url":"https://api.github.com/users/yana95/gists{/gist_id}","starred_url":"https://api.github.com/users/yana95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yana95/subscriptions","organizations_url":"https://api.github.com/users/yana95/orgs","repos_url":"https://api.github.com/users/yana95/repos","events_url":"https://api.github.com/users/yana95/events{/privacy}","received_events_url":"https://api.github.com/users/yana95/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yana95/service-ui","description":"UI service for Report Portal","fork":true,"url":"https://api.github.com/repos/yana95/service-ui","forks_url":"https://api.github.com/repos/yana95/service-ui/forks","keys_url":"https://api.github.com/repos/yana95/service-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yana95/service-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yana95/service-ui/teams","hooks_url":"https://api.github.com/repos/yana95/service-ui/hooks","issue_events_url":"https://api.github.com/repos/yana95/service-ui/issues/events{/number}","events_url":"https://api.github.com/repos/yana95/service-ui/events","assignees_url":"https://api.github.com/repos/yana95/service-ui/assignees{/user}","branches_url":"https://api.github.com/repos/yana95/service-ui/branches{/branch}","tags_url":"https://api.github.com/repos/yana95/service-ui/tags","blobs_url":"https://api.github.com/repos/yana95/service-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yana95/service-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yana95/service-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/yana95/service-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yana95/service-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/yana95/service-ui/languages","stargazers_url":"https://api.github.com/repos/yana95/service-ui/stargazers","contributors_url":"https://api.github.com/repos/yana95/service-ui/contributors","subscribers_url":"https://api.github.com/repos/yana95/service-ui/subscribers","subscription_url":"https://api.github.com/repos/yana95/service-ui/subscription","commits_url":"https://api.github.com/repos/yana95/service-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/yana95/service-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/yana95/service-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/yana95/service-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/yana95/service-ui/contents/{+path}","compare_url":"https://api.github.com/repos/yana95/service-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yana95/service-ui/merges","archive_url":"https://api.github.com/repos/yana95/service-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yana95/service-ui/downloads","issues_url":"https://api.github.com/repos/yana95/service-ui/issues{/number}","pulls_url":"https://api.github.com/repos/yana95/service-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/yana95/service-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/yana95/service-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yana95/service-ui/labels{/name}","releases_url":"https://api.github.com/repos/yana95/service-ui/releases{/id}","deployments_url":"https://api.github.com/repos/yana95/service-ui/deployments","created_at":"2017-03-14T11:42:57Z","updated_at":"2017-03-14T11:43:00Z","pushed_at":"2018-05-29T11:50:29Z","git_url":"git://github.com/yana95/service-ui.git","ssh_url":"git@github.com:yana95/service-ui.git","clone_url":"https://github.com/yana95/service-ui.git","svn_url":"https://github.com/yana95/service-ui","homepage":null,"size":31518,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"reportportal:develop","ref":"develop","sha":"42c64aa3ac14d709512852a25ff28ae1032c0fad","user":{"login":"reportportal","id":17636279,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NjM2Mjc5","avatar_url":"https://avatars1.githubusercontent.com/u/17636279?v=4","gravatar_id":"","url":"https://api.github.com/users/reportportal","html_url":"https://github.com/reportportal","followers_url":"https://api.github.com/users/reportportal/followers","following_url":"https://api.github.com/users/reportportal/following{/other_user}","gists_url":"https://api.github.com/users/reportportal/gists{/gist_id}","starred_url":"https://api.github.com/users/reportportal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reportportal/subscriptions","organizations_url":"https://api.github.com/users/reportportal/orgs","repos_url":"https://api.github.com/users/reportportal/repos","events_url":"https://api.github.com/users/reportportal/events{/privacy}","received_events_url":"https://api.github.com/users/reportportal/received_events","type":"Organization","site_admin":false},"repo":{"id":68205113,"node_id":"MDEwOlJlcG9zaXRvcnk2ODIwNTExMw==","name":"service-ui","full_name":"reportportal/service-ui","owner":{"login":"reportportal","id":17636279,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NjM2Mjc5","avatar_url":"https://avatars1.githubusercontent.com/u/17636279?v=4","gravatar_id":"","url":"https://api.github.com/users/reportportal","html_url":"https://github.com/reportportal","followers_url":"https://api.github.com/users/reportportal/followers","following_url":"https://api.github.com/users/reportportal/following{/other_user}","gists_url":"https://api.github.com/users/reportportal/gists{/gist_id}","starred_url":"https://api.github.com/users/reportportal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reportportal/subscriptions","organizations_url":"https://api.github.com/users/reportportal/orgs","repos_url":"https://api.github.com/users/reportportal/repos","events_url":"https://api.github.com/users/reportportal/events{/privacy}","received_events_url":"https://api.github.com/users/reportportal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reportportal/service-ui","description":"UI service for Report Portal","fork":false,"url":"https://api.github.com/repos/reportportal/service-ui","forks_url":"https://api.github.com/repos/reportportal/service-ui/forks","keys_url":"https://api.github.com/repos/reportportal/service-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reportportal/service-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reportportal/service-ui/teams","hooks_url":"https://api.github.com/repos/reportportal/service-ui/hooks","issue_events_url":"https://api.github.com/repos/reportportal/service-ui/issues/events{/number}","events_url":"https://api.github.com/repos/reportportal/service-ui/events","assignees_url":"https://api.github.com/repos/reportportal/service-ui/assignees{/user}","branches_url":"https://api.github.com/repos/reportportal/service-ui/branches{/branch}","tags_url":"https://api.github.com/repos/reportportal/service-ui/tags","blobs_url":"https://api.github.com/repos/reportportal/service-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reportportal/service-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reportportal/service-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/reportportal/service-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reportportal/service-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/reportportal/service-ui/languages","stargazers_url":"https://api.github.com/repos/reportportal/service-ui/stargazers","contributors_url":"https://api.github.com/repos/reportportal/service-ui/contributors","subscribers_url":"https://api.github.com/repos/reportportal/service-ui/subscribers","subscription_url":"https://api.github.com/repos/reportportal/service-ui/subscription","commits_url":"https://api.github.com/repos/reportportal/service-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/reportportal/service-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/reportportal/service-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/reportportal/service-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/reportportal/service-ui/contents/{+path}","compare_url":"https://api.github.com/repos/reportportal/service-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reportportal/service-ui/merges","archive_url":"https://api.github.com/repos/reportportal/service-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reportportal/service-ui/downloads","issues_url":"https://api.github.com/repos/reportportal/service-ui/issues{/number}","pulls_url":"https://api.github.com/repos/reportportal/service-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/reportportal/service-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/reportportal/service-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reportportal/service-ui/labels{/name}","releases_url":"https://api.github.com/repos/reportportal/service-ui/releases{/id}","deployments_url":"https://api.github.com/repos/reportportal/service-ui/deployments","created_at":"2016-09-14T12:38:54Z","updated_at":"2018-05-29T11:22:08Z","pushed_at":"2018-06-01T07:38:43Z","git_url":"git://github.com/reportportal/service-ui.git","ssh_url":"git@github.com:reportportal/service-ui.git","clone_url":"https://github.com/reportportal/service-ui.git","svn_url":"https://github.com/reportportal/service-ui","homepage":null,"size":32799,"stargazers_count":29,"watchers_count":29,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":26,"open_issues":19,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reportportal/service-ui/pulls/747"},"html":{"href":"https://github.com/reportportal/service-ui/pull/747"},"issue":{"href":"https://api.github.com/repos/reportportal/service-ui/issues/747"},"comments":{"href":"https://api.github.com/repos/reportportal/service-ui/issues/747/comments"},"review_comments":{"href":"https://api.github.com/repos/reportportal/service-ui/pulls/747/comments"},"review_comment":{"href":"https://api.github.com/repos/reportportal/service-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reportportal/service-ui/pulls/747/commits"},"statuses":{"href":"https://api.github.com/repos/reportportal/service-ui/statuses/e1120eee8ca19c91bc88b6e1416053f1c56cb8e5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ArtsiomYeliseyenka"}}