{"action":"created","comment":{"url":"https://api.github.com/repos/calblueprint/edge-yl/pulls/comments/42213841","id":42213841,"diff_hunk":"@@ -0,0 +1,91 @@\n+class StudentsFilter extends Component {\n+\n+  static get propTypes() {\n+    return {\n+      isExpanded: React.PropTypes.bool.isRequired,\n+      filterList: React.PropTypes.arrayOf(React.PropTypes.string).isRequired,\n+      selected: React.PropTypes.string,\n+    };\n+  }\n+\n+  static get defaultProps() {\n+    return {\n+      isExpanded: false,\n+      filterList: [],\n+      selected: 'None',\n+    };\n+  }\n+\n+  handleExpand() {\n+    this.setState({ isExpanded: !this.state.isExpanded })\n+  }\n+\n+  handleSelect(item) {\n+    function select() {\n+      this.setState({ selected: item });\n+    }\n+    return select.bind(this)\n+  }\n+\n+  get styles() {\n+    return {\n+      container: {\n+        display: 'flex',\n+        flex: '1',\n+        flexDirection: 'column',\n+        justifyContent: 'center',\n+        height: '22px',\n+        border: '1px solid',\n+        borderColor: '#e5e6e9 #dfe0e4 #d0d1d5',\n+        overflow: 'hidden',\n+      },\n+      expanded: {\n+        height: '100px',\n+        overflow: 'scroll',\n+      },\n+    };\n+  }\n+\n+  get clickableStyles() {\n+    return {\n+      default: {\n+        height: '22px',\n+      },\n+    };\n+  }\n+\n+  renderListItem(item) {\n+    return (\n+      <Clickable\n+        func={this.handleSelect(item)}\n+        styles={this.clickableStyles}>\n+        <div>{item}</div>\n+      </Clickable>\n+      );\n+    }","path":"app/assets/javascripts/components/students_filter.es6.jsx","position":65,"original_position":65,"commit_id":"b8a373b0923e42b80d31172bacb5e94efbbe345c","original_commit_id":"b8a373b0923e42b80d31172bacb5e94efbbe345c","user":{"login":"warrenshen","id":8787796,"avatar_url":"https://avatars.githubusercontent.com/u/8787796?v=3","gravatar_id":"","url":"https://api.github.com/users/warrenshen","html_url":"https://github.com/warrenshen","followers_url":"https://api.github.com/users/warrenshen/followers","following_url":"https://api.github.com/users/warrenshen/following{/other_user}","gists_url":"https://api.github.com/users/warrenshen/gists{/gist_id}","starred_url":"https://api.github.com/users/warrenshen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warrenshen/subscriptions","organizations_url":"https://api.github.com/users/warrenshen/orgs","repos_url":"https://api.github.com/users/warrenshen/repos","events_url":"https://api.github.com/users/warrenshen/events{/privacy}","received_events_url":"https://api.github.com/users/warrenshen/received_events","type":"User","site_admin":false},"body":"Indentation is off for lines 64 and 65.","created_at":"2015-10-16T07:00:43Z","updated_at":"2015-10-16T07:00:43Z","html_url":"https://github.com/calblueprint/edge-yl/pull/93#discussion_r42213841","pull_request_url":"https://api.github.com/repos/calblueprint/edge-yl/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/calblueprint/edge-yl/pulls/comments/42213841"},"html":{"href":"https://github.com/calblueprint/edge-yl/pull/93#discussion_r42213841"},"pull_request":{"href":"https://api.github.com/repos/calblueprint/edge-yl/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/calblueprint/edge-yl/pulls/93","id":47876674,"html_url":"https://github.com/calblueprint/edge-yl/pull/93","diff_url":"https://github.com/calblueprint/edge-yl/pull/93.diff","patch_url":"https://github.com/calblueprint/edge-yl/pull/93.patch","issue_url":"https://api.github.com/repos/calblueprint/edge-yl/issues/93","number":93,"state":"open","locked":false,"title":"Create StudentFilter Component","user":{"login":"maxwolffe","id":3267539,"avatar_url":"https://avatars.githubusercontent.com/u/3267539?v=3","gravatar_id":"","url":"https://api.github.com/users/maxwolffe","html_url":"https://github.com/maxwolffe","followers_url":"https://api.github.com/users/maxwolffe/followers","following_url":"https://api.github.com/users/maxwolffe/following{/other_user}","gists_url":"https://api.github.com/users/maxwolffe/gists{/gist_id}","starred_url":"https://api.github.com/users/maxwolffe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxwolffe/subscriptions","organizations_url":"https://api.github.com/users/maxwolffe/orgs","repos_url":"https://api.github.com/users/maxwolffe/repos","events_url":"https://api.github.com/users/maxwolffe/events{/privacy}","received_events_url":"https://api.github.com/users/maxwolffe/received_events","type":"User","site_admin":false},"body":"Fix #55 \r\n\r\nTests: Works locally, doesn't obviously break anything. ","created_at":"2015-10-16T06:57:15Z","updated_at":"2015-10-16T07:00:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bec2abfa90fd6ec7d54cf3b3e3be3fa2ef96f52a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/calblueprint/edge-yl/pulls/93/commits","review_comments_url":"https://api.github.com/repos/calblueprint/edge-yl/pulls/93/comments","review_comment_url":"https://api.github.com/repos/calblueprint/edge-yl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/calblueprint/edge-yl/issues/93/comments","statuses_url":"https://api.github.com/repos/calblueprint/edge-yl/statuses/b8a373b0923e42b80d31172bacb5e94efbbe345c","head":{"label":"calblueprint:max/filter-component","ref":"max/filter-component","sha":"b8a373b0923e42b80d31172bacb5e94efbbe345c","user":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"repo":{"id":43229640,"name":"edge-yl","full_name":"calblueprint/edge-yl","owner":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calblueprint/edge-yl","description":"","fork":false,"url":"https://api.github.com/repos/calblueprint/edge-yl","forks_url":"https://api.github.com/repos/calblueprint/edge-yl/forks","keys_url":"https://api.github.com/repos/calblueprint/edge-yl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calblueprint/edge-yl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calblueprint/edge-yl/teams","hooks_url":"https://api.github.com/repos/calblueprint/edge-yl/hooks","issue_events_url":"https://api.github.com/repos/calblueprint/edge-yl/issues/events{/number}","events_url":"https://api.github.com/repos/calblueprint/edge-yl/events","assignees_url":"https://api.github.com/repos/calblueprint/edge-yl/assignees{/user}","branches_url":"https://api.github.com/repos/calblueprint/edge-yl/branches{/branch}","tags_url":"https://api.github.com/repos/calblueprint/edge-yl/tags","blobs_url":"https://api.github.com/repos/calblueprint/edge-yl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calblueprint/edge-yl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calblueprint/edge-yl/git/refs{/sha}","trees_url":"https://api.github.com/repos/calblueprint/edge-yl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calblueprint/edge-yl/statuses/{sha}","languages_url":"https://api.github.com/repos/calblueprint/edge-yl/languages","stargazers_url":"https://api.github.com/repos/calblueprint/edge-yl/stargazers","contributors_url":"https://api.github.com/repos/calblueprint/edge-yl/contributors","subscribers_url":"https://api.github.com/repos/calblueprint/edge-yl/subscribers","subscription_url":"https://api.github.com/repos/calblueprint/edge-yl/subscription","commits_url":"https://api.github.com/repos/calblueprint/edge-yl/commits{/sha}","git_commits_url":"https://api.github.com/repos/calblueprint/edge-yl/git/commits{/sha}","comments_url":"https://api.github.com/repos/calblueprint/edge-yl/comments{/number}","issue_comment_url":"https://api.github.com/repos/calblueprint/edge-yl/issues/comments{/number}","contents_url":"https://api.github.com/repos/calblueprint/edge-yl/contents/{+path}","compare_url":"https://api.github.com/repos/calblueprint/edge-yl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calblueprint/edge-yl/merges","archive_url":"https://api.github.com/repos/calblueprint/edge-yl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calblueprint/edge-yl/downloads","issues_url":"https://api.github.com/repos/calblueprint/edge-yl/issues{/number}","pulls_url":"https://api.github.com/repos/calblueprint/edge-yl/pulls{/number}","milestones_url":"https://api.github.com/repos/calblueprint/edge-yl/milestones{/number}","notifications_url":"https://api.github.com/repos/calblueprint/edge-yl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calblueprint/edge-yl/labels{/name}","releases_url":"https://api.github.com/repos/calblueprint/edge-yl/releases{/id}","created_at":"2015-09-27T01:23:43Z","updated_at":"2015-10-12T21:11:56Z","pushed_at":"2015-10-16T06:57:15Z","git_url":"git://github.com/calblueprint/edge-yl.git","ssh_url":"git@github.com:calblueprint/edge-yl.git","clone_url":"https://github.com/calblueprint/edge-yl.git","svn_url":"https://github.com/calblueprint/edge-yl","homepage":null,"size":872,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":5,"default_branch":"master"}},"base":{"label":"calblueprint:master","ref":"master","sha":"7601572ab0219da9ccbe1962f41137b7194f9280","user":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"repo":{"id":43229640,"name":"edge-yl","full_name":"calblueprint/edge-yl","owner":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calblueprint/edge-yl","description":"","fork":false,"url":"https://api.github.com/repos/calblueprint/edge-yl","forks_url":"https://api.github.com/repos/calblueprint/edge-yl/forks","keys_url":"https://api.github.com/repos/calblueprint/edge-yl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calblueprint/edge-yl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calblueprint/edge-yl/teams","hooks_url":"https://api.github.com/repos/calblueprint/edge-yl/hooks","issue_events_url":"https://api.github.com/repos/calblueprint/edge-yl/issues/events{/number}","events_url":"https://api.github.com/repos/calblueprint/edge-yl/events","assignees_url":"https://api.github.com/repos/calblueprint/edge-yl/assignees{/user}","branches_url":"https://api.github.com/repos/calblueprint/edge-yl/branches{/branch}","tags_url":"https://api.github.com/repos/calblueprint/edge-yl/tags","blobs_url":"https://api.github.com/repos/calblueprint/edge-yl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calblueprint/edge-yl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calblueprint/edge-yl/git/refs{/sha}","trees_url":"https://api.github.com/repos/calblueprint/edge-yl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calblueprint/edge-yl/statuses/{sha}","languages_url":"https://api.github.com/repos/calblueprint/edge-yl/languages","stargazers_url":"https://api.github.com/repos/calblueprint/edge-yl/stargazers","contributors_url":"https://api.github.com/repos/calblueprint/edge-yl/contributors","subscribers_url":"https://api.github.com/repos/calblueprint/edge-yl/subscribers","subscription_url":"https://api.github.com/repos/calblueprint/edge-yl/subscription","commits_url":"https://api.github.com/repos/calblueprint/edge-yl/commits{/sha}","git_commits_url":"https://api.github.com/repos/calblueprint/edge-yl/git/commits{/sha}","comments_url":"https://api.github.com/repos/calblueprint/edge-yl/comments{/number}","issue_comment_url":"https://api.github.com/repos/calblueprint/edge-yl/issues/comments{/number}","contents_url":"https://api.github.com/repos/calblueprint/edge-yl/contents/{+path}","compare_url":"https://api.github.com/repos/calblueprint/edge-yl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calblueprint/edge-yl/merges","archive_url":"https://api.github.com/repos/calblueprint/edge-yl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calblueprint/edge-yl/downloads","issues_url":"https://api.github.com/repos/calblueprint/edge-yl/issues{/number}","pulls_url":"https://api.github.com/repos/calblueprint/edge-yl/pulls{/number}","milestones_url":"https://api.github.com/repos/calblueprint/edge-yl/milestones{/number}","notifications_url":"https://api.github.com/repos/calblueprint/edge-yl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calblueprint/edge-yl/labels{/name}","releases_url":"https://api.github.com/repos/calblueprint/edge-yl/releases{/id}","created_at":"2015-09-27T01:23:43Z","updated_at":"2015-10-12T21:11:56Z","pushed_at":"2015-10-16T06:57:15Z","git_url":"git://github.com/calblueprint/edge-yl.git","ssh_url":"git@github.com:calblueprint/edge-yl.git","clone_url":"https://github.com/calblueprint/edge-yl.git","svn_url":"https://github.com/calblueprint/edge-yl","homepage":null,"size":872,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/calblueprint/edge-yl/pulls/93"},"html":{"href":"https://github.com/calblueprint/edge-yl/pull/93"},"issue":{"href":"https://api.github.com/repos/calblueprint/edge-yl/issues/93"},"comments":{"href":"https://api.github.com/repos/calblueprint/edge-yl/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/calblueprint/edge-yl/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/calblueprint/edge-yl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/calblueprint/edge-yl/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/calblueprint/edge-yl/statuses/b8a373b0923e42b80d31172bacb5e94efbbe345c"}}}}