{"action":"created","comment":{"url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments/227693744","pull_request_review_id":167791716,"id":227693744,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzY5Mzc0NA==","diff_hunk":"@@ -0,0 +1,646 @@\n+from __future__ import absolute_import\n+from __future__ import unicode_literals\n+\n+import six\n+from dateutil.relativedelta import relativedelta\n+\n+from corehq.apps.userreports.models import StaticDataSourceConfiguration, get_datasource_config\n+from corehq.apps.userreports.util import get_table_name\n+from custom.icds_reports.const import AWC_LOCATION_TABLE_ID, USAGE_TABLE_ID, PERSON_TABLE_ID, HOUSEHOLD_TABLE_ID\n+\n+from custom.icds_reports.utils.aggregation import BaseICDSAggregationHelper, date_to_string, month_formatter, \\\n+    transform_day_to_month\n+\n+\n+class AggAwcAggregationHelper(BaseICDSAggregationHelper):\n+    base_tablename = 'agg_awc'\n+    infra_tablename = 'icds_dashboard_infrastructure_forms'\n+    ccs_record_tablename = 'agg_ccs_record'\n+    child_health_tablename = 'agg_child_health'\n+    awc_location_table_id = AWC_LOCATION_TABLE_ID\n+    usage_table = USAGE_TABLE_ID\n+    person_table = PERSON_TABLE_ID\n+    household_table = HOUSEHOLD_TABLE_ID\n+    daily_attendance_table = 'daily_attendance'\n+    ccs_record_monthly_table = 'ccs_record_monthly'\n+    child_health_monthly_table = 'child_health_monthly'\n+\n+    def __init__(self, month):\n+        self.month = transform_day_to_month(month)\n+\n+    @property\n+    def awc_location_tablename(self):\n+        doc_id = StaticDataSourceConfiguration.get_doc_id(self.domain, self.awc_location_table_id)\n+        config, _ = get_datasource_config(doc_id, self.domain)\n+        return get_table_name(self.domain, config.table_id)\n+\n+    @property\n+    def usage_tablename(self):\n+        doc_id = StaticDataSourceConfiguration.get_doc_id(self.domain, self.usage_table)\n+        config, _ = get_datasource_config(doc_id, self.domain)\n+        return get_table_name(self.domain, config.table_id)\n+\n+    @property\n+    def person_tablename(self):\n+        doc_id = StaticDataSourceConfiguration.get_doc_id(self.domain, self.person_table)\n+        config, _ = get_datasource_config(doc_id, self.domain)\n+        return get_table_name(self.domain, config.table_id)\n+\n+    @property\n+    def household_tablename(self):\n+        doc_id = StaticDataSourceConfiguration.get_doc_id(self.domain, self.household_table)\n+        config, _ = get_datasource_config(doc_id, self.domain)\n+        return get_table_name(self.domain, config.table_id)\n+\n+    @property\n+    def daily_attendance_tablename(self):\n+        return \"{}_{}\".format(self.daily_attendance_table, date_to_string(self.month))\n+\n+    @property\n+    def ccs_record_monthly_tablename(self):\n+        return \"{}_{}\".format(self.ccs_record_monthly_table, date_to_string(self.month))\n+\n+    @property\n+    def child_health_monthly_tablename(self):\n+        return \"{}_{}\".format(self.child_health_monthly_table, date_to_string(self.month))\n+\n+    def _tablename_func(self, agg_level):\n+        return \"{}_{}_{}\".format(self.base_tablename, date_to_string(self.month), agg_level)\n+\n+    @property\n+    def tablename(self):\n+        return self._tablename_func(5)\n+\n+    def drop_table_query(self):\n+        return 'DELETE FROM \"{}\"'.format(self.tablename)\n+\n+    def aggregate_query(self):\n+        # setup base locations and month\n+\n+        columns = (\n+            ('state_id', 'state_id'),\n+            ('district_id', 'district_id'),\n+            ('block_id', 'block_id'),\n+            ('supervisor_id', 'supervisor_id'),\n+            ('awc_id', 'doc_id as awc_id'),\n+            ('month', self.month.strftime(\"'%Y-%m-%d'\")),\n+            ('num_awcs', '1'),\n+            ('is_launched', \"'no'\"),\n+            ('aggregation_level', '5'),\n+        )\n+\n+        return \"\"\"\n+            INSERT INTO \"{tablename}\" (\n+              {columns}\n+            ) (\n+              SELECT {calculations}\n+              FROM \"{awc_location_tablename}\"\n+            )\n+        \"\"\".format(\n+            tablename=self.tablename,\n+            columns=\", \".join([col[0] for col in columns]),\n+            calculations=\", \".join([col[1] for col in columns]),\n+            awc_location_tablename=self.awc_location_tablename\n+        ), {}\n+\n+    def aggregate_daily_attendance_query(self):\n+        return \"\"\"\n+            UPDATE \"{tablename}\" agg_awc SET\n+              awc_days_open = ut.awc_days_open,\n+              awc_num_open = ut.awc_num_open,\n+              awc_days_pse_conducted = ut.awc_days_pse_conducted\n+            FROM (\n+              SELECT\n+                awc_id,\n+                month,\n+                sum(awc_open_count) as awc_days_open,\n+                CASE WHEN (sum(awc_open_count) > 0) THEN 1 ELSE 0 END AS awc_num_open,\n+                sum(pse_conducted) as awc_days_pse_conducted\n+              FROM \"{daily_attendance_tablename}\"\n+              WHERE month = %(start_date)s\n+              GROUP BY awc_id, month\n+            ) ut\n+            WHERE ut.month = agg_awc.month AND ut.awc_id = agg_awc.awc_id\n+        \"\"\".format(\n+            tablename=self.tablename,\n+            daily_attendance_tablename=self.daily_attendance_tablename\n+        ), {\n+            \"start_date\": date_to_string(self.month)\n+        }\n+\n+    def aggregate_monthly_child_health_query(self):\n+        return \"\"\"\n+            UPDATE \"{tablename}\" agg_awc SET\n+              cases_child_health = ut.cases_child_health,\n+              cases_child_health_all = ut.cases_child_health_all,\n+              wer_weighed = ut.wer_weighed,\n+              wer_eligible = ut.wer_eligible,\n+              cases_person_beneficiary_v2 = ut.cases_child_health\n+            FROM (\n+              SELECT\n+                awc_id,\n+                month,\n+                sum(valid_in_month) AS cases_child_health,\n+                sum(valid_all_registered_in_month) AS cases_child_health_all,\n+                sum(nutrition_status_weighed) AS wer_weighed,\n+                sum(wer_eligible) AS wer_eligible\n+              FROM \"{child_health_tablename}\"\n+              WHERE month = %(start_date)s and aggregation_level = 5\n+              GROUP BY awc_id, month\n+            ) ut\n+            WHERE ut.month = agg_awc.month AND ut.awc_id = agg_awc.awc_id\n+        \"\"\".format(\n+            tablename=self.tablename,\n+            child_health_tablename=self.child_health_tablename\n+        ), {\n+            \"start_date\": date_to_string(self.month)\n+        }\n+\n+    def aggregate_ccs_record_query(self):\n+        return \"\"\"\n+            UPDATE \"{tablename}\" agg_awc SET\n+              cases_ccs_pregnant = ut.cases_ccs_pregnant,\n+              cases_ccs_lactating = ut.cases_ccs_lactating,\n+              cases_ccs_pregnant_all = ut.cases_ccs_pregnant_all,\n+              cases_ccs_lactating_all = ut.cases_ccs_lactating_all,\n+              cases_person_beneficiary_v2 = (\n+                COALESCE(cases_person_beneficiary_v2, 0) + ut.cases_ccs_pregnant + ut.cases_ccs_lactating\n+              )\n+            FROM (SELECT\n+              awc_id,\n+              month,\n+              sum(pregnant) AS cases_ccs_pregnant,\n+              sum(lactating) AS cases_ccs_lactating,\n+              sum(pregnant_all) AS cases_ccs_pregnant_all,\n+              sum(lactating_all) AS cases_ccs_lactating_all\n+              FROM \"{ccs_record_tablename}\"\n+              WHERE month = %(start_date)s AND aggregation_level = 5 GROUP BY awc_id, month) ut\n+            WHERE ut.month = agg_awc.month AND ut.awc_id = agg_awc.awc_id;\n+        \"\"\".format(\n+            tablename=self.tablename,\n+            ccs_record_tablename=self.ccs_record_tablename\n+        ), {\n+            \"start_date\": date_to_string(self.month)\n+        }\n+\n+    def aggregate_household_query(self):\n+        return \"\"\"\n+            UPDATE \"{tablename}\" agg_awc SET\n+              cases_household = ut.cases_household\n+            FROM (\n+              SELECT\n+                owner_id,\n+                sum(open_count) as cases_household\n+              FROM \"{household_tablename}\"\n+              GROUP BY owner_id\n+            ) ut\n+            WHERE ut.owner_id = agg_awc.awc_id\n+        \"\"\".format(\n+            tablename=self.tablename,\n+            household_tablename=self.household_tablename\n+        ), {}\n+\n+    def aggregate_person_query(self):\n+        end_month = self.month + relativedelta(months=1) - relativedelta(days=1)\n+        month_end_11yr = end_month - relativedelta(years=11)\n+        month_start_15yr = self.month - relativedelta(years=15)\n+        month_end_15yr = end_month - relativedelta(years=15)\n+        month_start_18yr = self.month - relativedelta(years=18)\n+        return \"\"\"\n+            UPDATE \"{tablename}\" agg_awc SET\n+              cases_person = ut.cases_person,\n+              cases_person_all = ut.cases_person_all,\n+              cases_person_adolescent_girls_11_14 = ut.cases_person_adolescent_girls_11_14,\n+              cases_person_adolescent_girls_11_14_all = ut.cases_person_adolescent_girls_11_14_all,\n+              cases_person_adolescent_girls_15_18 = ut.cases_person_adolescent_girls_15_18,\n+              cases_person_adolescent_girls_15_18_all = ut.cases_person_adolescent_girls_15_18_all,\n+              cases_person_referred = ut.cases_person_referred\n+            FROM (\n+              SELECT\n+                awc_id,\n+                sum(seeking_services) AS cases_person,\n+                sum(count) AS cases_person_all,\n+                sum(\n+                  CASE (\n+                    WHEN %(month_end_11yr)s > dob AND %(month_start_15yr)s <= dob AND sex = 'F'\n+                    ) THEN seeking_services \n+                  ELSE 0 END\n+                ) as cases_person_adolescent_girls_11_14,\n+                sum(\n+                  CASE WHEN %(month_end_11yr)s > dob AND %(month_start_15yr)s <= dob AND sex = 'F' THEN 1 \n+                  ELSE 0 END\n+                ) as cases_person_adolescent_girls_11_14_all,\n+                sum(\n+                  CASE (\n+                    WHEN %(month_end_15yr)s > dob AND %(month_start_18yr)s <= dob AND sex = 'F'\n+                    ) THEN seeking_services \n+                  ELSE 0 END\n+                ) as cases_person_adolescent_girls_15_18,\n+                sum(\n+                  CASE WHEN %(month_end_15yr)s > dob AND %(month_start_18yr)s <= dob AND sex = 'F' THEN 1 \n+                  ELSE 0 END\n+                ) as cases_person_adolescent_girls_15_18_all,\n+                sum(\n+                  CASE WHEN last_referral_date BETWEEN %(start_date)s AND %(end_date)s THEN 1 ","path":"custom/icds_reports/utils/aggregation_helpers/agg_awc.py","position":244,"original_position":244,"commit_id":"5bbbb7ae11b2554378e8579a44da3697b8a5e1a2","original_commit_id":"5bbbb7ae11b2554378e8579a44da3697b8a5e1a2","user":{"login":"stickler-ci","id":16011037,"node_id":"MDQ6VXNlcjE2MDExMDM3","avatar_url":"https://avatars3.githubusercontent.com/u/16011037?v=4","gravatar_id":"","url":"https://api.github.com/users/stickler-ci","html_url":"https://github.com/stickler-ci","followers_url":"https://api.github.com/users/stickler-ci/followers","following_url":"https://api.github.com/users/stickler-ci/following{/other_user}","gists_url":"https://api.github.com/users/stickler-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/stickler-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stickler-ci/subscriptions","organizations_url":"https://api.github.com/users/stickler-ci/orgs","repos_url":"https://api.github.com/users/stickler-ci/repos","events_url":"https://api.github.com/users/stickler-ci/events{/privacy}","received_events_url":"https://api.github.com/users/stickler-ci/received_events","type":"User","site_admin":false},"body":"W291 trailing whitespace","created_at":"2018-10-24T08:43:54Z","updated_at":"2018-10-24T08:43:56Z","html_url":"https://github.com/dimagi/commcare-hq/pull/22143#discussion_r227693744","pull_request_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/22143","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments/227693744"},"html":{"href":"https://github.com/dimagi/commcare-hq/pull/22143#discussion_r227693744"},"pull_request":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/22143"}}},"pull_request":{"url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/22143","id":224995970,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0OTk1OTcw","html_url":"https://github.com/dimagi/commcare-hq/pull/22143","diff_url":"https://github.com/dimagi/commcare-hq/pull/22143.diff","patch_url":"https://github.com/dimagi/commcare-hq/pull/22143.patch","issue_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/22143","number":22143,"state":"open","locked":false,"title":"[ICDS] Added is_test for all locations","user":{"login":"lwyszomi","id":429541,"node_id":"MDQ6VXNlcjQyOTU0MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/429541?v=4","gravatar_id":"","url":"https://api.github.com/users/lwyszomi","html_url":"https://github.com/lwyszomi","followers_url":"https://api.github.com/users/lwyszomi/followers","following_url":"https://api.github.com/users/lwyszomi/following{/other_user}","gists_url":"https://api.github.com/users/lwyszomi/gists{/gist_id}","starred_url":"https://api.github.com/users/lwyszomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwyszomi/subscriptions","organizations_url":"https://api.github.com/users/lwyszomi/orgs","repos_url":"https://api.github.com/users/lwyszomi/repos","events_url":"https://api.github.com/users/lwyszomi/events{/privacy}","received_events_url":"https://api.github.com/users/lwyszomi/received_events","type":"User","site_admin":false},"body":"Hi @calellowitz @emord \r\n\r\nI added changes mentioned in this case: http://manage.dimagi.com/default.asp?282106\r\n\r\nAlso, I moved all touched by me SQL aggregations to the python implementation. I didn't add new tests to show that all my changes work the same when we had them in SQL aggregations. I will add tests in other PR after when I add is_test to the rest of aggregations.\r\n\r\nPlease let me know if you have any questions.\r\n\r\nRegards,\r\nŁukasz","created_at":"2018-10-23T11:13:26Z","updated_at":"2018-10-24T08:43:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dfa065b5545c14035c9dbfb51ba5f8a034bee6ab","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/22143/commits","review_comments_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/22143/comments","review_comment_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/22143/comments","statuses_url":"https://api.github.com/repos/dimagi/commcare-hq/statuses/5bbbb7ae11b2554378e8579a44da3697b8a5e1a2","head":{"label":"lwyszomi:lw/icds-test-locations","ref":"lw/icds-test-locations","sha":"5bbbb7ae11b2554378e8579a44da3697b8a5e1a2","user":{"login":"lwyszomi","id":429541,"node_id":"MDQ6VXNlcjQyOTU0MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/429541?v=4","gravatar_id":"","url":"https://api.github.com/users/lwyszomi","html_url":"https://github.com/lwyszomi","followers_url":"https://api.github.com/users/lwyszomi/followers","following_url":"https://api.github.com/users/lwyszomi/following{/other_user}","gists_url":"https://api.github.com/users/lwyszomi/gists{/gist_id}","starred_url":"https://api.github.com/users/lwyszomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwyszomi/subscriptions","organizations_url":"https://api.github.com/users/lwyszomi/orgs","repos_url":"https://api.github.com/users/lwyszomi/repos","events_url":"https://api.github.com/users/lwyszomi/events{/privacy}","received_events_url":"https://api.github.com/users/lwyszomi/received_events","type":"User","site_admin":false},"repo":{"id":12557346,"node_id":"MDEwOlJlcG9zaXRvcnkxMjU1NzM0Ng==","name":"commcare-hq","full_name":"lwyszomi/commcare-hq","private":false,"owner":{"login":"lwyszomi","id":429541,"node_id":"MDQ6VXNlcjQyOTU0MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/429541?v=4","gravatar_id":"","url":"https://api.github.com/users/lwyszomi","html_url":"https://github.com/lwyszomi","followers_url":"https://api.github.com/users/lwyszomi/followers","following_url":"https://api.github.com/users/lwyszomi/following{/other_user}","gists_url":"https://api.github.com/users/lwyszomi/gists{/gist_id}","starred_url":"https://api.github.com/users/lwyszomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwyszomi/subscriptions","organizations_url":"https://api.github.com/users/lwyszomi/orgs","repos_url":"https://api.github.com/users/lwyszomi/repos","events_url":"https://api.github.com/users/lwyszomi/events{/privacy}","received_events_url":"https://api.github.com/users/lwyszomi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/lwyszomi/commcare-hq","description":"A server-side tool to help manage community health workers, written in Django","fork":true,"url":"https://api.github.com/repos/lwyszomi/commcare-hq","forks_url":"https://api.github.com/repos/lwyszomi/commcare-hq/forks","keys_url":"https://api.github.com/repos/lwyszomi/commcare-hq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lwyszomi/commcare-hq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lwyszomi/commcare-hq/teams","hooks_url":"https://api.github.com/repos/lwyszomi/commcare-hq/hooks","issue_events_url":"https://api.github.com/repos/lwyszomi/commcare-hq/issues/events{/number}","events_url":"https://api.github.com/repos/lwyszomi/commcare-hq/events","assignees_url":"https://api.github.com/repos/lwyszomi/commcare-hq/assignees{/user}","branches_url":"https://api.github.com/repos/lwyszomi/commcare-hq/branches{/branch}","tags_url":"https://api.github.com/repos/lwyszomi/commcare-hq/tags","blobs_url":"https://api.github.com/repos/lwyszomi/commcare-hq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lwyszomi/commcare-hq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lwyszomi/commcare-hq/git/refs{/sha}","trees_url":"https://api.github.com/repos/lwyszomi/commcare-hq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lwyszomi/commcare-hq/statuses/{sha}","languages_url":"https://api.github.com/repos/lwyszomi/commcare-hq/languages","stargazers_url":"https://api.github.com/repos/lwyszomi/commcare-hq/stargazers","contributors_url":"https://api.github.com/repos/lwyszomi/commcare-hq/contributors","subscribers_url":"https://api.github.com/repos/lwyszomi/commcare-hq/subscribers","subscription_url":"https://api.github.com/repos/lwyszomi/commcare-hq/subscription","commits_url":"https://api.github.com/repos/lwyszomi/commcare-hq/commits{/sha}","git_commits_url":"https://api.github.com/repos/lwyszomi/commcare-hq/git/commits{/sha}","comments_url":"https://api.github.com/repos/lwyszomi/commcare-hq/comments{/number}","issue_comment_url":"https://api.github.com/repos/lwyszomi/commcare-hq/issues/comments{/number}","contents_url":"https://api.github.com/repos/lwyszomi/commcare-hq/contents/{+path}","compare_url":"https://api.github.com/repos/lwyszomi/commcare-hq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lwyszomi/commcare-hq/merges","archive_url":"https://api.github.com/repos/lwyszomi/commcare-hq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lwyszomi/commcare-hq/downloads","issues_url":"https://api.github.com/repos/lwyszomi/commcare-hq/issues{/number}","pulls_url":"https://api.github.com/repos/lwyszomi/commcare-hq/pulls{/number}","milestones_url":"https://api.github.com/repos/lwyszomi/commcare-hq/milestones{/number}","notifications_url":"https://api.github.com/repos/lwyszomi/commcare-hq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lwyszomi/commcare-hq/labels{/name}","releases_url":"https://api.github.com/repos/lwyszomi/commcare-hq/releases{/id}","deployments_url":"https://api.github.com/repos/lwyszomi/commcare-hq/deployments","created_at":"2013-09-03T07:05:35Z","updated_at":"2018-05-21T14:56:53Z","pushed_at":"2018-10-24T08:42:05Z","git_url":"git://github.com/lwyszomi/commcare-hq.git","ssh_url":"git@github.com:lwyszomi/commcare-hq.git","clone_url":"https://github.com/lwyszomi/commcare-hq.git","svn_url":"https://github.com/lwyszomi/commcare-hq","homepage":"http://www.commcarehq.org","size":417148,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dimagi:master","ref":"master","sha":"38eff6235852bee5c052ae779056ec79ff06e033","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":247278,"node_id":"MDEwOlJlcG9zaXRvcnkyNDcyNzg=","name":"commcare-hq","full_name":"dimagi/commcare-hq","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-hq","description":"A server-side tool to help manage community health workers, written in Django","fork":false,"url":"https://api.github.com/repos/dimagi/commcare-hq","forks_url":"https://api.github.com/repos/dimagi/commcare-hq/forks","keys_url":"https://api.github.com/repos/dimagi/commcare-hq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimagi/commcare-hq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimagi/commcare-hq/teams","hooks_url":"https://api.github.com/repos/dimagi/commcare-hq/hooks","issue_events_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/events{/number}","events_url":"https://api.github.com/repos/dimagi/commcare-hq/events","assignees_url":"https://api.github.com/repos/dimagi/commcare-hq/assignees{/user}","branches_url":"https://api.github.com/repos/dimagi/commcare-hq/branches{/branch}","tags_url":"https://api.github.com/repos/dimagi/commcare-hq/tags","blobs_url":"https://api.github.com/repos/dimagi/commcare-hq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimagi/commcare-hq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimagi/commcare-hq/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimagi/commcare-hq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimagi/commcare-hq/statuses/{sha}","languages_url":"https://api.github.com/repos/dimagi/commcare-hq/languages","stargazers_url":"https://api.github.com/repos/dimagi/commcare-hq/stargazers","contributors_url":"https://api.github.com/repos/dimagi/commcare-hq/contributors","subscribers_url":"https://api.github.com/repos/dimagi/commcare-hq/subscribers","subscription_url":"https://api.github.com/repos/dimagi/commcare-hq/subscription","commits_url":"https://api.github.com/repos/dimagi/commcare-hq/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimagi/commcare-hq/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimagi/commcare-hq/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimagi/commcare-hq/contents/{+path}","compare_url":"https://api.github.com/repos/dimagi/commcare-hq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimagi/commcare-hq/merges","archive_url":"https://api.github.com/repos/dimagi/commcare-hq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimagi/commcare-hq/downloads","issues_url":"https://api.github.com/repos/dimagi/commcare-hq/issues{/number}","pulls_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls{/number}","milestones_url":"https://api.github.com/repos/dimagi/commcare-hq/milestones{/number}","notifications_url":"https://api.github.com/repos/dimagi/commcare-hq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimagi/commcare-hq/labels{/name}","releases_url":"https://api.github.com/repos/dimagi/commcare-hq/releases{/id}","deployments_url":"https://api.github.com/repos/dimagi/commcare-hq/deployments","created_at":"2009-07-09T17:00:07Z","updated_at":"2018-10-24T05:19:04Z","pushed_at":"2018-10-24T08:42:09Z","git_url":"git://github.com/dimagi/commcare-hq.git","ssh_url":"git@github.com:dimagi/commcare-hq.git","clone_url":"https://github.com/dimagi/commcare-hq.git","svn_url":"https://github.com/dimagi/commcare-hq","homepage":"https://www.commcarehq.org","size":468220,"stargazers_count":319,"watchers_count":319,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":123,"mirror_url":null,"archived":false,"open_issues_count":75,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":123,"open_issues":75,"watchers":319,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/22143"},"html":{"href":"https://github.com/dimagi/commcare-hq/pull/22143"},"issue":{"href":"https://api.github.com/repos/dimagi/commcare-hq/issues/22143"},"comments":{"href":"https://api.github.com/repos/dimagi/commcare-hq/issues/22143/comments"},"review_comments":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/22143/comments"},"review_comment":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/22143/commits"},"statuses":{"href":"https://api.github.com/repos/dimagi/commcare-hq/statuses/5bbbb7ae11b2554378e8579a44da3697b8a5e1a2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"stickler-ci"}}