{"action":"created","comment":{"url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/pulls/comments/191941314","pull_request_review_id":124615261,"id":191941314,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MTk0MTMxNA==","diff_hunk":"@@ -37,6 +65,24 @@ const ArticleFinderRow = createReactClass({\n     else if (fetchStates[this.props.article.fetchState] >= fetchStates.PAGEASSESSMENT_RECEIVED) {\n       grade = (<div>Not rated</div>);\n     }\n+    let button;\n+    if (this.props.courseSlug) {\n+      if (this.props.isAdded) {\n+        button = (\n+          <td>\n+            <button className=\"button small disabled\">Already added to available articles</button>","path":"app/assets/javascripts/components/article_finder/article_finder_row.jsx","position":48,"original_position":48,"commit_id":"36b1a0aa9f280dd87ab883275aac3b8e59c7a2a9","original_commit_id":"36b1a0aa9f280dd87ab883275aac3b8e59c7a2a9","user":{"login":"ragesoss","id":848483,"node_id":"MDQ6VXNlcjg0ODQ4Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/848483?v=4","gravatar_id":"","url":"https://api.github.com/users/ragesoss","html_url":"https://github.com/ragesoss","followers_url":"https://api.github.com/users/ragesoss/followers","following_url":"https://api.github.com/users/ragesoss/following{/other_user}","gists_url":"https://api.github.com/users/ragesoss/gists{/gist_id}","starred_url":"https://api.github.com/users/ragesoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ragesoss/subscriptions","organizations_url":"https://api.github.com/users/ragesoss/orgs","repos_url":"https://api.github.com/users/ragesoss/repos","events_url":"https://api.github.com/users/ragesoss/events{/privacy}","received_events_url":"https://api.github.com/users/ragesoss/received_events","type":"User","site_admin":false},"body":"Use I18n for all the message strings.","created_at":"2018-05-30T22:22:30Z","updated_at":"2018-05-30T22:22:30Z","html_url":"https://github.com/WikiEducationFoundation/WikiEduDashboard/pull/1880#discussion_r191941314","pull_request_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/pulls/1880","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/pulls/comments/191941314"},"html":{"href":"https://github.com/WikiEducationFoundation/WikiEduDashboard/pull/1880#discussion_r191941314"},"pull_request":{"href":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/pulls/1880"}}},"pull_request":{"url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/pulls/1880","id":191559590,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxNTU5NTkw","html_url":"https://github.com/WikiEducationFoundation/WikiEduDashboard/pull/1880","diff_url":"https://github.com/WikiEducationFoundation/WikiEduDashboard/pull/1880.diff","patch_url":"https://github.com/WikiEducationFoundation/WikiEduDashboard/pull/1880.patch","issue_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/issues/1880","number":1880,"state":"open","locked":false,"title":"[WIP] Integrate the article finder tool with dashboard","user":{"login":"psinghal20","id":23720731,"node_id":"MDQ6VXNlcjIzNzIwNzMx","avatar_url":"https://avatars1.githubusercontent.com/u/23720731?v=4","gravatar_id":"","url":"https://api.github.com/users/psinghal20","html_url":"https://github.com/psinghal20","followers_url":"https://api.github.com/users/psinghal20/followers","following_url":"https://api.github.com/users/psinghal20/following{/other_user}","gists_url":"https://api.github.com/users/psinghal20/gists{/gist_id}","starred_url":"https://api.github.com/users/psinghal20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psinghal20/subscriptions","organizations_url":"https://api.github.com/users/psinghal20/orgs","repos_url":"https://api.github.com/users/psinghal20/repos","events_url":"https://api.github.com/users/psinghal20/events{/privacy}","received_events_url":"https://api.github.com/users/psinghal20/received_events","type":"User","site_admin":false},"body":"This PR integrates the article finder tool with the rest of the dashboard providing hooks for adding an article from the results to the list of available articles for a course.\r\n\r\n## Screenshots:\r\n**Two articles already added in the list**\r\n![image](https://user-images.githubusercontent.com/23720731/40743367-ed358f54-646e-11e8-815f-c6edc941728d.png)\r\n\r\n**Stand alone article finder tool**\r\n![image](https://user-images.githubusercontent.com/23720731/40743536-700af95a-646f-11e8-98f8-f2dd56296e0c.png)\r\n\r\n","created_at":"2018-05-30T19:41:14Z","updated_at":"2018-05-30T22:22:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"478e87c38abca701c0a13c68dbc45a0c21508d7f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/pulls/1880/commits","review_comments_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/pulls/1880/comments","review_comment_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/issues/1880/comments","statuses_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/statuses/36b1a0aa9f280dd87ab883275aac3b8e59c7a2a9","head":{"label":"psinghal20:article-finder-integration","ref":"article-finder-integration","sha":"36b1a0aa9f280dd87ab883275aac3b8e59c7a2a9","user":{"login":"psinghal20","id":23720731,"node_id":"MDQ6VXNlcjIzNzIwNzMx","avatar_url":"https://avatars1.githubusercontent.com/u/23720731?v=4","gravatar_id":"","url":"https://api.github.com/users/psinghal20","html_url":"https://github.com/psinghal20","followers_url":"https://api.github.com/users/psinghal20/followers","following_url":"https://api.github.com/users/psinghal20/following{/other_user}","gists_url":"https://api.github.com/users/psinghal20/gists{/gist_id}","starred_url":"https://api.github.com/users/psinghal20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psinghal20/subscriptions","organizations_url":"https://api.github.com/users/psinghal20/orgs","repos_url":"https://api.github.com/users/psinghal20/repos","events_url":"https://api.github.com/users/psinghal20/events{/privacy}","received_events_url":"https://api.github.com/users/psinghal20/received_events","type":"User","site_admin":false},"repo":{"id":117746149,"node_id":"MDEwOlJlcG9zaXRvcnkxMTc3NDYxNDk=","name":"WikiEduDashboard","full_name":"psinghal20/WikiEduDashboard","owner":{"login":"psinghal20","id":23720731,"node_id":"MDQ6VXNlcjIzNzIwNzMx","avatar_url":"https://avatars1.githubusercontent.com/u/23720731?v=4","gravatar_id":"","url":"https://api.github.com/users/psinghal20","html_url":"https://github.com/psinghal20","followers_url":"https://api.github.com/users/psinghal20/followers","following_url":"https://api.github.com/users/psinghal20/following{/other_user}","gists_url":"https://api.github.com/users/psinghal20/gists{/gist_id}","starred_url":"https://api.github.com/users/psinghal20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psinghal20/subscriptions","organizations_url":"https://api.github.com/users/psinghal20/orgs","repos_url":"https://api.github.com/users/psinghal20/repos","events_url":"https://api.github.com/users/psinghal20/events{/privacy}","received_events_url":"https://api.github.com/users/psinghal20/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/psinghal20/WikiEduDashboard","description":"Wiki Education Foundation's Wikipedia course dashboard system","fork":true,"url":"https://api.github.com/repos/psinghal20/WikiEduDashboard","forks_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/forks","keys_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/teams","hooks_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/hooks","issue_events_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/issues/events{/number}","events_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/events","assignees_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/assignees{/user}","branches_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/branches{/branch}","tags_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/tags","blobs_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/languages","stargazers_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/stargazers","contributors_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/contributors","subscribers_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/subscribers","subscription_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/subscription","commits_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/contents/{+path}","compare_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/merges","archive_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/downloads","issues_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/issues{/number}","pulls_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/labels{/name}","releases_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/releases{/id}","deployments_url":"https://api.github.com/repos/psinghal20/WikiEduDashboard/deployments","created_at":"2018-01-16T21:45:26Z","updated_at":"2018-05-29T19:22:41Z","pushed_at":"2018-05-30T21:25:35Z","git_url":"git://github.com/psinghal20/WikiEduDashboard.git","ssh_url":"git@github.com:psinghal20/WikiEduDashboard.git","clone_url":"https://github.com/psinghal20/WikiEduDashboard.git","svn_url":"https://github.com/psinghal20/WikiEduDashboard","homepage":"https://dashboard.wikiedu.org","size":66922,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"WikiEducationFoundation:master","ref":"master","sha":"a80a25ca157bbafccdf4a55b628bcba53fcea634","user":{"login":"WikiEducationFoundation","id":9489865,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0ODk4NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/9489865?v=4","gravatar_id":"","url":"https://api.github.com/users/WikiEducationFoundation","html_url":"https://github.com/WikiEducationFoundation","followers_url":"https://api.github.com/users/WikiEducationFoundation/followers","following_url":"https://api.github.com/users/WikiEducationFoundation/following{/other_user}","gists_url":"https://api.github.com/users/WikiEducationFoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/WikiEducationFoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WikiEducationFoundation/subscriptions","organizations_url":"https://api.github.com/users/WikiEducationFoundation/orgs","repos_url":"https://api.github.com/users/WikiEducationFoundation/repos","events_url":"https://api.github.com/users/WikiEducationFoundation/events{/privacy}","received_events_url":"https://api.github.com/users/WikiEducationFoundation/received_events","type":"Organization","site_admin":false},"repo":{"id":27940263,"node_id":"MDEwOlJlcG9zaXRvcnkyNzk0MDI2Mw==","name":"WikiEduDashboard","full_name":"WikiEducationFoundation/WikiEduDashboard","owner":{"login":"WikiEducationFoundation","id":9489865,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0ODk4NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/9489865?v=4","gravatar_id":"","url":"https://api.github.com/users/WikiEducationFoundation","html_url":"https://github.com/WikiEducationFoundation","followers_url":"https://api.github.com/users/WikiEducationFoundation/followers","following_url":"https://api.github.com/users/WikiEducationFoundation/following{/other_user}","gists_url":"https://api.github.com/users/WikiEducationFoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/WikiEducationFoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WikiEducationFoundation/subscriptions","organizations_url":"https://api.github.com/users/WikiEducationFoundation/orgs","repos_url":"https://api.github.com/users/WikiEducationFoundation/repos","events_url":"https://api.github.com/users/WikiEducationFoundation/events{/privacy}","received_events_url":"https://api.github.com/users/WikiEducationFoundation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WikiEducationFoundation/WikiEduDashboard","description":"Wiki Education Foundation's Wikipedia course dashboard system","fork":false,"url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard","forks_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/forks","keys_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/teams","hooks_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/hooks","issue_events_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/issues/events{/number}","events_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/events","assignees_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/assignees{/user}","branches_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/branches{/branch}","tags_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/tags","blobs_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/languages","stargazers_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/stargazers","contributors_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/contributors","subscribers_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/subscribers","subscription_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/subscription","commits_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/contents/{+path}","compare_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/merges","archive_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/downloads","issues_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/issues{/number}","pulls_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/labels{/name}","releases_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/releases{/id}","deployments_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/deployments","created_at":"2014-12-12T22:13:19Z","updated_at":"2018-05-30T22:12:58Z","pushed_at":"2018-05-30T22:12:55Z","git_url":"git://github.com/WikiEducationFoundation/WikiEduDashboard.git","ssh_url":"git@github.com:WikiEducationFoundation/WikiEduDashboard.git","clone_url":"https://github.com/WikiEducationFoundation/WikiEduDashboard.git","svn_url":"https://github.com/WikiEducationFoundation/WikiEduDashboard","homepage":"https://dashboard.wikiedu.org","size":66946,"stargazers_count":94,"watchers_count":94,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":177,"mirror_url":null,"archived":false,"open_issues_count":216,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":177,"open_issues":216,"watchers":94,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/pulls/1880"},"html":{"href":"https://github.com/WikiEducationFoundation/WikiEduDashboard/pull/1880"},"issue":{"href":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/issues/1880"},"comments":{"href":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/issues/1880/comments"},"review_comments":{"href":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/pulls/1880/comments"},"review_comment":{"href":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/pulls/1880/commits"},"statuses":{"href":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/statuses/36b1a0aa9f280dd87ab883275aac3b8e59c7a2a9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ragesoss"}}