{"action":"created","comment":{"url":"https://api.github.com/repos/makeomatic/ms-users/pulls/comments/108755394","pull_request_review_id":29808309,"id":108755394,"diff_hunk":"@@ -272,10 +278,11 @@ function registerUser(request) {\n         })\n         // passed metadata\n         .return({\n-          username,\n+          userId,\n           audience,\n           metadata: audience.map(metaAudience => ({\n             $set: Object.assign(metadata[metaAudience] || {}, metaAudience === defaultAudience && {\n+              // [USERS_ID_FIELD]: userId, @TODO Is it needed?","path":"src/actions/register.js","position":57,"original_position":57,"commit_id":"57084d990ebd04dd6b1f5d556bb57ba2670765ee","original_commit_id":"57084d990ebd04dd6b1f5d556bb57ba2670765ee","user":{"login":"AVVS","id":1713617,"avatar_url":"https://avatars2.githubusercontent.com/u/1713617?v=3","gravatar_id":"","url":"https://api.github.com/users/AVVS","html_url":"https://github.com/AVVS","followers_url":"https://api.github.com/users/AVVS/followers","following_url":"https://api.github.com/users/AVVS/following{/other_user}","gists_url":"https://api.github.com/users/AVVS/gists{/gist_id}","starred_url":"https://api.github.com/users/AVVS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AVVS/subscriptions","organizations_url":"https://api.github.com/users/AVVS/orgs","repos_url":"https://api.github.com/users/AVVS/repos","events_url":"https://api.github.com/users/AVVS/events{/privacy}","received_events_url":"https://api.github.com/users/AVVS/received_events","type":"User","site_admin":false},"body":"обычно это удобно, так как позволяет проводить поиск по нескольким полям в режиме OR в списке, само поле \"immutable\" должно быть и выставляется один раз","created_at":"2017-03-29T18:41:55Z","updated_at":"2017-03-29T18:41:55Z","html_url":"https://github.com/makeomatic/ms-users/pull/297#discussion_r108755394","pull_request_url":"https://api.github.com/repos/makeomatic/ms-users/pulls/297","_links":{"self":{"href":"https://api.github.com/repos/makeomatic/ms-users/pulls/comments/108755394"},"html":{"href":"https://github.com/makeomatic/ms-users/pull/297#discussion_r108755394"},"pull_request":{"href":"https://api.github.com/repos/makeomatic/ms-users/pulls/297"}}},"pull_request":{"url":"https://api.github.com/repos/makeomatic/ms-users/pulls/297","id":113230126,"html_url":"https://github.com/makeomatic/ms-users/pull/297","diff_url":"https://github.com/makeomatic/ms-users/pull/297.diff","patch_url":"https://github.com/makeomatic/ms-users/pull/297.patch","issue_url":"https://api.github.com/repos/makeomatic/ms-users/issues/297","number":297,"state":"open","locked":false,"title":"feat: activate, alias, ban, register, remove","user":{"login":"aleksandrsorokin","id":825300,"avatar_url":"https://avatars3.githubusercontent.com/u/825300?v=3","gravatar_id":"","url":"https://api.github.com/users/aleksandrsorokin","html_url":"https://github.com/aleksandrsorokin","followers_url":"https://api.github.com/users/aleksandrsorokin/followers","following_url":"https://api.github.com/users/aleksandrsorokin/following{/other_user}","gists_url":"https://api.github.com/users/aleksandrsorokin/gists{/gist_id}","starred_url":"https://api.github.com/users/aleksandrsorokin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleksandrsorokin/subscriptions","organizations_url":"https://api.github.com/users/aleksandrsorokin/orgs","repos_url":"https://api.github.com/users/aleksandrsorokin/repos","events_url":"https://api.github.com/users/aleksandrsorokin/events{/privacy}","received_events_url":"https://api.github.com/users/aleksandrsorokin/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-29T15:43:52Z","updated_at":"2017-03-29T18:41:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2bf9372ed4f2117798d50889b060bcd6e818b223","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/makeomatic/ms-users/pulls/297/commits","review_comments_url":"https://api.github.com/repos/makeomatic/ms-users/pulls/297/comments","review_comment_url":"https://api.github.com/repos/makeomatic/ms-users/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makeomatic/ms-users/issues/297/comments","statuses_url":"https://api.github.com/repos/makeomatic/ms-users/statuses/57084d990ebd04dd6b1f5d556bb57ba2670765ee","head":{"label":"makeomatic:usersIds","ref":"usersIds","sha":"57084d990ebd04dd6b1f5d556bb57ba2670765ee","user":{"login":"makeomatic","id":15013628,"avatar_url":"https://avatars2.githubusercontent.com/u/15013628?v=3","gravatar_id":"","url":"https://api.github.com/users/makeomatic","html_url":"https://github.com/makeomatic","followers_url":"https://api.github.com/users/makeomatic/followers","following_url":"https://api.github.com/users/makeomatic/following{/other_user}","gists_url":"https://api.github.com/users/makeomatic/gists{/gist_id}","starred_url":"https://api.github.com/users/makeomatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makeomatic/subscriptions","organizations_url":"https://api.github.com/users/makeomatic/orgs","repos_url":"https://api.github.com/users/makeomatic/repos","events_url":"https://api.github.com/users/makeomatic/events{/privacy}","received_events_url":"https://api.github.com/users/makeomatic/received_events","type":"Organization","site_admin":false},"repo":{"id":45739168,"name":"ms-users","full_name":"makeomatic/ms-users","owner":{"login":"makeomatic","id":15013628,"avatar_url":"https://avatars2.githubusercontent.com/u/15013628?v=3","gravatar_id":"","url":"https://api.github.com/users/makeomatic","html_url":"https://github.com/makeomatic","followers_url":"https://api.github.com/users/makeomatic/followers","following_url":"https://api.github.com/users/makeomatic/following{/other_user}","gists_url":"https://api.github.com/users/makeomatic/gists{/gist_id}","starred_url":"https://api.github.com/users/makeomatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makeomatic/subscriptions","organizations_url":"https://api.github.com/users/makeomatic/orgs","repos_url":"https://api.github.com/users/makeomatic/repos","events_url":"https://api.github.com/users/makeomatic/events{/privacy}","received_events_url":"https://api.github.com/users/makeomatic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makeomatic/ms-users","description":"Service for handling user's management via amqp transport layer. Docs are available at","fork":false,"url":"https://api.github.com/repos/makeomatic/ms-users","forks_url":"https://api.github.com/repos/makeomatic/ms-users/forks","keys_url":"https://api.github.com/repos/makeomatic/ms-users/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makeomatic/ms-users/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makeomatic/ms-users/teams","hooks_url":"https://api.github.com/repos/makeomatic/ms-users/hooks","issue_events_url":"https://api.github.com/repos/makeomatic/ms-users/issues/events{/number}","events_url":"https://api.github.com/repos/makeomatic/ms-users/events","assignees_url":"https://api.github.com/repos/makeomatic/ms-users/assignees{/user}","branches_url":"https://api.github.com/repos/makeomatic/ms-users/branches{/branch}","tags_url":"https://api.github.com/repos/makeomatic/ms-users/tags","blobs_url":"https://api.github.com/repos/makeomatic/ms-users/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makeomatic/ms-users/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makeomatic/ms-users/git/refs{/sha}","trees_url":"https://api.github.com/repos/makeomatic/ms-users/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makeomatic/ms-users/statuses/{sha}","languages_url":"https://api.github.com/repos/makeomatic/ms-users/languages","stargazers_url":"https://api.github.com/repos/makeomatic/ms-users/stargazers","contributors_url":"https://api.github.com/repos/makeomatic/ms-users/contributors","subscribers_url":"https://api.github.com/repos/makeomatic/ms-users/subscribers","subscription_url":"https://api.github.com/repos/makeomatic/ms-users/subscription","commits_url":"https://api.github.com/repos/makeomatic/ms-users/commits{/sha}","git_commits_url":"https://api.github.com/repos/makeomatic/ms-users/git/commits{/sha}","comments_url":"https://api.github.com/repos/makeomatic/ms-users/comments{/number}","issue_comment_url":"https://api.github.com/repos/makeomatic/ms-users/issues/comments{/number}","contents_url":"https://api.github.com/repos/makeomatic/ms-users/contents/{+path}","compare_url":"https://api.github.com/repos/makeomatic/ms-users/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makeomatic/ms-users/merges","archive_url":"https://api.github.com/repos/makeomatic/ms-users/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makeomatic/ms-users/downloads","issues_url":"https://api.github.com/repos/makeomatic/ms-users/issues{/number}","pulls_url":"https://api.github.com/repos/makeomatic/ms-users/pulls{/number}","milestones_url":"https://api.github.com/repos/makeomatic/ms-users/milestones{/number}","notifications_url":"https://api.github.com/repos/makeomatic/ms-users/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makeomatic/ms-users/labels{/name}","releases_url":"https://api.github.com/repos/makeomatic/ms-users/releases{/id}","deployments_url":"https://api.github.com/repos/makeomatic/ms-users/deployments","created_at":"2015-11-07T14:15:20Z","updated_at":"2017-02-25T21:26:05Z","pushed_at":"2017-03-29T17:32:31Z","git_url":"git://github.com/makeomatic/ms-users.git","ssh_url":"git@github.com:makeomatic/ms-users.git","clone_url":"https://github.com/makeomatic/ms-users.git","svn_url":"https://github.com/makeomatic/ms-users","homepage":"https://makeomatic.github.io/ms-users/","size":1074,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":5,"default_branch":"master"}},"base":{"label":"makeomatic:master","ref":"master","sha":"876ea0d808a076d2a10408c9d6911ed1fdfb9fc8","user":{"login":"makeomatic","id":15013628,"avatar_url":"https://avatars2.githubusercontent.com/u/15013628?v=3","gravatar_id":"","url":"https://api.github.com/users/makeomatic","html_url":"https://github.com/makeomatic","followers_url":"https://api.github.com/users/makeomatic/followers","following_url":"https://api.github.com/users/makeomatic/following{/other_user}","gists_url":"https://api.github.com/users/makeomatic/gists{/gist_id}","starred_url":"https://api.github.com/users/makeomatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makeomatic/subscriptions","organizations_url":"https://api.github.com/users/makeomatic/orgs","repos_url":"https://api.github.com/users/makeomatic/repos","events_url":"https://api.github.com/users/makeomatic/events{/privacy}","received_events_url":"https://api.github.com/users/makeomatic/received_events","type":"Organization","site_admin":false},"repo":{"id":45739168,"name":"ms-users","full_name":"makeomatic/ms-users","owner":{"login":"makeomatic","id":15013628,"avatar_url":"https://avatars2.githubusercontent.com/u/15013628?v=3","gravatar_id":"","url":"https://api.github.com/users/makeomatic","html_url":"https://github.com/makeomatic","followers_url":"https://api.github.com/users/makeomatic/followers","following_url":"https://api.github.com/users/makeomatic/following{/other_user}","gists_url":"https://api.github.com/users/makeomatic/gists{/gist_id}","starred_url":"https://api.github.com/users/makeomatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makeomatic/subscriptions","organizations_url":"https://api.github.com/users/makeomatic/orgs","repos_url":"https://api.github.com/users/makeomatic/repos","events_url":"https://api.github.com/users/makeomatic/events{/privacy}","received_events_url":"https://api.github.com/users/makeomatic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makeomatic/ms-users","description":"Service for handling user's management via amqp transport layer. Docs are available at","fork":false,"url":"https://api.github.com/repos/makeomatic/ms-users","forks_url":"https://api.github.com/repos/makeomatic/ms-users/forks","keys_url":"https://api.github.com/repos/makeomatic/ms-users/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makeomatic/ms-users/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makeomatic/ms-users/teams","hooks_url":"https://api.github.com/repos/makeomatic/ms-users/hooks","issue_events_url":"https://api.github.com/repos/makeomatic/ms-users/issues/events{/number}","events_url":"https://api.github.com/repos/makeomatic/ms-users/events","assignees_url":"https://api.github.com/repos/makeomatic/ms-users/assignees{/user}","branches_url":"https://api.github.com/repos/makeomatic/ms-users/branches{/branch}","tags_url":"https://api.github.com/repos/makeomatic/ms-users/tags","blobs_url":"https://api.github.com/repos/makeomatic/ms-users/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makeomatic/ms-users/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makeomatic/ms-users/git/refs{/sha}","trees_url":"https://api.github.com/repos/makeomatic/ms-users/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makeomatic/ms-users/statuses/{sha}","languages_url":"https://api.github.com/repos/makeomatic/ms-users/languages","stargazers_url":"https://api.github.com/repos/makeomatic/ms-users/stargazers","contributors_url":"https://api.github.com/repos/makeomatic/ms-users/contributors","subscribers_url":"https://api.github.com/repos/makeomatic/ms-users/subscribers","subscription_url":"https://api.github.com/repos/makeomatic/ms-users/subscription","commits_url":"https://api.github.com/repos/makeomatic/ms-users/commits{/sha}","git_commits_url":"https://api.github.com/repos/makeomatic/ms-users/git/commits{/sha}","comments_url":"https://api.github.com/repos/makeomatic/ms-users/comments{/number}","issue_comment_url":"https://api.github.com/repos/makeomatic/ms-users/issues/comments{/number}","contents_url":"https://api.github.com/repos/makeomatic/ms-users/contents/{+path}","compare_url":"https://api.github.com/repos/makeomatic/ms-users/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makeomatic/ms-users/merges","archive_url":"https://api.github.com/repos/makeomatic/ms-users/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makeomatic/ms-users/downloads","issues_url":"https://api.github.com/repos/makeomatic/ms-users/issues{/number}","pulls_url":"https://api.github.com/repos/makeomatic/ms-users/pulls{/number}","milestones_url":"https://api.github.com/repos/makeomatic/ms-users/milestones{/number}","notifications_url":"https://api.github.com/repos/makeomatic/ms-users/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makeomatic/ms-users/labels{/name}","releases_url":"https://api.github.com/repos/makeomatic/ms-users/releases{/id}","deployments_url":"https://api.github.com/repos/makeomatic/ms-users/deployments","created_at":"2015-11-07T14:15:20Z","updated_at":"2017-02-25T21:26:05Z","pushed_at":"2017-03-29T17:32:31Z","git_url":"git://github.com/makeomatic/ms-users.git","ssh_url":"git@github.com:makeomatic/ms-users.git","clone_url":"https://github.com/makeomatic/ms-users.git","svn_url":"https://github.com/makeomatic/ms-users","homepage":"https://makeomatic.github.io/ms-users/","size":1074,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makeomatic/ms-users/pulls/297"},"html":{"href":"https://github.com/makeomatic/ms-users/pull/297"},"issue":{"href":"https://api.github.com/repos/makeomatic/ms-users/issues/297"},"comments":{"href":"https://api.github.com/repos/makeomatic/ms-users/issues/297/comments"},"review_comments":{"href":"https://api.github.com/repos/makeomatic/ms-users/pulls/297/comments"},"review_comment":{"href":"https://api.github.com/repos/makeomatic/ms-users/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makeomatic/ms-users/pulls/297/commits"},"statuses":{"href":"https://api.github.com/repos/makeomatic/ms-users/statuses/57084d990ebd04dd6b1f5d556bb57ba2670765ee"}}}}
{"actor":{"display_login":"AVVS"}}