{"action":"created","comment":{"url":"https://api.github.com/repos/wmde/wikibase-termbox/pulls/comments/241840378","pull_request_review_id":185220927,"id":241840378,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTg0MDM3OA==","diff_hunk":"@@ -0,0 +1,43 @@\n+import LanguageRepository from '@/common/data-access/LanguageRepository.ts';\n+import LanguageCollection from '@/datamodel/LanguageCollection';\n+import Language from '@/datamodel/Language.ts';\n+import { WikibaseContentLanguages, UlsData } from '@/client/mediawiki/MwWindow';\n+\n+export default class UlsLanguageRepository implements LanguageRepository {\n+\n+\tprivate contentLanguages: WikibaseContentLanguages;\n+\tprivate directionalities: UlsData;\n+\n+\tconstructor( contentLanguages: WikibaseContentLanguages, directionalities: UlsData ) {\n+\t\tthis.contentLanguages = contentLanguages;\n+\t\tthis.directionalities = directionalities;\n+\t}\n+\n+\tpublic getLanguages(): Promise<LanguageCollection> {\n+\t\treturn new Promise<LanguageCollection>( ( resolve ) => {\n+\t\t\tresolve( this.getLanguageCollection() );\n+\t\t} );\n+\t}\n+\n+\tprivate getLanguageCollection(): LanguageCollection {\n+\t\tconst codes = this.getLanguagesCodes();\n+\t\tconst collection = {} as LanguageCollection;\n+\t\tcodes.forEach( ( code ) => {\n+\t\t\tcollection[ code ] = this.getDircectionalityByKey( code );\n+\t\t} );\n+\t\treturn collection;\n+\t}\n+\n+\tprivate getLanguagesCodes(): string[] {","path":"src/client/data-access/UlsLanguageRepository.ts","position":31,"original_position":31,"commit_id":"e3b87c686b55bf8180f3c52734c7ceb99004ccdd","original_commit_id":"5ea94887224d9dfb7ca0383769f2783386557939","user":{"login":"jakobw","id":453024,"node_id":"MDQ6VXNlcjQ1MzAyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/453024?v=4","gravatar_id":"","url":"https://api.github.com/users/jakobw","html_url":"https://github.com/jakobw","followers_url":"https://api.github.com/users/jakobw/followers","following_url":"https://api.github.com/users/jakobw/following{/other_user}","gists_url":"https://api.github.com/users/jakobw/gists{/gist_id}","starred_url":"https://api.github.com/users/jakobw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakobw/subscriptions","organizations_url":"https://api.github.com/users/jakobw/orgs","repos_url":"https://api.github.com/users/jakobw/repos","events_url":"https://api.github.com/users/jakobw/events{/privacy}","received_events_url":"https://api.github.com/users/jakobw/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n\tprivate getLanguageCodes(): string[] {\r\n```","created_at":"2018-12-14T18:01:13Z","updated_at":"2018-12-14T18:08:02Z","html_url":"https://github.com/wmde/wikibase-termbox/pull/110#discussion_r241840378","pull_request_url":"https://api.github.com/repos/wmde/wikibase-termbox/pulls/110","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/wmde/wikibase-termbox/pulls/comments/241840378"},"html":{"href":"https://github.com/wmde/wikibase-termbox/pull/110#discussion_r241840378"},"pull_request":{"href":"https://api.github.com/repos/wmde/wikibase-termbox/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/wmde/wikibase-termbox/pulls/110","id":237780752,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3NzgwNzUy","html_url":"https://github.com/wmde/wikibase-termbox/pull/110","diff_url":"https://github.com/wmde/wikibase-termbox/pull/110.diff","patch_url":"https://github.com/wmde/wikibase-termbox/pull/110.patch","issue_url":"https://api.github.com/repos/wmde/wikibase-termbox/issues/110","number":110,"state":"open","locked":false,"title":"Languages on a item for client with uls","user":{"login":"bitPogo","id":33144205,"node_id":"MDQ6VXNlcjMzMTQ0MjA1","avatar_url":"https://avatars0.githubusercontent.com/u/33144205?v=4","gravatar_id":"","url":"https://api.github.com/users/bitPogo","html_url":"https://github.com/bitPogo","followers_url":"https://api.github.com/users/bitPogo/followers","following_url":"https://api.github.com/users/bitPogo/following{/other_user}","gists_url":"https://api.github.com/users/bitPogo/gists{/gist_id}","starred_url":"https://api.github.com/users/bitPogo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitPogo/subscriptions","organizations_url":"https://api.github.com/users/bitPogo/orgs","repos_url":"https://api.github.com/users/bitPogo/repos","events_url":"https://api.github.com/users/bitPogo/events{/privacy}","received_events_url":"https://api.github.com/users/bitPogo/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-11T18:22:02Z","updated_at":"2018-12-14T18:08:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a55dc682646fb50247a1abbc6a1c4849c9b73ba3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wmde/wikibase-termbox/pulls/110/commits","review_comments_url":"https://api.github.com/repos/wmde/wikibase-termbox/pulls/110/comments","review_comment_url":"https://api.github.com/repos/wmde/wikibase-termbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wmde/wikibase-termbox/issues/110/comments","statuses_url":"https://api.github.com/repos/wmde/wikibase-termbox/statuses/e3b87c686b55bf8180f3c52734c7ceb99004ccdd","head":{"label":"wmde:lang-update-cli-uls","ref":"lang-update-cli-uls","sha":"e3b87c686b55bf8180f3c52734c7ceb99004ccdd","user":{"login":"wmde","id":664724,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2NDcyNA==","avatar_url":"https://avatars1.githubusercontent.com/u/664724?v=4","gravatar_id":"","url":"https://api.github.com/users/wmde","html_url":"https://github.com/wmde","followers_url":"https://api.github.com/users/wmde/followers","following_url":"https://api.github.com/users/wmde/following{/other_user}","gists_url":"https://api.github.com/users/wmde/gists{/gist_id}","starred_url":"https://api.github.com/users/wmde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmde/subscriptions","organizations_url":"https://api.github.com/users/wmde/orgs","repos_url":"https://api.github.com/users/wmde/repos","events_url":"https://api.github.com/users/wmde/events{/privacy}","received_events_url":"https://api.github.com/users/wmde/received_events","type":"Organization","site_admin":false},"repo":{"id":151578336,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE1NzgzMzY=","name":"wikibase-termbox","full_name":"wmde/wikibase-termbox","private":false,"owner":{"login":"wmde","id":664724,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2NDcyNA==","avatar_url":"https://avatars1.githubusercontent.com/u/664724?v=4","gravatar_id":"","url":"https://api.github.com/users/wmde","html_url":"https://github.com/wmde","followers_url":"https://api.github.com/users/wmde/followers","following_url":"https://api.github.com/users/wmde/following{/other_user}","gists_url":"https://api.github.com/users/wmde/gists{/gist_id}","starred_url":"https://api.github.com/users/wmde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmde/subscriptions","organizations_url":"https://api.github.com/users/wmde/orgs","repos_url":"https://api.github.com/users/wmde/repos","events_url":"https://api.github.com/users/wmde/events{/privacy}","received_events_url":"https://api.github.com/users/wmde/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wmde/wikibase-termbox","description":"User interface for managing terms in Wikibase","fork":false,"url":"https://api.github.com/repos/wmde/wikibase-termbox","forks_url":"https://api.github.com/repos/wmde/wikibase-termbox/forks","keys_url":"https://api.github.com/repos/wmde/wikibase-termbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wmde/wikibase-termbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wmde/wikibase-termbox/teams","hooks_url":"https://api.github.com/repos/wmde/wikibase-termbox/hooks","issue_events_url":"https://api.github.com/repos/wmde/wikibase-termbox/issues/events{/number}","events_url":"https://api.github.com/repos/wmde/wikibase-termbox/events","assignees_url":"https://api.github.com/repos/wmde/wikibase-termbox/assignees{/user}","branches_url":"https://api.github.com/repos/wmde/wikibase-termbox/branches{/branch}","tags_url":"https://api.github.com/repos/wmde/wikibase-termbox/tags","blobs_url":"https://api.github.com/repos/wmde/wikibase-termbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wmde/wikibase-termbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wmde/wikibase-termbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/wmde/wikibase-termbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wmde/wikibase-termbox/statuses/{sha}","languages_url":"https://api.github.com/repos/wmde/wikibase-termbox/languages","stargazers_url":"https://api.github.com/repos/wmde/wikibase-termbox/stargazers","contributors_url":"https://api.github.com/repos/wmde/wikibase-termbox/contributors","subscribers_url":"https://api.github.com/repos/wmde/wikibase-termbox/subscribers","subscription_url":"https://api.github.com/repos/wmde/wikibase-termbox/subscription","commits_url":"https://api.github.com/repos/wmde/wikibase-termbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/wmde/wikibase-termbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/wmde/wikibase-termbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/wmde/wikibase-termbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/wmde/wikibase-termbox/contents/{+path}","compare_url":"https://api.github.com/repos/wmde/wikibase-termbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wmde/wikibase-termbox/merges","archive_url":"https://api.github.com/repos/wmde/wikibase-termbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wmde/wikibase-termbox/downloads","issues_url":"https://api.github.com/repos/wmde/wikibase-termbox/issues{/number}","pulls_url":"https://api.github.com/repos/wmde/wikibase-termbox/pulls{/number}","milestones_url":"https://api.github.com/repos/wmde/wikibase-termbox/milestones{/number}","notifications_url":"https://api.github.com/repos/wmde/wikibase-termbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wmde/wikibase-termbox/labels{/name}","releases_url":"https://api.github.com/repos/wmde/wikibase-termbox/releases{/id}","deployments_url":"https://api.github.com/repos/wmde/wikibase-termbox/deployments","created_at":"2018-10-04T13:44:11Z","updated_at":"2018-12-14T13:55:19Z","pushed_at":"2018-12-14T18:07:08Z","git_url":"git://github.com/wmde/wikibase-termbox.git","ssh_url":"git@github.com:wmde/wikibase-termbox.git","clone_url":"https://github.com/wmde/wikibase-termbox.git","svn_url":"https://github.com/wmde/wikibase-termbox","homepage":"http://wikiba.se","size":619,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"wmde:langCFetch","ref":"langCFetch","sha":"654790ec84c36e28ea47b16558b02dd6e7d65114","user":{"login":"wmde","id":664724,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2NDcyNA==","avatar_url":"https://avatars1.githubusercontent.com/u/664724?v=4","gravatar_id":"","url":"https://api.github.com/users/wmde","html_url":"https://github.com/wmde","followers_url":"https://api.github.com/users/wmde/followers","following_url":"https://api.github.com/users/wmde/following{/other_user}","gists_url":"https://api.github.com/users/wmde/gists{/gist_id}","starred_url":"https://api.github.com/users/wmde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmde/subscriptions","organizations_url":"https://api.github.com/users/wmde/orgs","repos_url":"https://api.github.com/users/wmde/repos","events_url":"https://api.github.com/users/wmde/events{/privacy}","received_events_url":"https://api.github.com/users/wmde/received_events","type":"Organization","site_admin":false},"repo":{"id":151578336,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE1NzgzMzY=","name":"wikibase-termbox","full_name":"wmde/wikibase-termbox","private":false,"owner":{"login":"wmde","id":664724,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2NDcyNA==","avatar_url":"https://avatars1.githubusercontent.com/u/664724?v=4","gravatar_id":"","url":"https://api.github.com/users/wmde","html_url":"https://github.com/wmde","followers_url":"https://api.github.com/users/wmde/followers","following_url":"https://api.github.com/users/wmde/following{/other_user}","gists_url":"https://api.github.com/users/wmde/gists{/gist_id}","starred_url":"https://api.github.com/users/wmde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmde/subscriptions","organizations_url":"https://api.github.com/users/wmde/orgs","repos_url":"https://api.github.com/users/wmde/repos","events_url":"https://api.github.com/users/wmde/events{/privacy}","received_events_url":"https://api.github.com/users/wmde/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wmde/wikibase-termbox","description":"User interface for managing terms in Wikibase","fork":false,"url":"https://api.github.com/repos/wmde/wikibase-termbox","forks_url":"https://api.github.com/repos/wmde/wikibase-termbox/forks","keys_url":"https://api.github.com/repos/wmde/wikibase-termbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wmde/wikibase-termbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wmde/wikibase-termbox/teams","hooks_url":"https://api.github.com/repos/wmde/wikibase-termbox/hooks","issue_events_url":"https://api.github.com/repos/wmde/wikibase-termbox/issues/events{/number}","events_url":"https://api.github.com/repos/wmde/wikibase-termbox/events","assignees_url":"https://api.github.com/repos/wmde/wikibase-termbox/assignees{/user}","branches_url":"https://api.github.com/repos/wmde/wikibase-termbox/branches{/branch}","tags_url":"https://api.github.com/repos/wmde/wikibase-termbox/tags","blobs_url":"https://api.github.com/repos/wmde/wikibase-termbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wmde/wikibase-termbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wmde/wikibase-termbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/wmde/wikibase-termbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wmde/wikibase-termbox/statuses/{sha}","languages_url":"https://api.github.com/repos/wmde/wikibase-termbox/languages","stargazers_url":"https://api.github.com/repos/wmde/wikibase-termbox/stargazers","contributors_url":"https://api.github.com/repos/wmde/wikibase-termbox/contributors","subscribers_url":"https://api.github.com/repos/wmde/wikibase-termbox/subscribers","subscription_url":"https://api.github.com/repos/wmde/wikibase-termbox/subscription","commits_url":"https://api.github.com/repos/wmde/wikibase-termbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/wmde/wikibase-termbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/wmde/wikibase-termbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/wmde/wikibase-termbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/wmde/wikibase-termbox/contents/{+path}","compare_url":"https://api.github.com/repos/wmde/wikibase-termbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wmde/wikibase-termbox/merges","archive_url":"https://api.github.com/repos/wmde/wikibase-termbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wmde/wikibase-termbox/downloads","issues_url":"https://api.github.com/repos/wmde/wikibase-termbox/issues{/number}","pulls_url":"https://api.github.com/repos/wmde/wikibase-termbox/pulls{/number}","milestones_url":"https://api.github.com/repos/wmde/wikibase-termbox/milestones{/number}","notifications_url":"https://api.github.com/repos/wmde/wikibase-termbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wmde/wikibase-termbox/labels{/name}","releases_url":"https://api.github.com/repos/wmde/wikibase-termbox/releases{/id}","deployments_url":"https://api.github.com/repos/wmde/wikibase-termbox/deployments","created_at":"2018-10-04T13:44:11Z","updated_at":"2018-12-14T13:55:19Z","pushed_at":"2018-12-14T18:07:08Z","git_url":"git://github.com/wmde/wikibase-termbox.git","ssh_url":"git@github.com:wmde/wikibase-termbox.git","clone_url":"https://github.com/wmde/wikibase-termbox.git","svn_url":"https://github.com/wmde/wikibase-termbox","homepage":"http://wikiba.se","size":619,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wmde/wikibase-termbox/pulls/110"},"html":{"href":"https://github.com/wmde/wikibase-termbox/pull/110"},"issue":{"href":"https://api.github.com/repos/wmde/wikibase-termbox/issues/110"},"comments":{"href":"https://api.github.com/repos/wmde/wikibase-termbox/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/wmde/wikibase-termbox/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/wmde/wikibase-termbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wmde/wikibase-termbox/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/wmde/wikibase-termbox/statuses/e3b87c686b55bf8180f3c52734c7ceb99004ccdd"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jakobw"}}