{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/223226744","pull_request_review_id":162303320,"id":223226744,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzIyNjc0NA==","diff_hunk":"@@ -188,6 +188,11 @@\n         </li>\n       </ul>\n     </li>\n+\n+    <li uib-dropdown ng-if=\"username == ''\" class=\"oppia-navbar-clickable-dropdown\">","path":"core/templates/dev/head/components/top_navigation_bar/top_navigation_bar_directive.html","position":23,"original_position":23,"commit_id":"5ea07bc3b7eda234c564136cec58731158b77c13","original_commit_id":"5ea07bc3b7eda234c564136cec58731158b77c13","user":{"login":"seanlip","id":10575562,"node_id":"MDQ6VXNlcjEwNTc1NTYy","avatar_url":"https://avatars0.githubusercontent.com/u/10575562?v=4","gravatar_id":"","url":"https://api.github.com/users/seanlip","html_url":"https://github.com/seanlip","followers_url":"https://api.github.com/users/seanlip/followers","following_url":"https://api.github.com/users/seanlip/following{/other_user}","gists_url":"https://api.github.com/users/seanlip/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlip/subscriptions","organizations_url":"https://api.github.com/users/seanlip/orgs","repos_url":"https://api.github.com/users/seanlip/repos","events_url":"https://api.github.com/users/seanlip/events{/privacy}","received_events_url":"https://api.github.com/users/seanlip/received_events","type":"User","site_admin":false},"body":"Ditto -- ng-if=\"!username\" perhaps? Not sure.\r\n\r\nIf you're looking for '' specifically then perhaps use === instead of ==.","created_at":"2018-10-07T20:30:40Z","updated_at":"2018-10-07T20:35:14Z","html_url":"https://github.com/oppia/oppia/pull/5659#discussion_r223226744","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/5659","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/223226744"},"html":{"href":"https://github.com/oppia/oppia/pull/5659#discussion_r223226744"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/5659"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/5659","id":215825008,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1ODI1MDA4","html_url":"https://github.com/oppia/oppia/pull/5659","diff_url":"https://github.com/oppia/oppia/pull/5659.diff","patch_url":"https://github.com/oppia/oppia/pull/5659.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/5659","number":5659,"state":"open","locked":false,"title":"Fix part of #5002: Move user related variables form GLOBALS","user":{"login":"vojtechjelinek","id":10142938,"node_id":"MDQ6VXNlcjEwMTQyOTM4","avatar_url":"https://avatars0.githubusercontent.com/u/10142938?v=4","gravatar_id":"","url":"https://api.github.com/users/vojtechjelinek","html_url":"https://github.com/vojtechjelinek","followers_url":"https://api.github.com/users/vojtechjelinek/followers","following_url":"https://api.github.com/users/vojtechjelinek/following{/other_user}","gists_url":"https://api.github.com/users/vojtechjelinek/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtechjelinek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtechjelinek/subscriptions","organizations_url":"https://api.github.com/users/vojtechjelinek/orgs","repos_url":"https://api.github.com/users/vojtechjelinek/repos","events_url":"https://api.github.com/users/vojtechjelinek/events{/privacy}","received_events_url":"https://api.github.com/users/vojtechjelinek/received_events","type":"User","site_admin":false},"body":"## Explanation\r\nFixes part of #5002: Created new handler UserInfo that provides user-related variables to the frontend.\r\n\r\nThe variables moved to new handler:\r\n- `isAdmin`\r\n- `isModerator`\r\n- `isSuperAdmin`\r\n- `can_create_collections`\r\n- `preferredSiteLanguageCode`\r\n- `username`\r\n\r\n`userIsLoggedIn` would be handled in separate PR\r\n\r\n## Checklist\r\n- [x] The PR title starts with \"Fix #bugnum: \", followed by a short, clear summary of the changes.\r\n- [x] The PR explanation includes the words \"Fixes #bugnum: ...\".\r\n- [x] The linter/Karma presubmit checks have passed.\r\n  - These should run automatically, but if not, you can manually trigger them locally using `python scripts/pre_commit_linter.py` and `bash scripts/run_frontend_tests.sh`.\r\n- [x] The PR is made from a branch that's **not** called \"develop\".\r\n- [x] The PR follows the [style guide](https://github.com/oppia/oppia/wiki/Coding-style-guide).\r\n- [x] The PR is assigned to an appropriate reviewer.\r\n  - If you're a new contributor, please ask on [Gitter](https://gitter.im/oppia/oppia-chat) for someone to assign a reviewer.\r\n  - If you're not sure who the appropriate reviewer is, please assign to the issue's \"owner\" -- see the \"talk-to\" label on the issue.\r\n","created_at":"2018-09-16T14:03:40Z","updated_at":"2018-10-07T20:35:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd845c399ddee0588cee6531688a31ab33db5041","assignee":{"login":"vojtechjelinek","id":10142938,"node_id":"MDQ6VXNlcjEwMTQyOTM4","avatar_url":"https://avatars0.githubusercontent.com/u/10142938?v=4","gravatar_id":"","url":"https://api.github.com/users/vojtechjelinek","html_url":"https://github.com/vojtechjelinek","followers_url":"https://api.github.com/users/vojtechjelinek/followers","following_url":"https://api.github.com/users/vojtechjelinek/following{/other_user}","gists_url":"https://api.github.com/users/vojtechjelinek/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtechjelinek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtechjelinek/subscriptions","organizations_url":"https://api.github.com/users/vojtechjelinek/orgs","repos_url":"https://api.github.com/users/vojtechjelinek/repos","events_url":"https://api.github.com/users/vojtechjelinek/events{/privacy}","received_events_url":"https://api.github.com/users/vojtechjelinek/received_events","type":"User","site_admin":false},"assignees":[{"login":"vojtechjelinek","id":10142938,"node_id":"MDQ6VXNlcjEwMTQyOTM4","avatar_url":"https://avatars0.githubusercontent.com/u/10142938?v=4","gravatar_id":"","url":"https://api.github.com/users/vojtechjelinek","html_url":"https://github.com/vojtechjelinek","followers_url":"https://api.github.com/users/vojtechjelinek/followers","following_url":"https://api.github.com/users/vojtechjelinek/following{/other_user}","gists_url":"https://api.github.com/users/vojtechjelinek/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtechjelinek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtechjelinek/subscriptions","organizations_url":"https://api.github.com/users/vojtechjelinek/orgs","repos_url":"https://api.github.com/users/vojtechjelinek/repos","events_url":"https://api.github.com/users/vojtechjelinek/events{/privacy}","received_events_url":"https://api.github.com/users/vojtechjelinek/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"1995YogeshSharma","id":9693472,"node_id":"MDQ6VXNlcjk2OTM0NzI=","avatar_url":"https://avatars2.githubusercontent.com/u/9693472?v=4","gravatar_id":"","url":"https://api.github.com/users/1995YogeshSharma","html_url":"https://github.com/1995YogeshSharma","followers_url":"https://api.github.com/users/1995YogeshSharma/followers","following_url":"https://api.github.com/users/1995YogeshSharma/following{/other_user}","gists_url":"https://api.github.com/users/1995YogeshSharma/gists{/gist_id}","starred_url":"https://api.github.com/users/1995YogeshSharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1995YogeshSharma/subscriptions","organizations_url":"https://api.github.com/users/1995YogeshSharma/orgs","repos_url":"https://api.github.com/users/1995YogeshSharma/repos","events_url":"https://api.github.com/users/1995YogeshSharma/events{/privacy}","received_events_url":"https://api.github.com/users/1995YogeshSharma/received_events","type":"User","site_admin":false},{"login":"apb7","id":24826041,"node_id":"MDQ6VXNlcjI0ODI2MDQx","avatar_url":"https://avatars2.githubusercontent.com/u/24826041?v=4","gravatar_id":"","url":"https://api.github.com/users/apb7","html_url":"https://github.com/apb7","followers_url":"https://api.github.com/users/apb7/followers","following_url":"https://api.github.com/users/apb7/following{/other_user}","gists_url":"https://api.github.com/users/apb7/gists{/gist_id}","starred_url":"https://api.github.com/users/apb7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apb7/subscriptions","organizations_url":"https://api.github.com/users/apb7/orgs","repos_url":"https://api.github.com/users/apb7/repos","events_url":"https://api.github.com/users/apb7/events{/privacy}","received_events_url":"https://api.github.com/users/apb7/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/5659/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/5659/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/5659/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/5ea07bc3b7eda234c564136cec58731158b77c13","head":{"label":"vojtechjelinek:user-data","ref":"user-data","sha":"5ea07bc3b7eda234c564136cec58731158b77c13","user":{"login":"vojtechjelinek","id":10142938,"node_id":"MDQ6VXNlcjEwMTQyOTM4","avatar_url":"https://avatars0.githubusercontent.com/u/10142938?v=4","gravatar_id":"","url":"https://api.github.com/users/vojtechjelinek","html_url":"https://github.com/vojtechjelinek","followers_url":"https://api.github.com/users/vojtechjelinek/followers","following_url":"https://api.github.com/users/vojtechjelinek/following{/other_user}","gists_url":"https://api.github.com/users/vojtechjelinek/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtechjelinek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtechjelinek/subscriptions","organizations_url":"https://api.github.com/users/vojtechjelinek/orgs","repos_url":"https://api.github.com/users/vojtechjelinek/repos","events_url":"https://api.github.com/users/vojtechjelinek/events{/privacy}","received_events_url":"https://api.github.com/users/vojtechjelinek/received_events","type":"User","site_admin":false},"repo":{"id":71257604,"node_id":"MDEwOlJlcG9zaXRvcnk3MTI1NzYwNA==","name":"oppia","full_name":"vojtechjelinek/oppia","private":false,"owner":{"login":"vojtechjelinek","id":10142938,"node_id":"MDQ6VXNlcjEwMTQyOTM4","avatar_url":"https://avatars0.githubusercontent.com/u/10142938?v=4","gravatar_id":"","url":"https://api.github.com/users/vojtechjelinek","html_url":"https://github.com/vojtechjelinek","followers_url":"https://api.github.com/users/vojtechjelinek/followers","following_url":"https://api.github.com/users/vojtechjelinek/following{/other_user}","gists_url":"https://api.github.com/users/vojtechjelinek/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtechjelinek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtechjelinek/subscriptions","organizations_url":"https://api.github.com/users/vojtechjelinek/orgs","repos_url":"https://api.github.com/users/vojtechjelinek/repos","events_url":"https://api.github.com/users/vojtechjelinek/events{/privacy}","received_events_url":"https://api.github.com/users/vojtechjelinek/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vojtechjelinek/oppia","description":"Tool for collaboratively building interactive lessons.","fork":true,"url":"https://api.github.com/repos/vojtechjelinek/oppia","forks_url":"https://api.github.com/repos/vojtechjelinek/oppia/forks","keys_url":"https://api.github.com/repos/vojtechjelinek/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vojtechjelinek/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vojtechjelinek/oppia/teams","hooks_url":"https://api.github.com/repos/vojtechjelinek/oppia/hooks","issue_events_url":"https://api.github.com/repos/vojtechjelinek/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/vojtechjelinek/oppia/events","assignees_url":"https://api.github.com/repos/vojtechjelinek/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/vojtechjelinek/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/vojtechjelinek/oppia/tags","blobs_url":"https://api.github.com/repos/vojtechjelinek/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vojtechjelinek/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vojtechjelinek/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/vojtechjelinek/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vojtechjelinek/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/vojtechjelinek/oppia/languages","stargazers_url":"https://api.github.com/repos/vojtechjelinek/oppia/stargazers","contributors_url":"https://api.github.com/repos/vojtechjelinek/oppia/contributors","subscribers_url":"https://api.github.com/repos/vojtechjelinek/oppia/subscribers","subscription_url":"https://api.github.com/repos/vojtechjelinek/oppia/subscription","commits_url":"https://api.github.com/repos/vojtechjelinek/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/vojtechjelinek/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/vojtechjelinek/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/vojtechjelinek/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/vojtechjelinek/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/vojtechjelinek/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vojtechjelinek/oppia/merges","archive_url":"https://api.github.com/repos/vojtechjelinek/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vojtechjelinek/oppia/downloads","issues_url":"https://api.github.com/repos/vojtechjelinek/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/vojtechjelinek/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/vojtechjelinek/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/vojtechjelinek/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vojtechjelinek/oppia/labels{/name}","releases_url":"https://api.github.com/repos/vojtechjelinek/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/vojtechjelinek/oppia/deployments","created_at":"2016-10-18T14:36:03Z","updated_at":"2016-10-18T14:36:07Z","pushed_at":"2018-10-07T14:55:37Z","git_url":"git://github.com/vojtechjelinek/oppia.git","ssh_url":"git@github.com:vojtechjelinek/oppia.git","clone_url":"https://github.com/vojtechjelinek/oppia.git","svn_url":"https://github.com/vojtechjelinek/oppia","homepage":"https://www.oppia.org","size":104494,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"oppia:develop","ref":"develop","sha":"d37b1e0c85593b9bf33aacbab7c72c7478992c40","user":{"login":"oppia","id":11620230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjIwMjMw","avatar_url":"https://avatars1.githubusercontent.com/u/11620230?v=4","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"repo":{"id":40687563,"node_id":"MDEwOlJlcG9zaXRvcnk0MDY4NzU2Mw==","name":"oppia","full_name":"oppia/oppia","private":false,"owner":{"login":"oppia","id":11620230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjIwMjMw","avatar_url":"https://avatars1.githubusercontent.com/u/11620230?v=4","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/oppia/oppia","description":"Tool for collaboratively building interactive lessons.","fork":false,"url":"https://api.github.com/repos/oppia/oppia","forks_url":"https://api.github.com/repos/oppia/oppia/forks","keys_url":"https://api.github.com/repos/oppia/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oppia/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oppia/oppia/teams","hooks_url":"https://api.github.com/repos/oppia/oppia/hooks","issue_events_url":"https://api.github.com/repos/oppia/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/oppia/oppia/events","assignees_url":"https://api.github.com/repos/oppia/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/oppia/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/oppia/oppia/tags","blobs_url":"https://api.github.com/repos/oppia/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oppia/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oppia/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/oppia/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/oppia/oppia/languages","stargazers_url":"https://api.github.com/repos/oppia/oppia/stargazers","contributors_url":"https://api.github.com/repos/oppia/oppia/contributors","subscribers_url":"https://api.github.com/repos/oppia/oppia/subscribers","subscription_url":"https://api.github.com/repos/oppia/oppia/subscription","commits_url":"https://api.github.com/repos/oppia/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/oppia/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/oppia/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/oppia/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/oppia/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/oppia/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oppia/oppia/merges","archive_url":"https://api.github.com/repos/oppia/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oppia/oppia/downloads","issues_url":"https://api.github.com/repos/oppia/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/oppia/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/oppia/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/oppia/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oppia/oppia/labels{/name}","releases_url":"https://api.github.com/repos/oppia/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/oppia/oppia/deployments","created_at":"2015-08-14T00:16:14Z","updated_at":"2018-10-07T05:37:27Z","pushed_at":"2018-10-07T18:20:15Z","git_url":"git://github.com/oppia/oppia.git","ssh_url":"git@github.com:oppia/oppia.git","clone_url":"https://github.com/oppia/oppia.git","svn_url":"https://github.com/oppia/oppia","homepage":"https://www.oppia.org","size":108038,"stargazers_count":769,"watchers_count":769,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":750,"mirror_url":null,"archived":false,"open_issues_count":371,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":750,"open_issues":371,"watchers":769,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/5659"},"html":{"href":"https://github.com/oppia/oppia/pull/5659"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/5659"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/5659/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/5659/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/5659/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/5ea07bc3b7eda234c564136cec58731158b77c13"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"seanlip"}}