{"action":"created","comment":{"url":"https://api.github.com/repos/edx/django-user-tasks/pulls/comments/74630371","id":74630371,"diff_hunk":"@@ -0,0 +1,237 @@\n+#!/usr/bin/env python\n+# -*- coding: utf-8 -*-\n+\"\"\"Tests for the `django-user-tasks` models module.\"\"\"\n+\n+from __future__ import absolute_import, unicode_literals\n+\n+import logging\n+from uuid import uuid4\n+\n+from django.contrib.auth.models import User\n+from django.core.files.uploadedfile import SimpleUploadedFile\n+from django.test import TestCase\n+\n+import pytest\n+\n+from user_tasks.exceptions import TaskCanceledException\n+from user_tasks.models import UserTaskArtifact, UserTaskStatus\n+\n+LOGGER = logging.getLogger(__name__)\n+\n+\n+class TestUserTaskStatus(TestCase):\n+    \"\"\"Tests of the UserTask model.\"\"\"\n+\n+    @classmethod\n+    def setUpTestData(cls):\n+        cls.user = User.objects.create_user('test_user', 'test@example.com', 'password')\n+\n+    def test_cancel_parent(self):\n+        \"\"\"Canceling a container status should also cancel its children.\"\"\"\n+        parent = self._status(is_container=True, state=UserTaskStatus.PENDING)\n+        status = self._status(parent=parent, state=UserTaskStatus.PENDING)\n+        parent.cancel()\n+        status.refresh_from_db()\n+        assert parent.state == UserTaskStatus.CANCELED\n+        assert status.state == UserTaskStatus.CANCELED\n+\n+    def test_cancel_finished_task(self):\n+        \"\"\"Attempting to cancel an already-finished task should have no effect.\"\"\"\n+        status = self._status(state=UserTaskStatus.SUCCEEDED)\n+        status.cancel()\n+        assert status.state == UserTaskStatus.SUCCEEDED\n+\n+    def test_fail_with_parent(self):\n+        \"\"\"A task which fails should also mark any parent as having failed.\"\"\"\n+        parent = self._status(is_container=True)\n+        status = self._status(parent=parent)\n+        status.fail('Oops!')\n+        parent.refresh_from_db()\n+        assert status.state == UserTaskStatus.FAILED\n+        assert parent.state == UserTaskStatus.FAILED\n+        artifact = UserTaskArtifact.objects.get(status=status)\n+        assert artifact.text == 'Oops!'\n+        parent_artifact = UserTaskArtifact.objects.get(status=parent)\n+        assert parent_artifact.text == 'Oops!'\n+\n+    def test_increment_completed_steps(self):\n+        \"\"\"increment_completed_steps() should update both the current status and any parent status.\"\"\"\n+        parent = self._status(is_container=True, total_steps=0)\n+        status = self._status(parent=parent, total_steps=2)\n+        status.increment_completed_steps()\n+        parent.refresh_from_db()\n+        assert status.completed_steps == 1\n+        assert parent.completed_steps == 1\n+\n+    def test_increment_completed_steps_explicit_steps(self):\n+        \"\"\"increment_completed_steps() should support explicit step counts greater than 1.\"\"\"\n+        status = self._status(total_steps=5)\n+        status.increment_completed_steps(3)\n+        assert status.completed_steps == 3\n+        status.refresh_from_db()\n+        assert status.completed_steps == 3\n+\n+    def test_increment_total_steps(self):\n+        \"\"\"increment_total_steps() should correctly update the status and any parent.\"\"\"\n+        parent = self._status(is_container=True, total_steps=3)\n+        status = self._status(parent=parent, total_steps=1)\n+        status.increment_total_steps(2)\n+        parent.refresh_from_db()\n+        assert status.total_steps == 3\n+        assert parent.total_steps == 5\n+\n+    def test_retry(self):\n+        \"\"\"retry() should update the status fields accordingly and not impact any parent.\"\"\"\n+        parent = self._status(is_container=True)\n+        status = self._status(parent=parent)\n+        status.retry()\n+        parent.refresh_from_db()\n+        assert status.state == UserTaskStatus.RETRYING\n+        assert status.attempts == 2\n+        assert parent.state == UserTaskStatus.IN_PROGRESS\n+\n+    def test_set_name(self):\n+        \"\"\"set_name() should update both the subject and any parent.\"\"\"\n+        parent = self._status(is_container=True)\n+        status = self._status(parent=parent)\n+        status.set_name('New Name')\n+        parent.refresh_from_db()\n+        assert status.name == 'New Name'\n+        assert parent.name == 'New Name'\n+\n+    def test_set_state(self):\n+        \"\"\"It should be possible to set a custom state for a UserTaskStatus.\"\"\"\n+        status = self._status()\n+        status.set_state('Custom State')\n+        assert status.state == 'Custom State'\n+        status.refresh_from_db()\n+        assert status.state == 'Custom State'\n+\n+    def test_set_state_canceled(self):\n+        \"\"\"Setting a custom state for a canceled task should fail.\"\"\"\n+        status = self._status(state=UserTaskStatus.CANCELED)\n+        with pytest.raises(TaskCanceledException):\n+            status.set_state('Custom State')\n+        assert status.state == UserTaskStatus.CANCELED\n+        status.refresh_from_db()\n+        assert status.state == UserTaskStatus.CANCELED\n+\n+    def test_set_state_parent(self):\n+        \"\"\"Setting a custom state should propagate to the state's parent.\"\"\"\n+        parent = self._status(is_container=True, task_class='celery.chain')\n+        status = self._status(parent=parent)\n+        status.set_state('Custom State')\n+        assert status.state == 'Custom State'\n+        status.refresh_from_db()\n+        assert status.state == 'Custom State'\n+        assert parent.state == 'Custom State'\n+        parent.refresh_from_db()\n+        assert parent.state == 'Custom State'\n+\n+    def test_start(self):\n+        \"\"\"The start() method should update the status record appropriately.\"\"\"\n+        status = self._status(state=UserTaskStatus.PENDING)\n+        assert status.state == UserTaskStatus.PENDING\n+        status.start()\n+        assert status.state == UserTaskStatus.IN_PROGRESS\n+        status.refresh_from_db()\n+        assert status.state == UserTaskStatus.IN_PROGRESS\n+\n+    def test_start_canceled_task(self):\n+        \"\"\"Attempting to start a canceled task should raise a TaskCanceledException.\"\"\"\n+        status = self._status(state=UserTaskStatus.CANCELED)\n+        with pytest.raises(TaskCanceledException):\n+            status.start()\n+        assert status.state == UserTaskStatus.CANCELED\n+\n+    def test_start_with_failed_sibling(self):\n+        \"\"\"If a sibling task has already failed, the parent status should not change when the task starts.\"\"\"\n+        parent = self._status(is_container=True, state=UserTaskStatus.FAILED)\n+        child1 = self._status(parent=parent, state=UserTaskStatus.FAILED)\n+        child2 = self._status(parent=parent, state=UserTaskStatus.PENDING)\n+        child2.start()\n+        parent.refresh_from_db\n+        assert child2.state == UserTaskStatus.IN_PROGRESS\n+        assert parent.state == UserTaskStatus.FAILED\n+\n+    def test_start_with_parent(self):\n+        \"\"\"Starting a pending task should also update any parent task status.\"\"\"\n+        parent = self._status(is_container=True, state=UserTaskStatus.PENDING)\n+        status = self._status(parent=parent, state=UserTaskStatus.PENDING)\n+        status.start()\n+        assert status.state == UserTaskStatus.IN_PROGRESS\n+        parent.refresh_from_db()\n+        assert parent.state == UserTaskStatus.IN_PROGRESS\n+\n+    def test_string_representation(self):\n+        \"\"\"UserTaskStatus instances should have a reasonable string representation.\"\"\"\n+        status = self._status()\n+        assert str(status) == '<UserTaskStatus: SampleTask>'\n+\n+    def test_succeed(self):\n+        \"\"\"succeed() should update its parent only if all its other children have already succeeded.\"\"\"\n+        parent = self._status(is_container=True, total_steps=10)\n+        child1 = self._status(parent=parent)\n+        child2 = self._status(parent=parent)\n+        child1.succeed()\n+        parent.refresh_from_db()\n+        assert child1.state == UserTaskStatus.SUCCEEDED\n+        assert child1.completed_steps == child1.total_steps\n+        assert parent.state == UserTaskStatus.IN_PROGRESS\n+        assert parent.completed_steps == child1.total_steps\n+        child2.succeed()\n+        parent.refresh_from_db()\n+        assert child2.state == UserTaskStatus.SUCCEEDED\n+        assert child2.completed_steps == child2.total_steps\n+        assert parent.state == UserTaskStatus.SUCCEEDED\n+        assert parent.completed_steps == child1.total_steps + child2.total_steps\n+\n+    def _status(self, **kwargs):","path":"tests/test_models.py","position":189,"original_position":189,"commit_id":"a4aed92430235a01b1da4cabd6d9223fdbf95a6a","original_commit_id":"a4aed92430235a01b1da4cabd6d9223fdbf95a6a","user":{"login":"jmbowman","id":1005375,"avatar_url":"https://avatars.githubusercontent.com/u/1005375?v=3","gravatar_id":"","url":"https://api.github.com/users/jmbowman","html_url":"https://github.com/jmbowman","followers_url":"https://api.github.com/users/jmbowman/followers","following_url":"https://api.github.com/users/jmbowman/following{/other_user}","gists_url":"https://api.github.com/users/jmbowman/gists{/gist_id}","starred_url":"https://api.github.com/users/jmbowman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmbowman/subscriptions","organizations_url":"https://api.github.com/users/jmbowman/orgs","repos_url":"https://api.github.com/users/jmbowman/repos","events_url":"https://api.github.com/users/jmbowman/events{/privacy}","received_events_url":"https://api.github.com/users/jmbowman/received_events","type":"User","site_admin":false},"body":"I usually put \"private\" methods at the end of a class, especially for tests; do you know of a style guide that recommends the opposite?","created_at":"2016-08-12T17:39:23Z","updated_at":"2016-08-12T17:39:23Z","html_url":"https://github.com/edx/django-user-tasks/pull/1#discussion_r74630371","pull_request_url":"https://api.github.com/repos/edx/django-user-tasks/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/edx/django-user-tasks/pulls/comments/74630371"},"html":{"href":"https://github.com/edx/django-user-tasks/pull/1#discussion_r74630371"},"pull_request":{"href":"https://api.github.com/repos/edx/django-user-tasks/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/edx/django-user-tasks/pulls/1","id":80817317,"html_url":"https://github.com/edx/django-user-tasks/pull/1","diff_url":"https://github.com/edx/django-user-tasks/pull/1.diff","patch_url":"https://github.com/edx/django-user-tasks/pull/1.patch","issue_url":"https://api.github.com/repos/edx/django-user-tasks/issues/1","number":1,"state":"open","locked":false,"title":"Initial implementation of models and tasks","user":{"login":"jmbowman","id":1005375,"avatar_url":"https://avatars.githubusercontent.com/u/1005375?v=3","gravatar_id":"","url":"https://api.github.com/users/jmbowman","html_url":"https://github.com/jmbowman","followers_url":"https://api.github.com/users/jmbowman/followers","following_url":"https://api.github.com/users/jmbowman/following{/other_user}","gists_url":"https://api.github.com/users/jmbowman/gists{/gist_id}","starred_url":"https://api.github.com/users/jmbowman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmbowman/subscriptions","organizations_url":"https://api.github.com/users/jmbowman/orgs","repos_url":"https://api.github.com/users/jmbowman/repos","events_url":"https://api.github.com/users/jmbowman/events{/privacy}","received_events_url":"https://api.github.com/users/jmbowman/received_events","type":"User","site_admin":false},"body":"Generated skeleton via [cookiecutter-django-app](https://github.com/edx/cookiecutter-django-app) and fleshed out the models and Celery task mixin.  This implements the subset of [OEP-3](https://open-edx-proposals.readthedocs.io/en/latest/oeps/oep-0003.html) functionality described in [PLAT-1057](https://openedx.atlassian.net/browse/PLAT-1057).  Documentation is in README.rst and under the ``docs`` directory, let me know if you have any questions that reflect gaps in those.","created_at":"2016-08-10T15:40:24Z","updated_at":"2016-08-12T17:39:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c836cda5d14e937fcea844945ba6860a7ba4fa91","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/edx/django-user-tasks/pulls/1/commits","review_comments_url":"https://api.github.com/repos/edx/django-user-tasks/pulls/1/comments","review_comment_url":"https://api.github.com/repos/edx/django-user-tasks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/django-user-tasks/issues/1/comments","statuses_url":"https://api.github.com/repos/edx/django-user-tasks/statuses/a4aed92430235a01b1da4cabd6d9223fdbf95a6a","head":{"label":"edx:models_and_tasks","ref":"models_and_tasks","sha":"a4aed92430235a01b1da4cabd6d9223fdbf95a6a","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":65327499,"name":"django-user-tasks","full_name":"edx/django-user-tasks","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/django-user-tasks","description":null,"fork":false,"url":"https://api.github.com/repos/edx/django-user-tasks","forks_url":"https://api.github.com/repos/edx/django-user-tasks/forks","keys_url":"https://api.github.com/repos/edx/django-user-tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/django-user-tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/django-user-tasks/teams","hooks_url":"https://api.github.com/repos/edx/django-user-tasks/hooks","issue_events_url":"https://api.github.com/repos/edx/django-user-tasks/issues/events{/number}","events_url":"https://api.github.com/repos/edx/django-user-tasks/events","assignees_url":"https://api.github.com/repos/edx/django-user-tasks/assignees{/user}","branches_url":"https://api.github.com/repos/edx/django-user-tasks/branches{/branch}","tags_url":"https://api.github.com/repos/edx/django-user-tasks/tags","blobs_url":"https://api.github.com/repos/edx/django-user-tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/django-user-tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/django-user-tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/django-user-tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/django-user-tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/django-user-tasks/languages","stargazers_url":"https://api.github.com/repos/edx/django-user-tasks/stargazers","contributors_url":"https://api.github.com/repos/edx/django-user-tasks/contributors","subscribers_url":"https://api.github.com/repos/edx/django-user-tasks/subscribers","subscription_url":"https://api.github.com/repos/edx/django-user-tasks/subscription","commits_url":"https://api.github.com/repos/edx/django-user-tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/django-user-tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/django-user-tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/django-user-tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/django-user-tasks/contents/{+path}","compare_url":"https://api.github.com/repos/edx/django-user-tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/django-user-tasks/merges","archive_url":"https://api.github.com/repos/edx/django-user-tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/django-user-tasks/downloads","issues_url":"https://api.github.com/repos/edx/django-user-tasks/issues{/number}","pulls_url":"https://api.github.com/repos/edx/django-user-tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/django-user-tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/django-user-tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/django-user-tasks/labels{/name}","releases_url":"https://api.github.com/repos/edx/django-user-tasks/releases{/id}","deployments_url":"https://api.github.com/repos/edx/django-user-tasks/deployments","created_at":"2016-08-09T20:52:58Z","updated_at":"2016-08-09T20:52:58Z","pushed_at":"2016-08-10T18:31:00Z","git_url":"git://github.com/edx/django-user-tasks.git","ssh_url":"git@github.com:edx/django-user-tasks.git","clone_url":"https://github.com/edx/django-user-tasks.git","svn_url":"https://github.com/edx/django-user-tasks","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"f965f20715fa7200f71be8fd1b26c7537561c552","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":65327499,"name":"django-user-tasks","full_name":"edx/django-user-tasks","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/django-user-tasks","description":null,"fork":false,"url":"https://api.github.com/repos/edx/django-user-tasks","forks_url":"https://api.github.com/repos/edx/django-user-tasks/forks","keys_url":"https://api.github.com/repos/edx/django-user-tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/django-user-tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/django-user-tasks/teams","hooks_url":"https://api.github.com/repos/edx/django-user-tasks/hooks","issue_events_url":"https://api.github.com/repos/edx/django-user-tasks/issues/events{/number}","events_url":"https://api.github.com/repos/edx/django-user-tasks/events","assignees_url":"https://api.github.com/repos/edx/django-user-tasks/assignees{/user}","branches_url":"https://api.github.com/repos/edx/django-user-tasks/branches{/branch}","tags_url":"https://api.github.com/repos/edx/django-user-tasks/tags","blobs_url":"https://api.github.com/repos/edx/django-user-tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/django-user-tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/django-user-tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/django-user-tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/django-user-tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/django-user-tasks/languages","stargazers_url":"https://api.github.com/repos/edx/django-user-tasks/stargazers","contributors_url":"https://api.github.com/repos/edx/django-user-tasks/contributors","subscribers_url":"https://api.github.com/repos/edx/django-user-tasks/subscribers","subscription_url":"https://api.github.com/repos/edx/django-user-tasks/subscription","commits_url":"https://api.github.com/repos/edx/django-user-tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/django-user-tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/django-user-tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/django-user-tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/django-user-tasks/contents/{+path}","compare_url":"https://api.github.com/repos/edx/django-user-tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/django-user-tasks/merges","archive_url":"https://api.github.com/repos/edx/django-user-tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/django-user-tasks/downloads","issues_url":"https://api.github.com/repos/edx/django-user-tasks/issues{/number}","pulls_url":"https://api.github.com/repos/edx/django-user-tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/django-user-tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/django-user-tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/django-user-tasks/labels{/name}","releases_url":"https://api.github.com/repos/edx/django-user-tasks/releases{/id}","deployments_url":"https://api.github.com/repos/edx/django-user-tasks/deployments","created_at":"2016-08-09T20:52:58Z","updated_at":"2016-08-09T20:52:58Z","pushed_at":"2016-08-10T18:31:00Z","git_url":"git://github.com/edx/django-user-tasks.git","ssh_url":"git@github.com:edx/django-user-tasks.git","clone_url":"https://github.com/edx/django-user-tasks.git","svn_url":"https://github.com/edx/django-user-tasks","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/django-user-tasks/pulls/1"},"html":{"href":"https://github.com/edx/django-user-tasks/pull/1"},"issue":{"href":"https://api.github.com/repos/edx/django-user-tasks/issues/1"},"comments":{"href":"https://api.github.com/repos/edx/django-user-tasks/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/django-user-tasks/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/django-user-tasks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/django-user-tasks/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/edx/django-user-tasks/statuses/a4aed92430235a01b1da4cabd6d9223fdbf95a6a"}}}}
{"actor":{"display_login":"jmbowman"}}