{"action":"created","comment":{"url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/comments/27469870","id":27469870,"diff_hunk":"@@ -0,0 +1,183 @@\n+React = require 'react'\n+DiscussionPreview = require './discussion-preview'\n+talkClient = require '../api/talk'\n+authClient = require '../api/auth'\n+CommentBox = require './comment-box'\n+commentValidations = require './lib/comment-validations'\n+discussionValidations = require './lib/discussion-validations'\n+{getErrors} = require './lib/validations'\n+Router = require 'react-router'\n+ChangeListener = require '../components/change-listener'\n+PromiseRenderer = require '../components/promise-renderer'\n+Paginator = require './lib/paginator'\n+Moderation = require './lib/moderation'\n+\n+module?.exports = React.createClass\n+  displayName: 'TalkBoard'\n+  mixins: [Router.Navigation]\n+\n+  getInitialState: ->\n+    discussions: []\n+    board: {}\n+    discussionsMeta: {}\n+    newDiscussionOpen: false\n+    discussionValidationErrors: []\n+\n+  componentWillMount: ->\n+    @setDiscussions()\n+    @setBoard()\n+\n+  goToPage: (n) ->\n+    @transitionTo(@props.pathname, @props.params, {page: n})\n+    @setDiscussions(n)\n+\n+  discussionsRequest: (page) ->\n+    board_id = +@props.params.board\n+    talkClient.type('discussions').get({board_id, page_size: 5, page})\n+\n+  setDiscussions: (page = 1) ->\n+    @discussionsRequest(page)\n+      .then (discussions) =>\n+        discussionsMeta = discussions[0]?.getMeta()\n+        @setState {discussions, discussionsMeta}\n+      .catch (e) =>\n+        console.log \"failed to get discussion\", e\n+\n+  boardRequest: ->\n+    id = +@props.params.board\n+    talkClient.type('boards').get({id})","path":"app/talk/board.cjsx","position":48,"original_position":48,"commit_id":"2f40b6b37db796b178d1402393a270116b2cfa35","original_commit_id":"2f40b6b37db796b178d1402393a270116b2cfa35","user":{"login":"brian-c","id":464389,"avatar_url":"https://avatars.githubusercontent.com/u/464389?v=3","gravatar_id":"","url":"https://api.github.com/users/brian-c","html_url":"https://github.com/brian-c","followers_url":"https://api.github.com/users/brian-c/followers","following_url":"https://api.github.com/users/brian-c/following{/other_user}","gists_url":"https://api.github.com/users/brian-c/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-c/subscriptions","organizations_url":"https://api.github.com/users/brian-c/orgs","repos_url":"https://api.github.com/users/brian-c/repos","events_url":"https://api.github.com/users/brian-c/events{/privacy}","received_events_url":"https://api.github.com/users/brian-c/received_events","type":"User","site_admin":false},"body":"Resource IDs are always strings. `Type::get`, given a string, will resolve to that resource.","created_at":"2015-03-31T11:06:40Z","updated_at":"2015-03-31T11:06:40Z","html_url":"https://github.com/zooniverse/Panoptes-Front-End/pull/169#discussion_r27469870","pull_request_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/169","_links":{"self":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/comments/27469870"},"html":{"href":"https://github.com/zooniverse/Panoptes-Front-End/pull/169#discussion_r27469870"},"pull_request":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/169"}}},"pull_request":{"url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/169","id":32241829,"html_url":"https://github.com/zooniverse/Panoptes-Front-End/pull/169","diff_url":"https://github.com/zooniverse/Panoptes-Front-End/pull/169.diff","patch_url":"https://github.com/zooniverse/Panoptes-Front-End/pull/169.patch","issue_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/169","number":169,"state":"open","locked":false,"title":"Add initial talk functionality","user":{"login":"aweiksnar","id":4039480,"avatar_url":"https://avatars.githubusercontent.com/u/4039480?v=3","gravatar_id":"","url":"https://api.github.com/users/aweiksnar","html_url":"https://github.com/aweiksnar","followers_url":"https://api.github.com/users/aweiksnar/followers","following_url":"https://api.github.com/users/aweiksnar/following{/other_user}","gists_url":"https://api.github.com/users/aweiksnar/gists{/gist_id}","starred_url":"https://api.github.com/users/aweiksnar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aweiksnar/subscriptions","organizations_url":"https://api.github.com/users/aweiksnar/orgs","repos_url":"https://api.github.com/users/aweiksnar/repos","events_url":"https://api.github.com/users/aweiksnar/events{/privacy}","received_events_url":"https://api.github.com/users/aweiksnar/received_events","type":"User","site_admin":false},"body":"Here's a quick feature synopsis of where I'm at with talk right now:\r\n\r\n**Working:** Comment/Board/Discussion create/edit/destroy, Markdown rendering, Upvotes, Project talk - main talk distinction, tags/user mentions, Talk auth , Pagination, Comment live preview, Comment/discussion validations\r\n\r\n**Incomplete/TODO:** Featured Image, Avatar rendering, User roles/moderation, Copy, Feedback messaging after actions, Splitting up css\r\n\r\n**Placeholders for the future:** Reply, Report, Comment Link, Search, Individual Subject links\r\n\r\nHappy to re-organize/change things up if you notice anything looks odd or breaks convention","created_at":"2015-03-30T16:13:24Z","updated_at":"2015-03-31T11:06:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c1d223bc37fffad4a4e9517d900f16ad6baaa21","assignee":{"login":"brian-c","id":464389,"avatar_url":"https://avatars.githubusercontent.com/u/464389?v=3","gravatar_id":"","url":"https://api.github.com/users/brian-c","html_url":"https://github.com/brian-c","followers_url":"https://api.github.com/users/brian-c/followers","following_url":"https://api.github.com/users/brian-c/following{/other_user}","gists_url":"https://api.github.com/users/brian-c/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-c/subscriptions","organizations_url":"https://api.github.com/users/brian-c/orgs","repos_url":"https://api.github.com/users/brian-c/repos","events_url":"https://api.github.com/users/brian-c/events{/privacy}","received_events_url":"https://api.github.com/users/brian-c/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/169/commits","review_comments_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/169/comments","review_comment_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/169/comments","statuses_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/statuses/2f40b6b37db796b178d1402393a270116b2cfa35","head":{"label":"zooniverse:initial-talk","ref":"initial-talk","sha":"2f40b6b37db796b178d1402393a270116b2cfa35","user":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"repo":{"id":19498290,"name":"Panoptes-Front-End","full_name":"zooniverse/Panoptes-Front-End","owner":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zooniverse/Panoptes-Front-End","description":"Frontend for zooniverse/Panoptes","fork":false,"url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End","forks_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/forks","keys_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/teams","hooks_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/hooks","issue_events_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/events{/number}","events_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/events","assignees_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/assignees{/user}","branches_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/branches{/branch}","tags_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/tags","blobs_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/refs{/sha}","trees_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/statuses/{sha}","languages_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/languages","stargazers_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/stargazers","contributors_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/contributors","subscribers_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/subscribers","subscription_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/subscription","commits_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/commits{/sha}","git_commits_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/commits{/sha}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/comments{/number}","issue_comment_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/comments{/number}","contents_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/contents/{+path}","compare_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/merges","archive_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/downloads","issues_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues{/number}","pulls_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls{/number}","milestones_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/milestones{/number}","notifications_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/labels{/name}","releases_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/releases{/id}","created_at":"2014-05-06T14:53:43Z","updated_at":"2015-03-26T01:57:30Z","pushed_at":"2015-03-31T10:14:04Z","git_url":"git://github.com/zooniverse/Panoptes-Front-End.git","ssh_url":"git@github.com:zooniverse/Panoptes-Front-End.git","clone_url":"https://github.com/zooniverse/Panoptes-Front-End.git","svn_url":"https://github.com/zooniverse/Panoptes-Front-End","homepage":"","size":3317,"stargazers_count":7,"watchers_count":7,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":44,"forks":5,"open_issues":44,"watchers":7,"default_branch":"master"}},"base":{"label":"zooniverse:master","ref":"master","sha":"6e3c00d57bb526002d6bd04c08721edb02557a03","user":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"repo":{"id":19498290,"name":"Panoptes-Front-End","full_name":"zooniverse/Panoptes-Front-End","owner":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zooniverse/Panoptes-Front-End","description":"Frontend for zooniverse/Panoptes","fork":false,"url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End","forks_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/forks","keys_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/teams","hooks_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/hooks","issue_events_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/events{/number}","events_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/events","assignees_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/assignees{/user}","branches_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/branches{/branch}","tags_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/tags","blobs_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/refs{/sha}","trees_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/statuses/{sha}","languages_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/languages","stargazers_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/stargazers","contributors_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/contributors","subscribers_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/subscribers","subscription_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/subscription","commits_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/commits{/sha}","git_commits_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/commits{/sha}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/comments{/number}","issue_comment_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/comments{/number}","contents_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/contents/{+path}","compare_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/merges","archive_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/downloads","issues_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues{/number}","pulls_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls{/number}","milestones_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/milestones{/number}","notifications_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/labels{/name}","releases_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/releases{/id}","created_at":"2014-05-06T14:53:43Z","updated_at":"2015-03-26T01:57:30Z","pushed_at":"2015-03-31T10:14:04Z","git_url":"git://github.com/zooniverse/Panoptes-Front-End.git","ssh_url":"git@github.com:zooniverse/Panoptes-Front-End.git","clone_url":"https://github.com/zooniverse/Panoptes-Front-End.git","svn_url":"https://github.com/zooniverse/Panoptes-Front-End","homepage":"","size":3317,"stargazers_count":7,"watchers_count":7,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":44,"forks":5,"open_issues":44,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/169"},"html":{"href":"https://github.com/zooniverse/Panoptes-Front-End/pull/169"},"issue":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/169"},"comments":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/169/comments"},"review_comments":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/169/comments"},"review_comment":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/169/commits"},"statuses":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/statuses/2f40b6b37db796b178d1402393a270116b2cfa35"}}}}