{"action":"created","comment":{"url":"https://api.github.com/repos/dimagi/commcare-cloud/pulls/comments/224443130","pull_request_review_id":163809248,"id":224443130,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDQ0MzEzMA==","diff_hunk":"@@ -209,7 +209,18 @@ MOBILE_INTEGRATION_TEST_TOKEN = '{{ MOBILE_INTEGRATION_TEST_TOKEN }}'\n \n ####### For Constructing Global URLs ########\n \n-LOCAL_APPS = ('dimagi.utils', 'gunicorn',)\n+LOCAL_APPS = (\n+    'dimagi.utils',\n+    'gunicorn',\n+    {% for entry in LOCAL_APPS.apps %}\n+    {% if inventory_hostname in groups[entry.host] %}\n+    '{{ entry.name }}'","path":"src/commcare_cloud/ansible/roles/commcarehq/templates/localsettings.py.j2","position":null,"original_position":10,"commit_id":"692ac06cb82493d4ee9f2482fe9ed69e01d676cf","original_commit_id":"3c61731ed928debc39927158361acb12d7f957f5","user":{"login":"pr33thi","id":35747290,"node_id":"MDQ6VXNlcjM1NzQ3Mjkw","avatar_url":"https://avatars3.githubusercontent.com/u/35747290?v=4","gravatar_id":"","url":"https://api.github.com/users/pr33thi","html_url":"https://github.com/pr33thi","followers_url":"https://api.github.com/users/pr33thi/followers","following_url":"https://api.github.com/users/pr33thi/following{/other_user}","gists_url":"https://api.github.com/users/pr33thi/gists{/gist_id}","starred_url":"https://api.github.com/users/pr33thi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pr33thi/subscriptions","organizations_url":"https://api.github.com/users/pr33thi/orgs","repos_url":"https://api.github.com/users/pr33thi/repos","events_url":"https://api.github.com/users/pr33thi/events{/privacy}","received_events_url":"https://api.github.com/users/pr33thi/received_events","type":"User","site_admin":false},"body":"Makes sense, https://github.com/dimagi/commcare-cloud/pull/2248/commits/692ac06cb82493d4ee9f2482fe9ed69e01d676cf","created_at":"2018-10-11T13:16:35Z","updated_at":"2018-10-11T13:16:35Z","html_url":"https://github.com/dimagi/commcare-cloud/pull/2248#discussion_r224443130","pull_request_url":"https://api.github.com/repos/dimagi/commcare-cloud/pulls/2248","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/dimagi/commcare-cloud/pulls/comments/224443130"},"html":{"href":"https://github.com/dimagi/commcare-cloud/pull/2248#discussion_r224443130"},"pull_request":{"href":"https://api.github.com/repos/dimagi/commcare-cloud/pulls/2248"}},"in_reply_to_id":224421886},"pull_request":{"url":"https://api.github.com/repos/dimagi/commcare-cloud/pulls/2248","id":221864317,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxODY0MzE3","html_url":"https://github.com/dimagi/commcare-cloud/pull/2248","diff_url":"https://github.com/dimagi/commcare-cloud/pull/2248.diff","patch_url":"https://github.com/dimagi/commcare-cloud/pull/2248.patch","issue_url":"https://api.github.com/repos/dimagi/commcare-cloud/issues/2248","number":2248,"state":"open","locked":false,"title":"Conditionally add the ddtrace app to LOCAL_APPS if the hostname matches","user":{"login":"pr33thi","id":35747290,"node_id":"MDQ6VXNlcjM1NzQ3Mjkw","avatar_url":"https://avatars3.githubusercontent.com/u/35747290?v=4","gravatar_id":"","url":"https://api.github.com/users/pr33thi","html_url":"https://github.com/pr33thi","followers_url":"https://api.github.com/users/pr33thi/followers","following_url":"https://api.github.com/users/pr33thi/following{/other_user}","gists_url":"https://api.github.com/users/pr33thi/gists{/gist_id}","starred_url":"https://api.github.com/users/pr33thi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pr33thi/subscriptions","organizations_url":"https://api.github.com/users/pr33thi/orgs","repos_url":"https://api.github.com/users/pr33thi/repos","events_url":"https://api.github.com/users/pr33thi/events{/privacy}","received_events_url":"https://api.github.com/users/pr33thi/received_events","type":"User","site_admin":false},"body":"[Fogbugz ticket](https://manage.dimagi.com/default.asp?284131)\r\nSince I can't test this, I feel like it isn't actually ready for review, but here's what I've come up with so far. Somehow `{% if host == inventory_hostname %}` doesn't feel right to me, but I want it to only apply this change on hosts that match what is specified in public.yml \r\n\r\n@emord \r\ncode buddy @jmtroth0 ","created_at":"2018-10-10T17:01:16Z","updated_at":"2018-10-11T13:16:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36e8a636cffa996a7d03add1d2dc163a26a261bf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dimagi/commcare-cloud/pulls/2248/commits","review_comments_url":"https://api.github.com/repos/dimagi/commcare-cloud/pulls/2248/comments","review_comment_url":"https://api.github.com/repos/dimagi/commcare-cloud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dimagi/commcare-cloud/issues/2248/comments","statuses_url":"https://api.github.com/repos/dimagi/commcare-cloud/statuses/692ac06cb82493d4ee9f2482fe9ed69e01d676cf","head":{"label":"dimagi:pv/ddtrace-settings","ref":"pv/ddtrace-settings","sha":"692ac06cb82493d4ee9f2482fe9ed69e01d676cf","user":{"login":"dimagi","id":94514,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0NTE0","avatar_url":"https://avatars1.githubusercontent.com/u/94514?v=4","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"repo":{"id":22074543,"node_id":"MDEwOlJlcG9zaXRvcnkyMjA3NDU0Mw==","name":"commcare-cloud","full_name":"dimagi/commcare-cloud","private":false,"owner":{"login":"dimagi","id":94514,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0NTE0","avatar_url":"https://avatars1.githubusercontent.com/u/94514?v=4","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dimagi/commcare-cloud","description":"Tools for standing up and managing a CommCare HQ server environment","fork":false,"url":"https://api.github.com/repos/dimagi/commcare-cloud","forks_url":"https://api.github.com/repos/dimagi/commcare-cloud/forks","keys_url":"https://api.github.com/repos/dimagi/commcare-cloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimagi/commcare-cloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimagi/commcare-cloud/teams","hooks_url":"https://api.github.com/repos/dimagi/commcare-cloud/hooks","issue_events_url":"https://api.github.com/repos/dimagi/commcare-cloud/issues/events{/number}","events_url":"https://api.github.com/repos/dimagi/commcare-cloud/events","assignees_url":"https://api.github.com/repos/dimagi/commcare-cloud/assignees{/user}","branches_url":"https://api.github.com/repos/dimagi/commcare-cloud/branches{/branch}","tags_url":"https://api.github.com/repos/dimagi/commcare-cloud/tags","blobs_url":"https://api.github.com/repos/dimagi/commcare-cloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimagi/commcare-cloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimagi/commcare-cloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimagi/commcare-cloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimagi/commcare-cloud/statuses/{sha}","languages_url":"https://api.github.com/repos/dimagi/commcare-cloud/languages","stargazers_url":"https://api.github.com/repos/dimagi/commcare-cloud/stargazers","contributors_url":"https://api.github.com/repos/dimagi/commcare-cloud/contributors","subscribers_url":"https://api.github.com/repos/dimagi/commcare-cloud/subscribers","subscription_url":"https://api.github.com/repos/dimagi/commcare-cloud/subscription","commits_url":"https://api.github.com/repos/dimagi/commcare-cloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimagi/commcare-cloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimagi/commcare-cloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimagi/commcare-cloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimagi/commcare-cloud/contents/{+path}","compare_url":"https://api.github.com/repos/dimagi/commcare-cloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimagi/commcare-cloud/merges","archive_url":"https://api.github.com/repos/dimagi/commcare-cloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimagi/commcare-cloud/downloads","issues_url":"https://api.github.com/repos/dimagi/commcare-cloud/issues{/number}","pulls_url":"https://api.github.com/repos/dimagi/commcare-cloud/pulls{/number}","milestones_url":"https://api.github.com/repos/dimagi/commcare-cloud/milestones{/number}","notifications_url":"https://api.github.com/repos/dimagi/commcare-cloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimagi/commcare-cloud/labels{/name}","releases_url":"https://api.github.com/repos/dimagi/commcare-cloud/releases{/id}","deployments_url":"https://api.github.com/repos/dimagi/commcare-cloud/deployments","created_at":"2014-07-21T18:04:26Z","updated_at":"2018-10-11T07:57:05Z","pushed_at":"2018-10-11T13:07:35Z","git_url":"git://github.com/dimagi/commcare-cloud.git","ssh_url":"git@github.com:dimagi/commcare-cloud.git","clone_url":"https://github.com/dimagi/commcare-cloud.git","svn_url":"https://github.com/dimagi/commcare-cloud","homepage":"https://dimagi.github.io/commcare-cloud/","size":11884,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":38,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":12,"open_issues":38,"watchers":10,"default_branch":"master"}},"base":{"label":"dimagi:master","ref":"master","sha":"611013e9a2f603b0703a72b4e25f69ae180f516d","user":{"login":"dimagi","id":94514,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0NTE0","avatar_url":"https://avatars1.githubusercontent.com/u/94514?v=4","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"repo":{"id":22074543,"node_id":"MDEwOlJlcG9zaXRvcnkyMjA3NDU0Mw==","name":"commcare-cloud","full_name":"dimagi/commcare-cloud","private":false,"owner":{"login":"dimagi","id":94514,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0NTE0","avatar_url":"https://avatars1.githubusercontent.com/u/94514?v=4","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dimagi/commcare-cloud","description":"Tools for standing up and managing a CommCare HQ server environment","fork":false,"url":"https://api.github.com/repos/dimagi/commcare-cloud","forks_url":"https://api.github.com/repos/dimagi/commcare-cloud/forks","keys_url":"https://api.github.com/repos/dimagi/commcare-cloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimagi/commcare-cloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimagi/commcare-cloud/teams","hooks_url":"https://api.github.com/repos/dimagi/commcare-cloud/hooks","issue_events_url":"https://api.github.com/repos/dimagi/commcare-cloud/issues/events{/number}","events_url":"https://api.github.com/repos/dimagi/commcare-cloud/events","assignees_url":"https://api.github.com/repos/dimagi/commcare-cloud/assignees{/user}","branches_url":"https://api.github.com/repos/dimagi/commcare-cloud/branches{/branch}","tags_url":"https://api.github.com/repos/dimagi/commcare-cloud/tags","blobs_url":"https://api.github.com/repos/dimagi/commcare-cloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimagi/commcare-cloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimagi/commcare-cloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimagi/commcare-cloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimagi/commcare-cloud/statuses/{sha}","languages_url":"https://api.github.com/repos/dimagi/commcare-cloud/languages","stargazers_url":"https://api.github.com/repos/dimagi/commcare-cloud/stargazers","contributors_url":"https://api.github.com/repos/dimagi/commcare-cloud/contributors","subscribers_url":"https://api.github.com/repos/dimagi/commcare-cloud/subscribers","subscription_url":"https://api.github.com/repos/dimagi/commcare-cloud/subscription","commits_url":"https://api.github.com/repos/dimagi/commcare-cloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimagi/commcare-cloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimagi/commcare-cloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimagi/commcare-cloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimagi/commcare-cloud/contents/{+path}","compare_url":"https://api.github.com/repos/dimagi/commcare-cloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimagi/commcare-cloud/merges","archive_url":"https://api.github.com/repos/dimagi/commcare-cloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimagi/commcare-cloud/downloads","issues_url":"https://api.github.com/repos/dimagi/commcare-cloud/issues{/number}","pulls_url":"https://api.github.com/repos/dimagi/commcare-cloud/pulls{/number}","milestones_url":"https://api.github.com/repos/dimagi/commcare-cloud/milestones{/number}","notifications_url":"https://api.github.com/repos/dimagi/commcare-cloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimagi/commcare-cloud/labels{/name}","releases_url":"https://api.github.com/repos/dimagi/commcare-cloud/releases{/id}","deployments_url":"https://api.github.com/repos/dimagi/commcare-cloud/deployments","created_at":"2014-07-21T18:04:26Z","updated_at":"2018-10-11T07:57:05Z","pushed_at":"2018-10-11T13:07:35Z","git_url":"git://github.com/dimagi/commcare-cloud.git","ssh_url":"git@github.com:dimagi/commcare-cloud.git","clone_url":"https://github.com/dimagi/commcare-cloud.git","svn_url":"https://github.com/dimagi/commcare-cloud","homepage":"https://dimagi.github.io/commcare-cloud/","size":11884,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":38,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":12,"open_issues":38,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dimagi/commcare-cloud/pulls/2248"},"html":{"href":"https://github.com/dimagi/commcare-cloud/pull/2248"},"issue":{"href":"https://api.github.com/repos/dimagi/commcare-cloud/issues/2248"},"comments":{"href":"https://api.github.com/repos/dimagi/commcare-cloud/issues/2248/comments"},"review_comments":{"href":"https://api.github.com/repos/dimagi/commcare-cloud/pulls/2248/comments"},"review_comment":{"href":"https://api.github.com/repos/dimagi/commcare-cloud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dimagi/commcare-cloud/pulls/2248/commits"},"statuses":{"href":"https://api.github.com/repos/dimagi/commcare-cloud/statuses/692ac06cb82493d4ee9f2482fe9ed69e01d676cf"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"pr33thi"}}