{"action":"created","comment":{"url":"https://api.github.com/repos/edx/journals/pulls/comments/181467516","pull_request_review_id":112107560,"id":181467516,"diff_hunk":"@@ -314,6 +317,35 @@ def generate_basket_url(self, sku):\n         ))\n         return basket_url\n \n+    def update_related_objects(self, deactivate=False):\n+        data = {\n+            \"status\": \"active\" if not deactivate else \"inactive\",\n+            \"card_image_url\": self.card_image_absolute_url,\n+            \"title\": self.title,\n+            \"full_description\": self.long_description,\n+            \"short_description\": self.short_description,\n+        }\n+\n+        discovery_journal_api_client = self.site.siteconfiguration.discovery_journal_api_client\n+\n+        try:\n+            discovery_journal_api_client.journals(self.journal.uuid).patch(data)\n+        except HttpNotFoundError as err:","path":"journals/apps/journals/models.py","position":50,"original_position":50,"commit_id":"7b8a27660215d93c6acd21bd6f3592ea22cb190d","original_commit_id":"7b8a27660215d93c6acd21bd6f3592ea22cb190d","user":{"login":"tuchfarber","id":6179874,"avatar_url":"https://avatars3.githubusercontent.com/u/6179874?v=4","gravatar_id":"","url":"https://api.github.com/users/tuchfarber","html_url":"https://github.com/tuchfarber","followers_url":"https://api.github.com/users/tuchfarber/followers","following_url":"https://api.github.com/users/tuchfarber/following{/other_user}","gists_url":"https://api.github.com/users/tuchfarber/gists{/gist_id}","starred_url":"https://api.github.com/users/tuchfarber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuchfarber/subscriptions","organizations_url":"https://api.github.com/users/tuchfarber/orgs","repos_url":"https://api.github.com/users/tuchfarber/repos","events_url":"https://api.github.com/users/tuchfarber/events{/privacy}","received_events_url":"https://api.github.com/users/tuchfarber/received_events","type":"User","site_admin":false},"body":"Will fix","created_at":"2018-04-13T18:06:10Z","updated_at":"2018-04-13T18:06:10Z","html_url":"https://github.com/edx/journals/pull/17#discussion_r181467516","pull_request_url":"https://api.github.com/repos/edx/journals/pulls/17","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/edx/journals/pulls/comments/181467516"},"html":{"href":"https://github.com/edx/journals/pull/17#discussion_r181467516"},"pull_request":{"href":"https://api.github.com/repos/edx/journals/pulls/17"}},"in_reply_to_id":181206462},"pull_request":{"url":"https://api.github.com/repos/edx/journals/pulls/17","id":181028110,"html_url":"https://github.com/edx/journals/pull/17","diff_url":"https://github.com/edx/journals/pull/17.diff","patch_url":"https://github.com/edx/journals/pull/17.patch","issue_url":"https://api.github.com/repos/edx/journals/issues/17","number":17,"state":"open","locked":false,"title":"Update discovery journal on publish","user":{"login":"tuchfarber","id":6179874,"avatar_url":"https://avatars3.githubusercontent.com/u/6179874?v=4","gravatar_id":"","url":"https://api.github.com/users/tuchfarber","html_url":"https://github.com/tuchfarber","followers_url":"https://api.github.com/users/tuchfarber/followers","following_url":"https://api.github.com/users/tuchfarber/following{/other_user}","gists_url":"https://api.github.com/users/tuchfarber/gists{/gist_id}","starred_url":"https://api.github.com/users/tuchfarber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuchfarber/subscriptions","organizations_url":"https://api.github.com/users/tuchfarber/orgs","repos_url":"https://api.github.com/users/tuchfarber/repos","events_url":"https://api.github.com/users/tuchfarber/events{/privacy}","received_events_url":"https://api.github.com/users/tuchfarber/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-11T21:05:35Z","updated_at":"2018-04-13T18:06:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d414faa5f004c0b7e14cdb3d0fa97b06b47ad5f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/edx/journals/pulls/17/commits","review_comments_url":"https://api.github.com/repos/edx/journals/pulls/17/comments","review_comment_url":"https://api.github.com/repos/edx/journals/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/journals/issues/17/comments","statuses_url":"https://api.github.com/repos/edx/journals/statuses/7b8a27660215d93c6acd21bd6f3592ea22cb190d","head":{"label":"edx:tuchfarber/update_discovery_on_publish","ref":"tuchfarber/update_discovery_on_publish","sha":"7b8a27660215d93c6acd21bd6f3592ea22cb190d","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars3.githubusercontent.com/u/3179841?v=4","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":126215869,"name":"journals","full_name":"edx/journals","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars3.githubusercontent.com/u/3179841?v=4","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/journals","description":"Service to create and serve journals for open edX.","fork":false,"url":"https://api.github.com/repos/edx/journals","forks_url":"https://api.github.com/repos/edx/journals/forks","keys_url":"https://api.github.com/repos/edx/journals/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/journals/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/journals/teams","hooks_url":"https://api.github.com/repos/edx/journals/hooks","issue_events_url":"https://api.github.com/repos/edx/journals/issues/events{/number}","events_url":"https://api.github.com/repos/edx/journals/events","assignees_url":"https://api.github.com/repos/edx/journals/assignees{/user}","branches_url":"https://api.github.com/repos/edx/journals/branches{/branch}","tags_url":"https://api.github.com/repos/edx/journals/tags","blobs_url":"https://api.github.com/repos/edx/journals/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/journals/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/journals/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/journals/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/journals/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/journals/languages","stargazers_url":"https://api.github.com/repos/edx/journals/stargazers","contributors_url":"https://api.github.com/repos/edx/journals/contributors","subscribers_url":"https://api.github.com/repos/edx/journals/subscribers","subscription_url":"https://api.github.com/repos/edx/journals/subscription","commits_url":"https://api.github.com/repos/edx/journals/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/journals/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/journals/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/journals/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/journals/contents/{+path}","compare_url":"https://api.github.com/repos/edx/journals/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/journals/merges","archive_url":"https://api.github.com/repos/edx/journals/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/journals/downloads","issues_url":"https://api.github.com/repos/edx/journals/issues{/number}","pulls_url":"https://api.github.com/repos/edx/journals/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/journals/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/journals/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/journals/labels{/name}","releases_url":"https://api.github.com/repos/edx/journals/releases{/id}","deployments_url":"https://api.github.com/repos/edx/journals/deployments","created_at":"2018-03-21T17:23:51Z","updated_at":"2018-04-13T14:44:49Z","pushed_at":"2018-04-13T14:45:06Z","git_url":"git://github.com/edx/journals.git","ssh_url":"git@github.com:edx/journals.git","clone_url":"https://github.com/edx/journals.git","svn_url":"https://github.com/edx/journals","homepage":"","size":4150,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"cb81ea434ac915d3aa1e82b4789e1861a58cc9fd","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars3.githubusercontent.com/u/3179841?v=4","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":126215869,"name":"journals","full_name":"edx/journals","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars3.githubusercontent.com/u/3179841?v=4","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/journals","description":"Service to create and serve journals for open edX.","fork":false,"url":"https://api.github.com/repos/edx/journals","forks_url":"https://api.github.com/repos/edx/journals/forks","keys_url":"https://api.github.com/repos/edx/journals/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/journals/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/journals/teams","hooks_url":"https://api.github.com/repos/edx/journals/hooks","issue_events_url":"https://api.github.com/repos/edx/journals/issues/events{/number}","events_url":"https://api.github.com/repos/edx/journals/events","assignees_url":"https://api.github.com/repos/edx/journals/assignees{/user}","branches_url":"https://api.github.com/repos/edx/journals/branches{/branch}","tags_url":"https://api.github.com/repos/edx/journals/tags","blobs_url":"https://api.github.com/repos/edx/journals/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/journals/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/journals/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/journals/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/journals/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/journals/languages","stargazers_url":"https://api.github.com/repos/edx/journals/stargazers","contributors_url":"https://api.github.com/repos/edx/journals/contributors","subscribers_url":"https://api.github.com/repos/edx/journals/subscribers","subscription_url":"https://api.github.com/repos/edx/journals/subscription","commits_url":"https://api.github.com/repos/edx/journals/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/journals/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/journals/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/journals/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/journals/contents/{+path}","compare_url":"https://api.github.com/repos/edx/journals/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/journals/merges","archive_url":"https://api.github.com/repos/edx/journals/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/journals/downloads","issues_url":"https://api.github.com/repos/edx/journals/issues{/number}","pulls_url":"https://api.github.com/repos/edx/journals/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/journals/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/journals/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/journals/labels{/name}","releases_url":"https://api.github.com/repos/edx/journals/releases{/id}","deployments_url":"https://api.github.com/repos/edx/journals/deployments","created_at":"2018-03-21T17:23:51Z","updated_at":"2018-04-13T14:44:49Z","pushed_at":"2018-04-13T14:45:06Z","git_url":"git://github.com/edx/journals.git","ssh_url":"git@github.com:edx/journals.git","clone_url":"https://github.com/edx/journals.git","svn_url":"https://github.com/edx/journals","homepage":"","size":4150,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/journals/pulls/17"},"html":{"href":"https://github.com/edx/journals/pull/17"},"issue":{"href":"https://api.github.com/repos/edx/journals/issues/17"},"comments":{"href":"https://api.github.com/repos/edx/journals/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/journals/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/journals/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/journals/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/edx/journals/statuses/7b8a27660215d93c6acd21bd6f3592ea22cb190d"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"tuchfarber"}}