{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/idea-town/pulls/comments/40461402","id":40461402,"diff_hunk":"@@ -30,20 +29,15 @@ export default BaseView.extend({\n   //       to pick up csrftoken cookie changes.\n   logout(evt) {\n     evt.preventDefault();\n-    xhr({\n+    fetch(app.getDocHeadLink('x-logout', 'href'), {","path":"idea_town/frontend/static-src/app/views/header-view.js","position":20,"original_position":20,"commit_id":"b7e044d89faa87d3dc61d24cc3553fa9209f78a6","original_commit_id":"b7e044d89faa87d3dc61d24cc3553fa9209f78a6","user":{"login":"6a68","id":96396,"avatar_url":"https://avatars.githubusercontent.com/u/96396?v=3","gravatar_id":"","url":"https://api.github.com/users/6a68","html_url":"https://github.com/6a68","followers_url":"https://api.github.com/users/6a68/followers","following_url":"https://api.github.com/users/6a68/following{/other_user}","gists_url":"https://api.github.com/users/6a68/gists{/gist_id}","starred_url":"https://api.github.com/users/6a68/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/6a68/subscriptions","organizations_url":"https://api.github.com/users/6a68/orgs","repos_url":"https://api.github.com/users/6a68/repos","events_url":"https://api.github.com/users/6a68/events{/privacy}","received_events_url":"https://api.github.com/users/6a68/received_events","type":"User","site_admin":false},"body":"Piggybacking on my last comment there, we've also got the addon URL specified via `app.me.addon.url`.\r\n\r\nWould be nice to unify all that at some point.","created_at":"2015-09-25T18:32:39Z","updated_at":"2015-09-25T18:32:39Z","html_url":"https://github.com/mozilla/idea-town/pull/84#discussion_r40461402","pull_request_url":"https://api.github.com/repos/mozilla/idea-town/pulls/84","_links":{"self":{"href":"https://api.github.com/repos/mozilla/idea-town/pulls/comments/40461402"},"html":{"href":"https://github.com/mozilla/idea-town/pull/84#discussion_r40461402"},"pull_request":{"href":"https://api.github.com/repos/mozilla/idea-town/pulls/84"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/idea-town/pulls/84","id":45926510,"html_url":"https://github.com/mozilla/idea-town/pull/84","diff_url":"https://github.com/mozilla/idea-town/pull/84.diff","patch_url":"https://github.com/mozilla/idea-town/pull/84.patch","issue_url":"https://api.github.com/repos/mozilla/idea-town/issues/84","number":84,"state":"open","locked":false,"title":"Issue #63: Add /api/users/self endpoint","user":{"login":"lmorchard","id":21687,"avatar_url":"https://avatars.githubusercontent.com/u/21687?v=3","gravatar_id":"","url":"https://api.github.com/users/lmorchard","html_url":"https://github.com/lmorchard","followers_url":"https://api.github.com/users/lmorchard/followers","following_url":"https://api.github.com/users/lmorchard/following{/other_user}","gists_url":"https://api.github.com/users/lmorchard/gists{/gist_id}","starred_url":"https://api.github.com/users/lmorchard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmorchard/subscriptions","organizations_url":"https://api.github.com/users/lmorchard/orgs","repos_url":"https://api.github.com/users/lmorchard/repos","events_url":"https://api.github.com/users/lmorchard/events{/privacy}","received_events_url":"https://api.github.com/users/lmorchard/received_events","type":"User","site_admin":false},"body":"* Add /api/me API endpoint to expose data about the currently\r\n  logged in user. (i.e. user ID, installed experiments)\r\n\r\n* Add API, user, and addon props to overall Me model\r\n\r\n* Move sadface JS data and some hardcoded URLs into index.html markup\r\n\r\n* Frontend client tweaks to use the API\r\n\r\n* Add .editorconfig to idea_town/frontend/static-src so my editor can do\r\n  different indenting in Python & JS\r\n\r\n* Tweak tox.ini to use python3.4\r\n\r\n* Server-side tests\r\n","created_at":"2015-09-24T17:39:03Z","updated_at":"2015-09-25T18:32:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c88540b597f194b07f72593473ae56540269780b","assignee":{"login":"lmorchard","id":21687,"avatar_url":"https://avatars.githubusercontent.com/u/21687?v=3","gravatar_id":"","url":"https://api.github.com/users/lmorchard","html_url":"https://github.com/lmorchard","followers_url":"https://api.github.com/users/lmorchard/followers","following_url":"https://api.github.com/users/lmorchard/following{/other_user}","gists_url":"https://api.github.com/users/lmorchard/gists{/gist_id}","starred_url":"https://api.github.com/users/lmorchard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmorchard/subscriptions","organizations_url":"https://api.github.com/users/lmorchard/orgs","repos_url":"https://api.github.com/users/lmorchard/repos","events_url":"https://api.github.com/users/lmorchard/events{/privacy}","received_events_url":"https://api.github.com/users/lmorchard/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/idea-town/pulls/84/commits","review_comments_url":"https://api.github.com/repos/mozilla/idea-town/pulls/84/comments","review_comment_url":"https://api.github.com/repos/mozilla/idea-town/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/idea-town/issues/84/comments","statuses_url":"https://api.github.com/repos/mozilla/idea-town/statuses/b7e044d89faa87d3dc61d24cc3553fa9209f78a6","head":{"label":"lmorchard:63-user-api-endpoint","ref":"63-user-api-endpoint","sha":"b7e044d89faa87d3dc61d24cc3553fa9209f78a6","user":{"login":"lmorchard","id":21687,"avatar_url":"https://avatars.githubusercontent.com/u/21687?v=3","gravatar_id":"","url":"https://api.github.com/users/lmorchard","html_url":"https://github.com/lmorchard","followers_url":"https://api.github.com/users/lmorchard/followers","following_url":"https://api.github.com/users/lmorchard/following{/other_user}","gists_url":"https://api.github.com/users/lmorchard/gists{/gist_id}","starred_url":"https://api.github.com/users/lmorchard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmorchard/subscriptions","organizations_url":"https://api.github.com/users/lmorchard/orgs","repos_url":"https://api.github.com/users/lmorchard/repos","events_url":"https://api.github.com/users/lmorchard/events{/privacy}","received_events_url":"https://api.github.com/users/lmorchard/received_events","type":"User","site_admin":false},"repo":{"id":40666253,"name":"idea-town","full_name":"lmorchard/idea-town","owner":{"login":"lmorchard","id":21687,"avatar_url":"https://avatars.githubusercontent.com/u/21687?v=3","gravatar_id":"","url":"https://api.github.com/users/lmorchard","html_url":"https://github.com/lmorchard","followers_url":"https://api.github.com/users/lmorchard/followers","following_url":"https://api.github.com/users/lmorchard/following{/other_user}","gists_url":"https://api.github.com/users/lmorchard/gists{/gist_id}","starred_url":"https://api.github.com/users/lmorchard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmorchard/subscriptions","organizations_url":"https://api.github.com/users/lmorchard/orgs","repos_url":"https://api.github.com/users/lmorchard/repos","events_url":"https://api.github.com/users/lmorchard/events{/privacy}","received_events_url":"https://api.github.com/users/lmorchard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lmorchard/idea-town","description":"yay all the ideas","fork":true,"url":"https://api.github.com/repos/lmorchard/idea-town","forks_url":"https://api.github.com/repos/lmorchard/idea-town/forks","keys_url":"https://api.github.com/repos/lmorchard/idea-town/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lmorchard/idea-town/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lmorchard/idea-town/teams","hooks_url":"https://api.github.com/repos/lmorchard/idea-town/hooks","issue_events_url":"https://api.github.com/repos/lmorchard/idea-town/issues/events{/number}","events_url":"https://api.github.com/repos/lmorchard/idea-town/events","assignees_url":"https://api.github.com/repos/lmorchard/idea-town/assignees{/user}","branches_url":"https://api.github.com/repos/lmorchard/idea-town/branches{/branch}","tags_url":"https://api.github.com/repos/lmorchard/idea-town/tags","blobs_url":"https://api.github.com/repos/lmorchard/idea-town/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lmorchard/idea-town/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lmorchard/idea-town/git/refs{/sha}","trees_url":"https://api.github.com/repos/lmorchard/idea-town/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lmorchard/idea-town/statuses/{sha}","languages_url":"https://api.github.com/repos/lmorchard/idea-town/languages","stargazers_url":"https://api.github.com/repos/lmorchard/idea-town/stargazers","contributors_url":"https://api.github.com/repos/lmorchard/idea-town/contributors","subscribers_url":"https://api.github.com/repos/lmorchard/idea-town/subscribers","subscription_url":"https://api.github.com/repos/lmorchard/idea-town/subscription","commits_url":"https://api.github.com/repos/lmorchard/idea-town/commits{/sha}","git_commits_url":"https://api.github.com/repos/lmorchard/idea-town/git/commits{/sha}","comments_url":"https://api.github.com/repos/lmorchard/idea-town/comments{/number}","issue_comment_url":"https://api.github.com/repos/lmorchard/idea-town/issues/comments{/number}","contents_url":"https://api.github.com/repos/lmorchard/idea-town/contents/{+path}","compare_url":"https://api.github.com/repos/lmorchard/idea-town/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lmorchard/idea-town/merges","archive_url":"https://api.github.com/repos/lmorchard/idea-town/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lmorchard/idea-town/downloads","issues_url":"https://api.github.com/repos/lmorchard/idea-town/issues{/number}","pulls_url":"https://api.github.com/repos/lmorchard/idea-town/pulls{/number}","milestones_url":"https://api.github.com/repos/lmorchard/idea-town/milestones{/number}","notifications_url":"https://api.github.com/repos/lmorchard/idea-town/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lmorchard/idea-town/labels{/name}","releases_url":"https://api.github.com/repos/lmorchard/idea-town/releases{/id}","created_at":"2015-08-13T15:26:02Z","updated_at":"2015-09-16T17:57:36Z","pushed_at":"2015-09-25T18:30:30Z","git_url":"git://github.com/lmorchard/idea-town.git","ssh_url":"git@github.com:lmorchard/idea-town.git","clone_url":"https://github.com/lmorchard/idea-town.git","svn_url":"https://github.com/lmorchard/idea-town","homepage":null,"size":270,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"be61a0999386f9546b929f72a2ce2faee95d7afe","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":40625180,"name":"idea-town","full_name":"mozilla/idea-town","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/idea-town","description":"Idea Town is a platform for performing controlled tests of new product concepts in Firefox","fork":false,"url":"https://api.github.com/repos/mozilla/idea-town","forks_url":"https://api.github.com/repos/mozilla/idea-town/forks","keys_url":"https://api.github.com/repos/mozilla/idea-town/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/idea-town/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/idea-town/teams","hooks_url":"https://api.github.com/repos/mozilla/idea-town/hooks","issue_events_url":"https://api.github.com/repos/mozilla/idea-town/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/idea-town/events","assignees_url":"https://api.github.com/repos/mozilla/idea-town/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/idea-town/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/idea-town/tags","blobs_url":"https://api.github.com/repos/mozilla/idea-town/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/idea-town/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/idea-town/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/idea-town/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/idea-town/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/idea-town/languages","stargazers_url":"https://api.github.com/repos/mozilla/idea-town/stargazers","contributors_url":"https://api.github.com/repos/mozilla/idea-town/contributors","subscribers_url":"https://api.github.com/repos/mozilla/idea-town/subscribers","subscription_url":"https://api.github.com/repos/mozilla/idea-town/subscription","commits_url":"https://api.github.com/repos/mozilla/idea-town/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/idea-town/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/idea-town/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/idea-town/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/idea-town/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/idea-town/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/idea-town/merges","archive_url":"https://api.github.com/repos/mozilla/idea-town/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/idea-town/downloads","issues_url":"https://api.github.com/repos/mozilla/idea-town/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/idea-town/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/idea-town/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/idea-town/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/idea-town/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/idea-town/releases{/id}","created_at":"2015-08-12T21:27:27Z","updated_at":"2015-09-24T22:02:35Z","pushed_at":"2015-09-25T17:25:42Z","git_url":"git://github.com/mozilla/idea-town.git","ssh_url":"git@github.com:mozilla/idea-town.git","clone_url":"https://github.com/mozilla/idea-town.git","svn_url":"https://github.com/mozilla/idea-town","homepage":"https://wiki.mozilla.org/Idea_Town","size":5235,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":23,"forks":6,"open_issues":23,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/idea-town/pulls/84"},"html":{"href":"https://github.com/mozilla/idea-town/pull/84"},"issue":{"href":"https://api.github.com/repos/mozilla/idea-town/issues/84"},"comments":{"href":"https://api.github.com/repos/mozilla/idea-town/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/idea-town/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/idea-town/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/idea-town/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/idea-town/statuses/b7e044d89faa87d3dc61d24cc3553fa9209f78a6"}}}}