GitHub PullRequestReviewCommentEvent at 2014-11-27 17:06:10
Repository: spartacus
Actor: andymckay
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/spartacus/pulls/comments/21005419","id":21005419,"diff_hunk":"@@ -0,0 +1,49 @@\n+define([\n+  'log',\n+  'underscore',\n+  'utils',\n+  'views/page'\n+], function(log, _, utils, PageView){\n+\n+  'use strict';\n+\n+  /*\n+   * This view is an interstitial view shown to give the user the opportunity to logout.\n+   * prior to continuing with the flow.\n+   */\n+  var logger = log('views', 'logged-in-state');\n+  var LoggedInStateView = PageView.extend({\n+\n+    events: {\n+      'click .logout': 'handleLogout',\n+      'click .cta': 'handleContinue'\n+    },\n+\n+    handleLogout: function(e) {\n+      logger.log(\"Logging out at user's request\");\n+      e.preventDefault();\n+      app.session.logout();\n+    },\n+\n+    handleContinue: function(e) {\n+      e.preventDefault();\n+      logger.log(\"Continuing with implied login\");","path":"public/js/views/logged-in-state.js","position":30,"original_position":30,"commit_id":"7220688db924ce23e9f63c5dfe31f62e4a27498c","original_commit_id":"7220688db924ce23e9f63c5dfe31f62e4a27498c","user":{"login":"andymckay","id":74699,"avatar_url":"https://avatars.githubusercontent.com/u/74699?v=3","gravatar_id":"","url":"https://api.github.com/users/andymckay","html_url":"https://github.com/andymckay","followers_url":"https://api.github.com/users/andymckay/followers","following_url":"https://api.github.com/users/andymckay/following{/other_user}","gists_url":"https://api.github.com/users/andymckay/gists{/gist_id}","starred_url":"https://api.github.com/users/andymckay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andymckay/subscriptions","organizations_url":"https://api.github.com/users/andymckay/orgs","repos_url":"https://api.github.com/users/andymckay/repos","events_url":"https://api.github.com/users/andymckay/events{/privacy}","received_events_url":"https://api.github.com/users/andymckay/received_events","type":"User","site_admin":false},"body":"\" around string","created_at":"2014-11-27T17:06:10Z","updated_at":"2014-11-27T17:06:10Z","html_url":"https://github.com/mozilla/spartacus/pull/167#discussion_r21005419","pull_request_url":"https://api.github.com/repos/mozilla/spartacus/pulls/167","_links":{"self":{"href":"https://api.github.com/repos/mozilla/spartacus/pulls/comments/21005419"},"html":{"href":"https://github.com/mozilla/spartacus/pull/167#discussion_r21005419"},"pull_request":{"href":"https://api.github.com/repos/mozilla/spartacus/pulls/167"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/spartacus/pulls/167","id":25161108,"html_url":"https://github.com/mozilla/spartacus/pull/167","diff_url":"https://github.com/mozilla/spartacus/pull/167.diff","patch_url":"https://github.com/mozilla/spartacus/pull/167.patch","issue_url":"https://api.github.com/repos/mozilla/spartacus/issues/167","number":167,"state":"open","locked":false,"title":"Add logic for logged-in-state (bug 1103072)","user":{"login":"muffinresearch","id":1514,"avatar_url":"https://avatars.githubusercontent.com/u/1514?v=3","gravatar_id":"","url":"https://api.github.com/users/muffinresearch","html_url":"https://github.com/muffinresearch","followers_url":"https://api.github.com/users/muffinresearch/followers","following_url":"https://api.github.com/users/muffinresearch/following{/other_user}","gists_url":"https://api.github.com/users/muffinresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/muffinresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muffinresearch/subscriptions","organizations_url":"https://api.github.com/users/muffinresearch/orgs","repos_url":"https://api.github.com/users/muffinresearch/repos","events_url":"https://api.github.com/users/muffinresearch/events{/privacy}","received_events_url":"https://api.github.com/users/muffinresearch/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-11-27T16:29:23Z","updated_at":"2014-11-27T17:06:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35c2325975d86ef9ca4bc3c62b35aab847e44c34","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/spartacus/pulls/167/commits","review_comments_url":"https://api.github.com/repos/mozilla/spartacus/pulls/167/comments","review_comment_url":"https://api.github.com/repos/mozilla/spartacus/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla/spartacus/issues/167/comments","statuses_url":"https://api.github.com/repos/mozilla/spartacus/statuses/7220688db924ce23e9f63c5dfe31f62e4a27498c","head":{"label":"muffinresearch:use-mkt-user-to-show-user-state","ref":"use-mkt-user-to-show-user-state","sha":"7220688db924ce23e9f63c5dfe31f62e4a27498c","user":{"login":"muffinresearch","id":1514,"avatar_url":"https://avatars.githubusercontent.com/u/1514?v=3","gravatar_id":"","url":"https://api.github.com/users/muffinresearch","html_url":"https://github.com/muffinresearch","followers_url":"https://api.github.com/users/muffinresearch/followers","following_url":"https://api.github.com/users/muffinresearch/following{/other_user}","gists_url":"https://api.github.com/users/muffinresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/muffinresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muffinresearch/subscriptions","organizations_url":"https://api.github.com/users/muffinresearch/orgs","repos_url":"https://api.github.com/users/muffinresearch/repos","events_url":"https://api.github.com/users/muffinresearch/events{/privacy}","received_events_url":"https://api.github.com/users/muffinresearch/received_events","type":"User","site_admin":false},"repo":{"id":16289322,"name":"spartacus","full_name":"muffinresearch/spartacus","owner":{"login":"muffinresearch","id":1514,"avatar_url":"https://avatars.githubusercontent.com/u/1514?v=3","gravatar_id":"","url":"https://api.github.com/users/muffinresearch","html_url":"https://github.com/muffinresearch","followers_url":"https://api.github.com/users/muffinresearch/followers","following_url":"https://api.github.com/users/muffinresearch/following{/other_user}","gists_url":"https://api.github.com/users/muffinresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/muffinresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muffinresearch/subscriptions","organizations_url":"https://api.github.com/users/muffinresearch/orgs","repos_url":"https://api.github.com/users/muffinresearch/repos","events_url":"https://api.github.com/users/muffinresearch/events{/privacy}","received_events_url":"https://api.github.com/users/muffinresearch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/muffinresearch/spartacus","description":"","fork":true,"url":"https://api.github.com/repos/muffinresearch/spartacus","forks_url":"https://api.github.com/repos/muffinresearch/spartacus/forks","keys_url":"https://api.github.com/repos/muffinresearch/spartacus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/muffinresearch/spartacus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/muffinresearch/spartacus/teams","hooks_url":"https://api.github.com/repos/muffinresearch/spartacus/hooks","issue_events_url":"https://api.github.com/repos/muffinresearch/spartacus/issues/events{/number}","events_url":"https://api.github.com/repos/muffinresearch/spartacus/events","assignees_url":"https://api.github.com/repos/muffinresearch/spartacus/assignees{/user}","branches_url":"https://api.github.com/repos/muffinresearch/spartacus/branches{/branch}","tags_url":"https://api.github.com/repos/muffinresearch/spartacus/tags","blobs_url":"https://api.github.com/repos/muffinresearch/spartacus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/muffinresearch/spartacus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/muffinresearch/spartacus/git/refs{/sha}","trees_url":"https://api.github.com/repos/muffinresearch/spartacus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/muffinresearch/spartacus/statuses/{sha}","languages_url":"https://api.github.com/repos/muffinresearch/spartacus/languages","stargazers_url":"https://api.github.com/repos/muffinresearch/spartacus/stargazers","contributors_url":"https://api.github.com/repos/muffinresearch/spartacus/contributors","subscribers_url":"https://api.github.com/repos/muffinresearch/spartacus/subscribers","subscription_url":"https://api.github.com/repos/muffinresearch/spartacus/subscription","commits_url":"https://api.github.com/repos/muffinresearch/spartacus/commits{/sha}","git_commits_url":"https://api.github.com/repos/muffinresearch/spartacus/git/commits{/sha}","comments_url":"https://api.github.com/repos/muffinresearch/spartacus/comments{/number}","issue_comment_url":"https://api.github.com/repos/muffinresearch/spartacus/issues/comments/{number}","contents_url":"https://api.github.com/repos/muffinresearch/spartacus/contents/{+path}","compare_url":"https://api.github.com/repos/muffinresearch/spartacus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/muffinresearch/spartacus/merges","archive_url":"https://api.github.com/repos/muffinresearch/spartacus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/muffinresearch/spartacus/downloads","issues_url":"https://api.github.com/repos/muffinresearch/spartacus/issues{/number}","pulls_url":"https://api.github.com/repos/muffinresearch/spartacus/pulls{/number}","milestones_url":"https://api.github.com/repos/muffinresearch/spartacus/milestones{/number}","notifications_url":"https://api.github.com/repos/muffinresearch/spartacus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/muffinresearch/spartacus/labels{/name}","releases_url":"https://api.github.com/repos/muffinresearch/spartacus/releases{/id}","created_at":"2014-01-27T19:08:10Z","updated_at":"2014-07-09T14:06:54Z","pushed_at":"2014-11-27T16:32:48Z","git_url":"git://github.com/muffinresearch/spartacus.git","ssh_url":"git@github.com:muffinresearch/spartacus.git","clone_url":"https://github.com/muffinresearch/spartacus.git","svn_url":"https://github.com/muffinresearch/spartacus","homepage":null,"size":6340,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"02964e4a8ee25689b81b35ecc4e184e581866659","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":16289140,"name":"spartacus","full_name":"mozilla/spartacus","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/spartacus","description":"Spartacus is a single page app front-end for Webpay.","fork":false,"url":"https://api.github.com/repos/mozilla/spartacus","forks_url":"https://api.github.com/repos/mozilla/spartacus/forks","keys_url":"https://api.github.com/repos/mozilla/spartacus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/spartacus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/spartacus/teams","hooks_url":"https://api.github.com/repos/mozilla/spartacus/hooks","issue_events_url":"https://api.github.com/repos/mozilla/spartacus/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/spartacus/events","assignees_url":"https://api.github.com/repos/mozilla/spartacus/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/spartacus/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/spartacus/tags","blobs_url":"https://api.github.com/repos/mozilla/spartacus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/spartacus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/spartacus/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/spartacus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/spartacus/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/spartacus/languages","stargazers_url":"https://api.github.com/repos/mozilla/spartacus/stargazers","contributors_url":"https://api.github.com/repos/mozilla/spartacus/contributors","subscribers_url":"https://api.github.com/repos/mozilla/spartacus/subscribers","subscription_url":"https://api.github.com/repos/mozilla/spartacus/subscription","commits_url":"https://api.github.com/repos/mozilla/spartacus/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/spartacus/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/spartacus/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/spartacus/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla/spartacus/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/spartacus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/spartacus/merges","archive_url":"https://api.github.com/repos/mozilla/spartacus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/spartacus/downloads","issues_url":"https://api.github.com/repos/mozilla/spartacus/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/spartacus/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/spartacus/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/spartacus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/spartacus/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/spartacus/releases{/id}","created_at":"2014-01-27T19:02:16Z","updated_at":"2014-11-26T18:29:22Z","pushed_at":"2014-11-26T18:29:22Z","git_url":"git://github.com/mozilla/spartacus.git","ssh_url":"git@github.com:mozilla/spartacus.git","clone_url":"https://github.com/mozilla/spartacus.git","svn_url":"https://github.com/mozilla/spartacus","homepage":"","size":7382,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":2,"forks":18,"open_issues":2,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/spartacus/pulls/167"},"html":{"href":"https://github.com/mozilla/spartacus/pull/167"},"issue":{"href":"https://api.github.com/repos/mozilla/spartacus/issues/167"},"comments":{"href":"https://api.github.com/repos/mozilla/spartacus/issues/167/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/spartacus/pulls/167/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/spartacus/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla/spartacus/pulls/167/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/spartacus/statuses/7220688db924ce23e9f63c5dfe31f62e4a27498c"}}}}