{"action":"created","comment":{"url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/comments/187273313","pull_request_review_id":119017695,"id":187273313,"diff_hunk":"@@ -36,27 +36,42 @@ function getCountryCodeFromProposal (proposal: ProposalDTO): ?string {\n   return proposal.serviceDefinition.locationOriginate.country\n }\n \n-function getCountryListFromProposals (proposals: Array<ProposalDTO>) {\n-  let countries = proposals.map((proposal) => {\n-    let country = {\n-      label: getCountryNameFromProposal(proposal),\n-      id: proposal.providerId,\n-      code: getCountryCodeFromProposal(proposal)\n-    }\n+type Country = {\n+  label: string,\n+  id: string,\n+  code: string\n+}\n \n-    const idLength = 10\n+function getCountryFromProposal (proposal: ProposalDTO): Country {\n+  let country = {\n+    label: getCountryNameFromProposal(proposal),\n+    id: proposal.providerId,\n+    code: getCountryCodeFromProposal(proposal)\n+  }\n \n-    let idLabel = country.id\n-    if (country.id.length > idLength) {\n-      idLabel = country.id.substring(0, 10) + '...'\n-    }\n+  const idLength = 10\n \n-    country.label = country.label + ' (' + idLabel + ')'\n+  let idLabel = proposal.providerId\n+  if (proposal.providerId.length > idLength) {\n+    idLabel = country.id.substring(0, 10) + '...'\n+  }\n \n-    return country\n-  })\n+  country.label = country.label + ' (' + idLabel + ')'\n+\n+  return country\n+}\n+\n+function getCountryListFromProposals (proposals: Array<ProposalDTO>): Array<Country> {\n+  let countries = proposals.map((proposal) => getCountryFromProposal(proposal))","path":"src/app/countries/index.js","position":45,"original_position":45,"commit_id":"2933212e04a866a4d47b55e967177c3dbdf2df57","original_commit_id":"2933212e04a866a4d47b55e967177c3dbdf2df57","user":{"login":"shroomist","id":95058,"avatar_url":"https://avatars3.githubusercontent.com/u/95058?v=4","gravatar_id":"","url":"https://api.github.com/users/shroomist","html_url":"https://github.com/shroomist","followers_url":"https://api.github.com/users/shroomist/followers","following_url":"https://api.github.com/users/shroomist/following{/other_user}","gists_url":"https://api.github.com/users/shroomist/gists{/gist_id}","starred_url":"https://api.github.com/users/shroomist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shroomist/subscriptions","organizations_url":"https://api.github.com/users/shroomist/orgs","repos_url":"https://api.github.com/users/shroomist/repos","events_url":"https://api.github.com/users/shroomist/events{/privacy}","received_events_url":"https://api.github.com/users/shroomist/received_events","type":"User","site_admin":false},"body":"this does append iD to all of the entries in the country list, doesn't it?\r\nwe need it for duplicated only..","created_at":"2018-05-10T08:43:46Z","updated_at":"2018-05-10T08:49:21Z","html_url":"https://github.com/MysteriumNetwork/mysterion/pull/149#discussion_r187273313","pull_request_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/149","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/comments/187273313"},"html":{"href":"https://github.com/MysteriumNetwork/mysterion/pull/149#discussion_r187273313"},"pull_request":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/149"}}},"pull_request":{"url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/149","id":186942022,"html_url":"https://github.com/MysteriumNetwork/mysterion/pull/149","diff_url":"https://github.com/MysteriumNetwork/mysterion/pull/149.diff","patch_url":"https://github.com/MysteriumNetwork/mysterion/pull/149.patch","issue_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/149","number":149,"state":"open","locked":false,"title":"Connecting via tray updates dropdown selected country","user":{"login":"ignasbernotas","id":402965,"avatar_url":"https://avatars2.githubusercontent.com/u/402965?v=4","gravatar_id":"","url":"https://api.github.com/users/ignasbernotas","html_url":"https://github.com/ignasbernotas","followers_url":"https://api.github.com/users/ignasbernotas/followers","following_url":"https://api.github.com/users/ignasbernotas/following{/other_user}","gists_url":"https://api.github.com/users/ignasbernotas/gists{/gist_id}","starred_url":"https://api.github.com/users/ignasbernotas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignasbernotas/subscriptions","organizations_url":"https://api.github.com/users/ignasbernotas/orgs","repos_url":"https://api.github.com/users/ignasbernotas/repos","events_url":"https://api.github.com/users/ignasbernotas/events{/privacy}","received_events_url":"https://api.github.com/users/ignasbernotas/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-09T14:36:07Z","updated_at":"2018-05-10T08:49:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc37154212e39f0897a794c641f40c382774db75","assignee":null,"assignees":[],"requested_reviewers":[{"login":"donce","id":1409983,"avatar_url":"https://avatars0.githubusercontent.com/u/1409983?v=4","gravatar_id":"","url":"https://api.github.com/users/donce","html_url":"https://github.com/donce","followers_url":"https://api.github.com/users/donce/followers","following_url":"https://api.github.com/users/donce/following{/other_user}","gists_url":"https://api.github.com/users/donce/gists{/gist_id}","starred_url":"https://api.github.com/users/donce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donce/subscriptions","organizations_url":"https://api.github.com/users/donce/orgs","repos_url":"https://api.github.com/users/donce/repos","events_url":"https://api.github.com/users/donce/events{/privacy}","received_events_url":"https://api.github.com/users/donce/received_events","type":"User","site_admin":false},{"login":"Waldz","id":2713911,"avatar_url":"https://avatars1.githubusercontent.com/u/2713911?v=4","gravatar_id":"","url":"https://api.github.com/users/Waldz","html_url":"https://github.com/Waldz","followers_url":"https://api.github.com/users/Waldz/followers","following_url":"https://api.github.com/users/Waldz/following{/other_user}","gists_url":"https://api.github.com/users/Waldz/gists{/gist_id}","starred_url":"https://api.github.com/users/Waldz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Waldz/subscriptions","organizations_url":"https://api.github.com/users/Waldz/orgs","repos_url":"https://api.github.com/users/Waldz/repos","events_url":"https://api.github.com/users/Waldz/events{/privacy}","received_events_url":"https://api.github.com/users/Waldz/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/149/commits","review_comments_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/149/comments","review_comment_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/149/comments","statuses_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/statuses/2933212e04a866a4d47b55e967177c3dbdf2df57","head":{"label":"MysteriumNetwork:feature/MYS-26-tray-dropdown-selection-sync","ref":"feature/MYS-26-tray-dropdown-selection-sync","sha":"2933212e04a866a4d47b55e967177c3dbdf2df57","user":{"login":"MysteriumNetwork","id":23056638,"avatar_url":"https://avatars3.githubusercontent.com/u/23056638?v=4","gravatar_id":"","url":"https://api.github.com/users/MysteriumNetwork","html_url":"https://github.com/MysteriumNetwork","followers_url":"https://api.github.com/users/MysteriumNetwork/followers","following_url":"https://api.github.com/users/MysteriumNetwork/following{/other_user}","gists_url":"https://api.github.com/users/MysteriumNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/MysteriumNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MysteriumNetwork/subscriptions","organizations_url":"https://api.github.com/users/MysteriumNetwork/orgs","repos_url":"https://api.github.com/users/MysteriumNetwork/repos","events_url":"https://api.github.com/users/MysteriumNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/MysteriumNetwork/received_events","type":"Organization","site_admin":false},"repo":{"id":112330860,"name":"mysterion","full_name":"MysteriumNetwork/mysterion","owner":{"login":"MysteriumNetwork","id":23056638,"avatar_url":"https://avatars3.githubusercontent.com/u/23056638?v=4","gravatar_id":"","url":"https://api.github.com/users/MysteriumNetwork","html_url":"https://github.com/MysteriumNetwork","followers_url":"https://api.github.com/users/MysteriumNetwork/followers","following_url":"https://api.github.com/users/MysteriumNetwork/following{/other_user}","gists_url":"https://api.github.com/users/MysteriumNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/MysteriumNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MysteriumNetwork/subscriptions","organizations_url":"https://api.github.com/users/MysteriumNetwork/orgs","repos_url":"https://api.github.com/users/MysteriumNetwork/repos","events_url":"https://api.github.com/users/MysteriumNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/MysteriumNetwork/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MysteriumNetwork/mysterion","description":"Mysterion is desktop application to access Mysterion Network - decentralized VPN built on blockchain.","fork":false,"url":"https://api.github.com/repos/MysteriumNetwork/mysterion","forks_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/forks","keys_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/teams","hooks_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/hooks","issue_events_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/events{/number}","events_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/events","assignees_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/assignees{/user}","branches_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/branches{/branch}","tags_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/tags","blobs_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/refs{/sha}","trees_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/statuses/{sha}","languages_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/languages","stargazers_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/stargazers","contributors_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/contributors","subscribers_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/subscribers","subscription_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/subscription","commits_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/commits{/sha}","git_commits_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/commits{/sha}","comments_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/comments{/number}","issue_comment_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/comments{/number}","contents_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/contents/{+path}","compare_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/merges","archive_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/downloads","issues_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues{/number}","pulls_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls{/number}","milestones_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/milestones{/number}","notifications_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/labels{/name}","releases_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/releases{/id}","deployments_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/deployments","created_at":"2017-11-28T12:12:23Z","updated_at":"2018-05-09T20:59:18Z","pushed_at":"2018-05-10T07:21:10Z","git_url":"git://github.com/MysteriumNetwork/mysterion.git","ssh_url":"git@github.com:MysteriumNetwork/mysterion.git","clone_url":"https://github.com/MysteriumNetwork/mysterion.git","svn_url":"https://github.com/MysteriumNetwork/mysterion","homepage":"https://mysterium.network/","size":9484,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"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"},"forks":0,"open_issues":6,"watchers":16,"default_branch":"master"}},"base":{"label":"MysteriumNetwork:feature/MYS-22-sorted-country-labels","ref":"feature/MYS-22-sorted-country-labels","sha":"f0e761bd054127315521618fe4dc3cfe080c8819","user":{"login":"MysteriumNetwork","id":23056638,"avatar_url":"https://avatars3.githubusercontent.com/u/23056638?v=4","gravatar_id":"","url":"https://api.github.com/users/MysteriumNetwork","html_url":"https://github.com/MysteriumNetwork","followers_url":"https://api.github.com/users/MysteriumNetwork/followers","following_url":"https://api.github.com/users/MysteriumNetwork/following{/other_user}","gists_url":"https://api.github.com/users/MysteriumNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/MysteriumNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MysteriumNetwork/subscriptions","organizations_url":"https://api.github.com/users/MysteriumNetwork/orgs","repos_url":"https://api.github.com/users/MysteriumNetwork/repos","events_url":"https://api.github.com/users/MysteriumNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/MysteriumNetwork/received_events","type":"Organization","site_admin":false},"repo":{"id":112330860,"name":"mysterion","full_name":"MysteriumNetwork/mysterion","owner":{"login":"MysteriumNetwork","id":23056638,"avatar_url":"https://avatars3.githubusercontent.com/u/23056638?v=4","gravatar_id":"","url":"https://api.github.com/users/MysteriumNetwork","html_url":"https://github.com/MysteriumNetwork","followers_url":"https://api.github.com/users/MysteriumNetwork/followers","following_url":"https://api.github.com/users/MysteriumNetwork/following{/other_user}","gists_url":"https://api.github.com/users/MysteriumNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/MysteriumNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MysteriumNetwork/subscriptions","organizations_url":"https://api.github.com/users/MysteriumNetwork/orgs","repos_url":"https://api.github.com/users/MysteriumNetwork/repos","events_url":"https://api.github.com/users/MysteriumNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/MysteriumNetwork/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MysteriumNetwork/mysterion","description":"Mysterion is desktop application to access Mysterion Network - decentralized VPN built on blockchain.","fork":false,"url":"https://api.github.com/repos/MysteriumNetwork/mysterion","forks_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/forks","keys_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/teams","hooks_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/hooks","issue_events_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/events{/number}","events_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/events","assignees_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/assignees{/user}","branches_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/branches{/branch}","tags_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/tags","blobs_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/refs{/sha}","trees_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/statuses/{sha}","languages_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/languages","stargazers_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/stargazers","contributors_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/contributors","subscribers_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/subscribers","subscription_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/subscription","commits_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/commits{/sha}","git_commits_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/commits{/sha}","comments_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/comments{/number}","issue_comment_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/comments{/number}","contents_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/contents/{+path}","compare_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/merges","archive_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/downloads","issues_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues{/number}","pulls_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls{/number}","milestones_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/milestones{/number}","notifications_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/labels{/name}","releases_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/releases{/id}","deployments_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/deployments","created_at":"2017-11-28T12:12:23Z","updated_at":"2018-05-09T20:59:18Z","pushed_at":"2018-05-10T07:21:10Z","git_url":"git://github.com/MysteriumNetwork/mysterion.git","ssh_url":"git@github.com:MysteriumNetwork/mysterion.git","clone_url":"https://github.com/MysteriumNetwork/mysterion.git","svn_url":"https://github.com/MysteriumNetwork/mysterion","homepage":"https://mysterium.network/","size":9484,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"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"},"forks":0,"open_issues":6,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/149"},"html":{"href":"https://github.com/MysteriumNetwork/mysterion/pull/149"},"issue":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/149"},"comments":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/149/comments"},"review_comments":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/149/comments"},"review_comment":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/149/commits"},"statuses":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/statuses/2933212e04a866a4d47b55e967177c3dbdf2df57"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"shroomist"}}