{"action":"created","comment":{"url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments/45380934","id":45380934,"diff_hunk":"@@ -116,3 +137,387 @@ def get_app_sources(domain):\n         }\n         for app in apps\n     }\n+\n+\n+class ApplicationDataRMIHelper(object):\n+    \"\"\"ApplicationDataRMIHelper is meant to generate the response for the\n+    djangoRMI methods required to initialize form controlled by\n+    hq.app_data_drilldown.ng.js.\n+\n+    Note / todo: This Helper should be merged with ApplicationDataSourceUIHelper.\n+    Holding off to a different PR, as I want to isolate QA to just the exports\n+    (the first thing to use this) --Biyeun\n+\n+    \"\"\"\n+    UNKNOWN_SOURCE = '_unknown'\n+\n+    APP_TYPE_ALL = 'all'\n+    APP_TYPE_DELETED = 'deleted'\n+    APP_TYPE_REMOTE = 'remote'\n+    APP_TYPE_NONE = 'no_app'\n+\n+    def __init__(self, domain, as_dict=True, form_placeholders=None, case_placeholders=None):\n+        self.domain = domain\n+        self.as_dict = as_dict\n+        default_form_placeholder = AppFormRMIPlaceholder(\n+            application=_(\"Select Application\"),\n+            module=_(\"Select Module\"),\n+            form=_(\"Select Form\"),\n+        )\n+        self.form_placeholders = form_placeholders or default_form_placeholder\n+        default_case_placeholder = AppCaseRMIPlaceholder(\n+            application=_(\"Select Application\"),\n+            case_type=_(\"Select Case Type\"),\n+        )\n+        self.case_placeholders = case_placeholders or default_case_placeholder\n+        if self.as_dict:\n+            self.form_placeholders = self.form_placeholders._asdict()\n+            self.case_placeholders = self.case_placeholders._asdict()\n+\n+    def _get_form_results(self):\n+        return XFormInstance.get_db().view(","path":"corehq/apps/app_manager/fields.py","position":77,"original_position":77,"commit_id":"7ad25256db588aa02609708743c101f8bad20df5","original_commit_id":"7ad25256db588aa02609708743c101f8bad20df5","user":{"login":"biyeun","id":716573,"avatar_url":"https://avatars.githubusercontent.com/u/716573?v=3","gravatar_id":"","url":"https://api.github.com/users/biyeun","html_url":"https://github.com/biyeun","followers_url":"https://api.github.com/users/biyeun/followers","following_url":"https://api.github.com/users/biyeun/following{/other_user}","gists_url":"https://api.github.com/users/biyeun/gists{/gist_id}","starred_url":"https://api.github.com/users/biyeun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biyeun/subscriptions","organizations_url":"https://api.github.com/users/biyeun/orgs","repos_url":"https://api.github.com/users/biyeun/repos","events_url":"https://api.github.com/users/biyeun/events{/privacy}","received_events_url":"https://api.github.com/users/biyeun/received_events","type":"User","site_admin":false},"body":"ok will make a few small follow-up PRs to address this before lifting the feature flag.\r\nhttp://manage.dimagi.com/default.asp?187459","created_at":"2015-11-19T18:37:14Z","updated_at":"2015-11-19T18:37:14Z","html_url":"https://github.com/dimagi/commcare-hq/pull/8399#discussion_r45380934","pull_request_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/8399","_links":{"self":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments/45380934"},"html":{"href":"https://github.com/dimagi/commcare-hq/pull/8399#discussion_r45380934"},"pull_request":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/8399"}}},"pull_request":{"url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/8399","id":46217595,"html_url":"https://github.com/dimagi/commcare-hq/pull/8399","diff_url":"https://github.com/dimagi/commcare-hq/pull/8399.diff","patch_url":"https://github.com/dimagi/commcare-hq/pull/8399.patch","issue_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/8399","number":8399,"state":"open","locked":false,"title":"Major Changes to Exports UI and Workflows","user":{"login":"biyeun","id":716573,"avatar_url":"https://avatars.githubusercontent.com/u/716573?v=3","gravatar_id":"","url":"https://api.github.com/users/biyeun","html_url":"https://github.com/biyeun","followers_url":"https://api.github.com/users/biyeun/followers","following_url":"https://api.github.com/users/biyeun/following{/other_user}","gists_url":"https://api.github.com/users/biyeun/gists{/gist_id}","starred_url":"https://api.github.com/users/biyeun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biyeun/subscriptions","organizations_url":"https://api.github.com/users/biyeun/orgs","repos_url":"https://api.github.com/users/biyeun/repos","events_url":"https://api.github.com/users/biyeun/events{/privacy}","received_events_url":"https://api.github.com/users/biyeun/received_events","type":"User","site_admin":false},"body":"Spec: https://docs.google.com/document/d/1mK7OTSEPUUFOt-eQbsiHAoQjHitAKijkQp6uD6WrosU/edit\r\n\r\nGoals:\r\n- Try to load small portions of the page asynchronously so that exports feel faster and more responsive to the user.\r\n- Improve workflow by removing exports from the reporting framework, and changing when the user applies filters to the export and how the export is downloaded.\r\n\r\nPreviews:\r\n<img width=\"1163\" alt=\"screen shot 2015-09-28 at 6 41 23 pm\" src=\"https://cloud.githubusercontent.com/assets/716573/10150984/0bdb4a8e-6611-11e5-8275-01db5c923129.png\">\r\n<img width=\"831\" alt=\"screen shot 2015-09-28 at 6 41 39 pm\" src=\"https://cloud.githubusercontent.com/assets/716573/10150983/0bdb0d8a-6611-11e5-8363-56e080dd5883.png\">\r\n<img width=\"1199\" alt=\"screen shot 2015-09-28 at 6 41 56 pm\" src=\"https://cloud.githubusercontent.com/assets/716573/10150981/0bdaa8ae-6611-11e5-910f-9c0c40ae6a2d.png\">\r\n<img width=\"966\" alt=\"screen shot 2015-09-28 at 6 42 07 pm\" src=\"https://cloud.githubusercontent.com/assets/716573/10150985/0bde97f2-6611-11e5-91e6-a910ed6fb562.png\">\r\n<img width=\"685\" alt=\"screen shot 2015-09-28 at 6 42 18 pm\" src=\"https://cloud.githubusercontent.com/assets/716573/10150982/0bdaca32-6611-11e5-8b4b-32b7d4ba9be4.png\">\r\n","created_at":"2015-09-28T22:45:19Z","updated_at":"2015-11-19T18:37:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ef645e540d40f7df24f5cfce967d48332532c05","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/8399/commits","review_comments_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/8399/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/8399/comments","statuses_url":"https://api.github.com/repos/dimagi/commcare-hq/statuses/7ad25256db588aa02609708743c101f8bad20df5","head":{"label":"dimagi:exports-ui-changes","ref":"exports-ui-changes","sha":"7ad25256db588aa02609708743c101f8bad20df5","user":{"login":"dimagi","id":94514,"avatar_url":"https://avatars.githubusercontent.com/u/94514?v=3","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,"name":"commcare-hq","full_name":"dimagi/commcare-hq","owner":{"login":"dimagi","id":94514,"avatar_url":"https://avatars.githubusercontent.com/u/94514?v=3","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},"private":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}","created_at":"2009-07-09T17:00:07Z","updated_at":"2015-11-05T13:41:38Z","pushed_at":"2015-11-19T18:33:32Z","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":"http://www.commcarehq.org","size":233678,"stargazers_count":54,"watchers_count":54,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":63,"mirror_url":null,"open_issues_count":57,"forks":63,"open_issues":57,"watchers":54,"default_branch":"master"}},"base":{"label":"dimagi:master","ref":"master","sha":"0c98fdfaad1a303fe0850da33012032e13372697","user":{"login":"dimagi","id":94514,"avatar_url":"https://avatars.githubusercontent.com/u/94514?v=3","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,"name":"commcare-hq","full_name":"dimagi/commcare-hq","owner":{"login":"dimagi","id":94514,"avatar_url":"https://avatars.githubusercontent.com/u/94514?v=3","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},"private":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}","created_at":"2009-07-09T17:00:07Z","updated_at":"2015-11-05T13:41:38Z","pushed_at":"2015-11-19T18:33:32Z","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":"http://www.commcarehq.org","size":233678,"stargazers_count":54,"watchers_count":54,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":63,"mirror_url":null,"open_issues_count":57,"forks":63,"open_issues":57,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/8399"},"html":{"href":"https://github.com/dimagi/commcare-hq/pull/8399"},"issue":{"href":"https://api.github.com/repos/dimagi/commcare-hq/issues/8399"},"comments":{"href":"https://api.github.com/repos/dimagi/commcare-hq/issues/8399/comments"},"review_comments":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/8399/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/8399/commits"},"statuses":{"href":"https://api.github.com/repos/dimagi/commcare-hq/statuses/7ad25256db588aa02609708743c101f8bad20df5"}}}}