{"action":"created","comment":{"url":"https://api.github.com/repos/Wikia/mercury/pulls/comments/35680021","id":35680021,"diff_hunk":"@@ -260,5 +262,59 @@ App.ArticleView = Em.View.extend(App.AdsMixin, App.LanguagesMixin, App.ViewportM\n \t\t} else {\n \t\t\tEm.Logger.debug('Missing ref on', target);\n \t\t}\n+\t},\n+\n+\thandleWikiaInYourLang: function(): void {\n+\t\tif (this.shouldShowWikiaInYourLang()) {\n+\t\t\tApp.WikiaInYourLangModel.load()\n+\t\t\t.then(function(model: typeof App.WikiaInYourLangModel): void {\n+\t\t\t\tif (model) {\n+\t\t\t\t\tthis.createAlert(model);\n+\t\t\t\t\tM.track({\n+\t\t\t\t\t\taction: M.trackActions.impression,\n+\t\t\t\t\t\tcategory: 'wikiaInYourLangAlert',\n+\t\t\t\t\t\tlabel: 'shown'\n+\t\t\t\t\t});\n+\t\t\t\t}\n+\t\t\t}.bind(this),\n+\t\t\t(err: any) => {\n+\t\t\t\tM.track({\n+\t\t\t\t\taction: M.trackActions.impression,\n+\t\t\t\t\tcategory: 'wikiaInYourLangAlert',\n+\t\t\t\t\tlabel: err || 'error'\n+\t\t\t\t});\n+\t\t\t});\n+\t\t}\n+\t},\n+\n+\tcreateAlert: function(model: typeof App.WikiaInYourLangModel): void {\n+\t\tvar appController = this.get('controller').get('controllers.application');\n+\t\tappController.addAlert('', model.message, 60000, true, {\n+\t\t\tonInsertElement: function(alert: any): void {","path":"front/scripts/main/views/ArticleView.ts","position":47,"original_position":47,"commit_id":"4a921d753f65754c62a1141f53030152dad4b501","original_commit_id":"4a921d753f65754c62a1141f53030152dad4b501","user":{"login":"inez","id":611259,"avatar_url":"https://avatars.githubusercontent.com/u/611259?v=3","gravatar_id":"","url":"https://api.github.com/users/inez","html_url":"https://github.com/inez","followers_url":"https://api.github.com/users/inez/followers","following_url":"https://api.github.com/users/inez/following{/other_user}","gists_url":"https://api.github.com/users/inez/gists{/gist_id}","starred_url":"https://api.github.com/users/inez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inez/subscriptions","organizations_url":"https://api.github.com/users/inez/orgs","repos_url":"https://api.github.com/users/inez/repos","events_url":"https://api.github.com/users/inez/events{/privacy}","received_events_url":"https://api.github.com/users/inez/received_events","type":"User","site_admin":false},"body":"Btw. I just noticed it, having method createAlert in ArticleView which is actually very specific to Wikia in your language feature (and required WikiaInYourLangModel) seems pretty odd. ArticleView is definitely not the place where I would search for that feature, and method createAlert on ArticleView is definitely not the one from which I would expect handling it.","created_at":"2015-07-28T18:09:35Z","updated_at":"2015-07-28T18:09:35Z","html_url":"https://github.com/Wikia/mercury/pull/1100#discussion_r35680021","pull_request_url":"https://api.github.com/repos/Wikia/mercury/pulls/1100","_links":{"self":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/comments/35680021"},"html":{"href":"https://github.com/Wikia/mercury/pull/1100#discussion_r35680021"},"pull_request":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1100"}}},"pull_request":{"url":"https://api.github.com/repos/Wikia/mercury/pulls/1100","id":40639859,"html_url":"https://github.com/Wikia/mercury/pull/1100","diff_url":"https://github.com/Wikia/mercury/pull/1100.diff","patch_url":"https://github.com/Wikia/mercury/pull/1100.patch","issue_url":"https://api.github.com/repos/Wikia/mercury/issues/1100","number":1100,"state":"open","locked":false,"title":"INT-124: Wikia-In-Your-Language for Mercury","user":{"login":"mari-mcmurtrie","id":12705267,"avatar_url":"https://avatars.githubusercontent.com/u/12705267?v=3","gravatar_id":"","url":"https://api.github.com/users/mari-mcmurtrie","html_url":"https://github.com/mari-mcmurtrie","followers_url":"https://api.github.com/users/mari-mcmurtrie/followers","following_url":"https://api.github.com/users/mari-mcmurtrie/following{/other_user}","gists_url":"https://api.github.com/users/mari-mcmurtrie/gists{/gist_id}","starred_url":"https://api.github.com/users/mari-mcmurtrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mari-mcmurtrie/subscriptions","organizations_url":"https://api.github.com/users/mari-mcmurtrie/orgs","repos_url":"https://api.github.com/users/mari-mcmurtrie/repos","events_url":"https://api.github.com/users/mari-mcmurtrie/events{/privacy}","received_events_url":"https://api.github.com/users/mari-mcmurtrie/received_events","type":"User","site_admin":false},"body":"\r\nAs a mobile user, I want to know if there is a wikia in my own language when i am on a wikia. We show a notification if a user is on wikia which has the same language wikia as the user's browser setting. If a user close the alert without going to the alternative wikia, then we record the action and now show the same alert for 1 day. \r\n\r\n","created_at":"2015-07-23T06:10:06Z","updated_at":"2015-07-28T18:09:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4511694350ca8a6e693dbae5f3449c7bcedb9689","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/mercury/pulls/1100/commits","review_comments_url":"https://api.github.com/repos/Wikia/mercury/pulls/1100/comments","review_comment_url":"https://api.github.com/repos/Wikia/mercury/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikia/mercury/issues/1100/comments","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/4a921d753f65754c62a1141f53030152dad4b501","head":{"label":"Wikia:INT-124","ref":"INT-124","sha":"4a921d753f65754c62a1141f53030152dad4b501","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":16710430,"name":"mercury","full_name":"Wikia/mercury","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/mercury","description":"Wikia Web application","fork":false,"url":"https://api.github.com/repos/Wikia/mercury","forks_url":"https://api.github.com/repos/Wikia/mercury/forks","keys_url":"https://api.github.com/repos/Wikia/mercury/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/mercury/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/mercury/teams","hooks_url":"https://api.github.com/repos/Wikia/mercury/hooks","issue_events_url":"https://api.github.com/repos/Wikia/mercury/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/mercury/events","assignees_url":"https://api.github.com/repos/Wikia/mercury/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/mercury/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/mercury/tags","blobs_url":"https://api.github.com/repos/Wikia/mercury/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/mercury/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/mercury/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/mercury/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/mercury/languages","stargazers_url":"https://api.github.com/repos/Wikia/mercury/stargazers","contributors_url":"https://api.github.com/repos/Wikia/mercury/contributors","subscribers_url":"https://api.github.com/repos/Wikia/mercury/subscribers","subscription_url":"https://api.github.com/repos/Wikia/mercury/subscription","commits_url":"https://api.github.com/repos/Wikia/mercury/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/mercury/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/mercury/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/mercury/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/mercury/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/mercury/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/mercury/merges","archive_url":"https://api.github.com/repos/Wikia/mercury/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/mercury/downloads","issues_url":"https://api.github.com/repos/Wikia/mercury/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/mercury/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/mercury/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/mercury/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/mercury/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/mercury/releases{/id}","created_at":"2014-02-10T21:44:25Z","updated_at":"2015-05-08T20:25:03Z","pushed_at":"2015-07-28T17:37:53Z","git_url":"git://github.com/Wikia/mercury.git","ssh_url":"git@github.com:Wikia/mercury.git","clone_url":"https://github.com/Wikia/mercury.git","svn_url":"https://github.com/Wikia/mercury","homepage":"","size":54697,"stargazers_count":10,"watchers_count":10,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":19,"forks":1,"open_issues":19,"watchers":10,"default_branch":"dev"}},"base":{"label":"Wikia:dev","ref":"dev","sha":"0c37c814b22bce4b89442cc3e156836079abc873","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":16710430,"name":"mercury","full_name":"Wikia/mercury","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/mercury","description":"Wikia Web application","fork":false,"url":"https://api.github.com/repos/Wikia/mercury","forks_url":"https://api.github.com/repos/Wikia/mercury/forks","keys_url":"https://api.github.com/repos/Wikia/mercury/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/mercury/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/mercury/teams","hooks_url":"https://api.github.com/repos/Wikia/mercury/hooks","issue_events_url":"https://api.github.com/repos/Wikia/mercury/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/mercury/events","assignees_url":"https://api.github.com/repos/Wikia/mercury/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/mercury/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/mercury/tags","blobs_url":"https://api.github.com/repos/Wikia/mercury/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/mercury/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/mercury/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/mercury/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/mercury/languages","stargazers_url":"https://api.github.com/repos/Wikia/mercury/stargazers","contributors_url":"https://api.github.com/repos/Wikia/mercury/contributors","subscribers_url":"https://api.github.com/repos/Wikia/mercury/subscribers","subscription_url":"https://api.github.com/repos/Wikia/mercury/subscription","commits_url":"https://api.github.com/repos/Wikia/mercury/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/mercury/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/mercury/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/mercury/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/mercury/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/mercury/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/mercury/merges","archive_url":"https://api.github.com/repos/Wikia/mercury/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/mercury/downloads","issues_url":"https://api.github.com/repos/Wikia/mercury/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/mercury/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/mercury/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/mercury/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/mercury/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/mercury/releases{/id}","created_at":"2014-02-10T21:44:25Z","updated_at":"2015-05-08T20:25:03Z","pushed_at":"2015-07-28T17:37:53Z","git_url":"git://github.com/Wikia/mercury.git","ssh_url":"git@github.com:Wikia/mercury.git","clone_url":"https://github.com/Wikia/mercury.git","svn_url":"https://github.com/Wikia/mercury","homepage":"","size":54697,"stargazers_count":10,"watchers_count":10,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":19,"forks":1,"open_issues":19,"watchers":10,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1100"},"html":{"href":"https://github.com/Wikia/mercury/pull/1100"},"issue":{"href":"https://api.github.com/repos/Wikia/mercury/issues/1100"},"comments":{"href":"https://api.github.com/repos/Wikia/mercury/issues/1100/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1100/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1100/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/mercury/statuses/4a921d753f65754c62a1141f53030152dad4b501"}}}}