{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/41109615","id":41109615,"diff_hunk":"@@ -64,4 +65,188 @@ def test_status_of_newly_created_thread_is_open(self):\n             EXP_ID, 'a_state_name', None, 'a subject', 'some text')\n         threadlist = feedback_services.get_threadlist(EXP_ID)\n         thread_status = threadlist[0]['status']\n-        self.assertEqual(thread_status, feedback_models.STATUS_CHOICES_OPEN)   \n+        self.assertEqual(thread_status, feedback_models.STATUS_CHOICES_OPEN)\n+\n+\n+class SuggestionServicesUnitTests(test_utils.GenericTestBase):\n+    \"\"\"Test learner suggestion functions in feedback_services.\"\"\"\n+\n+    THREAD_ID1 = '1111'\n+    THREAD_ID2 = '2222'\n+    THREAD_ID3 = '3333'\n+    THREAD_ID4 = '4444'\n+    THREAD_ID5 = '5555'\n+    EXP_ID1 = 'exp_id1'\n+    EXP_ID2 = 'exp_id2'\n+    EXP_ID3 = 'exp_id3'\n+    THREADS = []\n+    SUGGESTIONS = []\n+\n+    def _generate_thread_id(self, exp_id):\n+        return self.THREAD_ID1\n+\n+    def setUp(self):\n+        super(SuggestionServicesUnitTests, self).setUp()\n+        with self.swap(feedback_models.FeedbackThreadModel, \n+                       'generate_new_thread_id', self._generate_thread_id):\n+            (feedback_services.create_suggestion(\n+                self.EXP_ID1, 'author_id', 3, 'state_name', {'old_content': {}}))\n+        with self.swap(feedback_models.FeedbackThreadModel, \n+                       'generate_new_thread_id', self._generate_thread_id):\n+            (feedback_services.create_suggestion(\n+                self.EXP_ID2, 'author_id', 3, 'state_name', {'old_content': {}}))        \n+        # Open thread with suggestion.\n+        thread1 = feedback_models.FeedbackThreadModel(\n+            id='.'.join([self.EXP_ID1, self.THREAD_ID1]),\n+            exploration_id=self.EXP_ID1,\n+            state_name='state_name',\n+            original_author_id='author_id',\n+            subject='SUGGESTION',\n+            has_suggestion=True) \n+        # Closed threads with suggestion.\n+        thread2 = feedback_models.FeedbackThreadModel(\n+            id='.'.join([self.EXP_ID1, self.THREAD_ID2]),\n+            exploration_id=self.EXP_ID1,\n+            state_name='state_name',\n+            original_author_id='author_id',\n+            subject='SUGGESTION',\n+            status=feedback_models.STATUS_CHOICES_FIXED,\n+            has_suggestion=True)\n+        thread3 = feedback_models.FeedbackThreadModel(\n+            id='.'.join([self.EXP_ID1, self.THREAD_ID3]),\n+            exploration_id=self.EXP_ID1,\n+            state_name='state_name',\n+            original_author_id='author_id',\n+            subject='SUGGESTION',\n+            status=feedback_models.STATUS_CHOICES_IGNORED,\n+            has_suggestion=True)\n+        # Closed thread without suggestion.\n+        thread4 = feedback_models.FeedbackThreadModel(\n+            id='.'.join([self.EXP_ID1, self.THREAD_ID4]),\n+            exploration_id=self.EXP_ID1,\n+            state_name='state_name',\n+            original_author_id='author_id',\n+            subject='SUGGESTION',\n+            status=feedback_models.STATUS_CHOICES_IGNORED)\n+        # Open thread without suggestion.\n+        thread5 = feedback_models.FeedbackThreadModel(\n+            id='.'.join([self.EXP_ID1, self.THREAD_ID5]),\n+            exploration_id=self.EXP_ID1,\n+            state_name='state_name',\n+            original_author_id='author_id',\n+            subject='SUGGESTION',\n+            status=feedback_models.STATUS_CHOICES_OPEN)\n+        self.THREADS = [thread1, thread2, thread3, thread4, thread5]\n+\n+    def test_create_and_get_suggestion(self):\n+        with self.swap(feedback_models.FeedbackThreadModel, \n+                       'generate_new_thread_id', self._generate_thread_id):\n+            (feedback_services.\n+                create_suggestion(self.EXP_ID3, 'author_id', 3,\n+                                  'state_name', {'old_content': {}}))\n+            suggestion = feedback_services.get_suggestion(\n+                self.EXP_ID3, self.THREAD_ID1)\n+            thread = feedback_models.FeedbackThreadModel.get(\n+                '.'.join([self.EXP_ID3, self.THREAD_ID1]))\n+            self.assertEqual(thread.status, \n+                             feedback_models.STATUS_CHOICES_OPEN)\n+            self.assertEqual(suggestion.exploration_id, self.EXP_ID3)\n+            self.assertEqual(suggestion.author_id, 'author_id')\n+            self.assertEqual(suggestion.exploration_version, 3)\n+            self.assertEqual(suggestion.state_name, 'state_name')\n+            self.assertEqual(suggestion.state_content, {'old_content': {}})\n+\n+    def _get_threads(self, exploration_id):\n+        return self.THREADS\n+\n+    def test_get_open_threads_with_suggestions(self):\n+        with self.swap(feedback_models.FeedbackThreadModel, 'get_threads',\n+                       self._get_threads):\n+            threads = feedback_services.get_open_threads(\n+                self.EXP_ID1, True)\n+        self.assertEqual(len(threads), 1)\n+        self.assertEqual(\n+            threads[0].id, '.'.join([self.EXP_ID1, self.THREAD_ID1]))\n+\n+    def test_get_open_threads_without_suggestions(self):\n+        with self.swap(feedback_models.FeedbackThreadModel, 'get_threads',\n+                       self._get_threads):\n+            threads = feedback_services.get_open_threads(\n+                self.EXP_ID1, False)\n+        self.assertEqual(len(threads), 1)\n+        self.assertEqual(\n+            threads[0].id, '.'.join([self.EXP_ID1, self.THREAD_ID5]))\n+\n+    def test_get_closed_threads_with_suggestions(self):\n+        with self.swap(feedback_models.FeedbackThreadModel, 'get_threads',\n+                       self._get_threads):\n+            threads = feedback_services.get_closed_threads(\n+                self.EXP_ID1, True)\n+        self.assertEqual(len(threads), 2)\n+        self.assertEqual(\n+            threads[0].id, '.'.join([self.EXP_ID1, self.THREAD_ID2]))\n+        self.assertEqual(\n+            threads[1].id, '.'.join([self.EXP_ID1, self.THREAD_ID3]))\n+\n+    def test_get_closed_threads_without_suggestions(self):\n+        with self.swap(feedback_models.FeedbackThreadModel, 'get_threads',\n+                       self._get_threads):\n+            threads = feedback_services.get_closed_threads(\n+                self.EXP_ID1, False)\n+        self.assertEqual(len(threads), 1)\n+        self.assertEqual(\n+            threads[0].id, '.'.join([self.EXP_ID1, self.THREAD_ID4]))\n+\n+    def test_get_all_suggestion_threads(self):\n+        with self.swap(feedback_models.FeedbackThreadModel, 'get_threads',\n+                       self._get_threads):\n+            threads = feedback_services.get_all_suggestion_threads(\n+                self.EXP_ID1)\n+        self.assertEqual(len(threads), 3)\n+        self.assertEqual(\n+            threads[0].id, '.'.join([self.EXP_ID1, self.THREAD_ID1]))\n+        self.assertEqual(\n+            threads[1].id, '.'.join([self.EXP_ID1, self.THREAD_ID2]))\n+        self.assertEqual(\n+            threads[2].id, '.'.join([self.EXP_ID1, self.THREAD_ID3]))\n+ \n+    def _return_true(self, thread_id, exploration_id):","path":"core/domain/feedback_services_test.py","position":158,"original_position":158,"commit_id":"f4dd5285bb00641fd9a086f47892a13eca488ad6","original_commit_id":"f4dd5285bb00641fd9a086f47892a13eca488ad6","user":{"login":"seanlip","id":10575562,"avatar_url":"https://avatars.githubusercontent.com/u/10575562?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlip","html_url":"https://github.com/seanlip","followers_url":"https://api.github.com/users/seanlip/followers","following_url":"https://api.github.com/users/seanlip/following{/other_user}","gists_url":"https://api.github.com/users/seanlip/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlip/subscriptions","organizations_url":"https://api.github.com/users/seanlip/orgs","repos_url":"https://api.github.com/users/seanlip/repos","events_url":"https://api.github.com/users/seanlip/events{/privacy}","received_events_url":"https://api.github.com/users/seanlip/received_events","type":"User","site_admin":false},"body":"Break all the following out into a separate test suite (for accept/reject flow). Rename the previous test suite to SuggestionQueriesUnitTests.","created_at":"2015-10-05T04:09:53Z","updated_at":"2015-10-05T04:09:53Z","html_url":"https://github.com/oppia/oppia/pull/998#discussion_r41109615","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/998","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/41109615"},"html":{"href":"https://github.com/oppia/oppia/pull/998#discussion_r41109615"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/998"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/998","id":46317919,"html_url":"https://github.com/oppia/oppia/pull/998","diff_url":"https://github.com/oppia/oppia/pull/998.diff","patch_url":"https://github.com/oppia/oppia/pull/998.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/998","number":998,"state":"open","locked":false,"title":"Services for learner suggestions, #892 .","user":{"login":"sbhowmik89","id":8260362,"avatar_url":"https://avatars.githubusercontent.com/u/8260362?v=3","gravatar_id":"","url":"https://api.github.com/users/sbhowmik89","html_url":"https://github.com/sbhowmik89","followers_url":"https://api.github.com/users/sbhowmik89/followers","following_url":"https://api.github.com/users/sbhowmik89/following{/other_user}","gists_url":"https://api.github.com/users/sbhowmik89/gists{/gist_id}","starred_url":"https://api.github.com/users/sbhowmik89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbhowmik89/subscriptions","organizations_url":"https://api.github.com/users/sbhowmik89/orgs","repos_url":"https://api.github.com/users/sbhowmik89/repos","events_url":"https://api.github.com/users/sbhowmik89/events{/privacy}","received_events_url":"https://api.github.com/users/sbhowmik89/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-29T19:02:41Z","updated_at":"2015-10-05T04:09:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"478c447576d8af18732ce1c5267a320e9677e000","assignee":{"login":"seanlip","id":10575562,"avatar_url":"https://avatars.githubusercontent.com/u/10575562?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlip","html_url":"https://github.com/seanlip","followers_url":"https://api.github.com/users/seanlip/followers","following_url":"https://api.github.com/users/seanlip/following{/other_user}","gists_url":"https://api.github.com/users/seanlip/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlip/subscriptions","organizations_url":"https://api.github.com/users/seanlip/orgs","repos_url":"https://api.github.com/users/seanlip/repos","events_url":"https://api.github.com/users/seanlip/events{/privacy}","received_events_url":"https://api.github.com/users/seanlip/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/998/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/998/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/998/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/f4dd5285bb00641fd9a086f47892a13eca488ad6","head":{"label":"sbhowmik89:suggestionservices","ref":"suggestionservices","sha":"f4dd5285bb00641fd9a086f47892a13eca488ad6","user":{"login":"sbhowmik89","id":8260362,"avatar_url":"https://avatars.githubusercontent.com/u/8260362?v=3","gravatar_id":"","url":"https://api.github.com/users/sbhowmik89","html_url":"https://github.com/sbhowmik89","followers_url":"https://api.github.com/users/sbhowmik89/followers","following_url":"https://api.github.com/users/sbhowmik89/following{/other_user}","gists_url":"https://api.github.com/users/sbhowmik89/gists{/gist_id}","starred_url":"https://api.github.com/users/sbhowmik89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbhowmik89/subscriptions","organizations_url":"https://api.github.com/users/sbhowmik89/orgs","repos_url":"https://api.github.com/users/sbhowmik89/repos","events_url":"https://api.github.com/users/sbhowmik89/events{/privacy}","received_events_url":"https://api.github.com/users/sbhowmik89/received_events","type":"User","site_admin":false},"repo":{"id":42437530,"name":"oppia","full_name":"sbhowmik89/oppia","owner":{"login":"sbhowmik89","id":8260362,"avatar_url":"https://avatars.githubusercontent.com/u/8260362?v=3","gravatar_id":"","url":"https://api.github.com/users/sbhowmik89","html_url":"https://github.com/sbhowmik89","followers_url":"https://api.github.com/users/sbhowmik89/followers","following_url":"https://api.github.com/users/sbhowmik89/following{/other_user}","gists_url":"https://api.github.com/users/sbhowmik89/gists{/gist_id}","starred_url":"https://api.github.com/users/sbhowmik89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbhowmik89/subscriptions","organizations_url":"https://api.github.com/users/sbhowmik89/orgs","repos_url":"https://api.github.com/users/sbhowmik89/repos","events_url":"https://api.github.com/users/sbhowmik89/events{/privacy}","received_events_url":"https://api.github.com/users/sbhowmik89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sbhowmik89/oppia","description":"Tool for creating interactive tutors.","fork":true,"url":"https://api.github.com/repos/sbhowmik89/oppia","forks_url":"https://api.github.com/repos/sbhowmik89/oppia/forks","keys_url":"https://api.github.com/repos/sbhowmik89/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbhowmik89/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbhowmik89/oppia/teams","hooks_url":"https://api.github.com/repos/sbhowmik89/oppia/hooks","issue_events_url":"https://api.github.com/repos/sbhowmik89/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/sbhowmik89/oppia/events","assignees_url":"https://api.github.com/repos/sbhowmik89/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/sbhowmik89/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/sbhowmik89/oppia/tags","blobs_url":"https://api.github.com/repos/sbhowmik89/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbhowmik89/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbhowmik89/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbhowmik89/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbhowmik89/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/sbhowmik89/oppia/languages","stargazers_url":"https://api.github.com/repos/sbhowmik89/oppia/stargazers","contributors_url":"https://api.github.com/repos/sbhowmik89/oppia/contributors","subscribers_url":"https://api.github.com/repos/sbhowmik89/oppia/subscribers","subscription_url":"https://api.github.com/repos/sbhowmik89/oppia/subscription","commits_url":"https://api.github.com/repos/sbhowmik89/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbhowmik89/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbhowmik89/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbhowmik89/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbhowmik89/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/sbhowmik89/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbhowmik89/oppia/merges","archive_url":"https://api.github.com/repos/sbhowmik89/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbhowmik89/oppia/downloads","issues_url":"https://api.github.com/repos/sbhowmik89/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/sbhowmik89/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/sbhowmik89/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/sbhowmik89/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbhowmik89/oppia/labels{/name}","releases_url":"https://api.github.com/repos/sbhowmik89/oppia/releases{/id}","created_at":"2015-09-14T08:48:41Z","updated_at":"2015-09-14T08:48:43Z","pushed_at":"2015-10-02T23:36:22Z","git_url":"git://github.com/sbhowmik89/oppia.git","ssh_url":"git@github.com:sbhowmik89/oppia.git","clone_url":"https://github.com/sbhowmik89/oppia.git","svn_url":"https://github.com/sbhowmik89/oppia","homepage":"https://www.oppia.org","size":37032,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"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":"develop"}},"base":{"label":"oppia:suggestions","ref":"suggestions","sha":"289c44e5cc9631359b819ba5be1a565736019d92","user":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"repo":{"id":40687563,"name":"oppia","full_name":"oppia/oppia","owner":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oppia/oppia","description":"Tool for collaboratively building interactive tutors.","fork":false,"url":"https://api.github.com/repos/oppia/oppia","forks_url":"https://api.github.com/repos/oppia/oppia/forks","keys_url":"https://api.github.com/repos/oppia/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oppia/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oppia/oppia/teams","hooks_url":"https://api.github.com/repos/oppia/oppia/hooks","issue_events_url":"https://api.github.com/repos/oppia/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/oppia/oppia/events","assignees_url":"https://api.github.com/repos/oppia/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/oppia/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/oppia/oppia/tags","blobs_url":"https://api.github.com/repos/oppia/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oppia/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oppia/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/oppia/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/oppia/oppia/languages","stargazers_url":"https://api.github.com/repos/oppia/oppia/stargazers","contributors_url":"https://api.github.com/repos/oppia/oppia/contributors","subscribers_url":"https://api.github.com/repos/oppia/oppia/subscribers","subscription_url":"https://api.github.com/repos/oppia/oppia/subscription","commits_url":"https://api.github.com/repos/oppia/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/oppia/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/oppia/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/oppia/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/oppia/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/oppia/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oppia/oppia/merges","archive_url":"https://api.github.com/repos/oppia/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oppia/oppia/downloads","issues_url":"https://api.github.com/repos/oppia/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/oppia/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/oppia/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/oppia/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oppia/oppia/labels{/name}","releases_url":"https://api.github.com/repos/oppia/oppia/releases{/id}","created_at":"2015-08-14T00:16:14Z","updated_at":"2015-10-03T22:14:51Z","pushed_at":"2015-10-05T03:21:58Z","git_url":"git://github.com/oppia/oppia.git","ssh_url":"git@github.com:oppia/oppia.git","clone_url":"https://github.com/oppia/oppia.git","svn_url":"https://github.com/oppia/oppia","homepage":"https://www.oppia.org","size":43656,"stargazers_count":42,"watchers_count":42,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":175,"forks":51,"open_issues":175,"watchers":42,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/998"},"html":{"href":"https://github.com/oppia/oppia/pull/998"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/998"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/998/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/998/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/998/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/f4dd5285bb00641fd9a086f47892a13eca488ad6"}}}}