{"action":"created","comment":{"url":"https://api.github.com/repos/dimagi/touchforms/pulls/comments/32241872","id":32241872,"diff_hunk":"@@ -149,7 +150,13 @@ def load_form(xform, instance=None, extensions=None, session_data=None, api_auth\n         preload_data=session_data.get('preloaders', {})\n     )\n \n-    form.initialize(instance is None, CCInstances(session_data, api_auth, form_context))\n+    try:\n+        session_data.get('additional_filters', {}).update({'use_cache': 'true'})\n+        form.initialize(instance is None, CCInstances(session_data, api_auth, form_context))\n+    except CaseNotFound:","path":"touchforms/backend/xformplayer.py","position":16,"original_position":16,"commit_id":"cea566adbc57d718b6fdbd3e82eaeedd531b89b7","original_commit_id":"cea566adbc57d718b6fdbd3e82eaeedd531b89b7","user":{"login":"czue","id":66555,"avatar_url":"https://avatars.githubusercontent.com/u/66555?v=3","gravatar_id":"","url":"https://api.github.com/users/czue","html_url":"https://github.com/czue","followers_url":"https://api.github.com/users/czue/followers","following_url":"https://api.github.com/users/czue/following{/other_user}","gists_url":"https://api.github.com/users/czue/gists{/gist_id}","starred_url":"https://api.github.com/users/czue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czue/subscriptions","organizations_url":"https://api.github.com/users/czue/orgs","repos_url":"https://api.github.com/users/czue/repos","events_url":"https://api.github.com/users/czue/events{/privacy}","received_events_url":"https://api.github.com/users/czue/received_events","type":"User","site_admin":false},"body":"worth a comment explaining the logic behind this?","created_at":"2015-06-11T16:49:24Z","updated_at":"2015-06-11T16:49:24Z","html_url":"https://github.com/dimagi/touchforms/pull/134#discussion_r32241872","pull_request_url":"https://api.github.com/repos/dimagi/touchforms/pulls/134","_links":{"self":{"href":"https://api.github.com/repos/dimagi/touchforms/pulls/comments/32241872"},"html":{"href":"https://github.com/dimagi/touchforms/pull/134#discussion_r32241872"},"pull_request":{"href":"https://api.github.com/repos/dimagi/touchforms/pulls/134"}}},"pull_request":{"url":"https://api.github.com/repos/dimagi/touchforms/pulls/134","id":37311218,"html_url":"https://github.com/dimagi/touchforms/pull/134","diff_url":"https://github.com/dimagi/touchforms/pull/134.diff","patch_url":"https://github.com/dimagi/touchforms/pull/134.patch","issue_url":"https://api.github.com/repos/dimagi/touchforms/issues/134","number":134,"state":"open","locked":false,"title":"Use cached case list","user":{"login":"benrudolph","id":918514,"avatar_url":"https://avatars.githubusercontent.com/u/918514?v=3","gravatar_id":"","url":"https://api.github.com/users/benrudolph","html_url":"https://github.com/benrudolph","followers_url":"https://api.github.com/users/benrudolph/followers","following_url":"https://api.github.com/users/benrudolph/following{/other_user}","gists_url":"https://api.github.com/users/benrudolph/gists{/gist_id}","starred_url":"https://api.github.com/users/benrudolph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benrudolph/subscriptions","organizations_url":"https://api.github.com/users/benrudolph/orgs","repos_url":"https://api.github.com/users/benrudolph/repos","events_url":"https://api.github.com/users/benrudolph/events{/privacy}","received_events_url":"https://api.github.com/users/benrudolph/received_events","type":"User","site_admin":false},"body":"@czue @wspride this is the touchforms side, see: https://github.com/dimagi/commcare-hq/pull/7032 for more information","created_at":"2015-06-09T23:28:06Z","updated_at":"2015-06-11T16:49:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c672be7cdabdb48b742c477cfbb9fe925babc3b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dimagi/touchforms/pulls/134/commits","review_comments_url":"https://api.github.com/repos/dimagi/touchforms/pulls/134/comments","review_comment_url":"https://api.github.com/repos/dimagi/touchforms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dimagi/touchforms/issues/134/comments","statuses_url":"https://api.github.com/repos/dimagi/touchforms/statuses/cea566adbc57d718b6fdbd3e82eaeedd531b89b7","head":{"label":"dimagi:cached-case-list","ref":"cached-case-list","sha":"cea566adbc57d718b6fdbd3e82eaeedd531b89b7","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":1330256,"name":"touchforms","full_name":"dimagi/touchforms","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/touchforms","description":"web-based javarosa xforms player built for touchscreen kiosks","fork":false,"url":"https://api.github.com/repos/dimagi/touchforms","forks_url":"https://api.github.com/repos/dimagi/touchforms/forks","keys_url":"https://api.github.com/repos/dimagi/touchforms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimagi/touchforms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimagi/touchforms/teams","hooks_url":"https://api.github.com/repos/dimagi/touchforms/hooks","issue_events_url":"https://api.github.com/repos/dimagi/touchforms/issues/events{/number}","events_url":"https://api.github.com/repos/dimagi/touchforms/events","assignees_url":"https://api.github.com/repos/dimagi/touchforms/assignees{/user}","branches_url":"https://api.github.com/repos/dimagi/touchforms/branches{/branch}","tags_url":"https://api.github.com/repos/dimagi/touchforms/tags","blobs_url":"https://api.github.com/repos/dimagi/touchforms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimagi/touchforms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimagi/touchforms/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimagi/touchforms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimagi/touchforms/statuses/{sha}","languages_url":"https://api.github.com/repos/dimagi/touchforms/languages","stargazers_url":"https://api.github.com/repos/dimagi/touchforms/stargazers","contributors_url":"https://api.github.com/repos/dimagi/touchforms/contributors","subscribers_url":"https://api.github.com/repos/dimagi/touchforms/subscribers","subscription_url":"https://api.github.com/repos/dimagi/touchforms/subscription","commits_url":"https://api.github.com/repos/dimagi/touchforms/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimagi/touchforms/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimagi/touchforms/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimagi/touchforms/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimagi/touchforms/contents/{+path}","compare_url":"https://api.github.com/repos/dimagi/touchforms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimagi/touchforms/merges","archive_url":"https://api.github.com/repos/dimagi/touchforms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimagi/touchforms/downloads","issues_url":"https://api.github.com/repos/dimagi/touchforms/issues{/number}","pulls_url":"https://api.github.com/repos/dimagi/touchforms/pulls{/number}","milestones_url":"https://api.github.com/repos/dimagi/touchforms/milestones{/number}","notifications_url":"https://api.github.com/repos/dimagi/touchforms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimagi/touchforms/labels{/name}","releases_url":"https://api.github.com/repos/dimagi/touchforms/releases{/id}","created_at":"2011-02-05T01:25:38Z","updated_at":"2015-05-08T15:14:19Z","pushed_at":"2015-06-10T21:05:10Z","git_url":"git://github.com/dimagi/touchforms.git","ssh_url":"git@github.com:dimagi/touchforms.git","clone_url":"https://github.com/dimagi/touchforms.git","svn_url":"https://github.com/dimagi/touchforms","homepage":"","size":25718,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":4,"forks":9,"open_issues":4,"watchers":5,"default_branch":"master"}},"base":{"label":"dimagi:master","ref":"master","sha":"71dcdba8503a9491bd69f58f74fb40cd529d5261","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":1330256,"name":"touchforms","full_name":"dimagi/touchforms","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/touchforms","description":"web-based javarosa xforms player built for touchscreen kiosks","fork":false,"url":"https://api.github.com/repos/dimagi/touchforms","forks_url":"https://api.github.com/repos/dimagi/touchforms/forks","keys_url":"https://api.github.com/repos/dimagi/touchforms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimagi/touchforms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimagi/touchforms/teams","hooks_url":"https://api.github.com/repos/dimagi/touchforms/hooks","issue_events_url":"https://api.github.com/repos/dimagi/touchforms/issues/events{/number}","events_url":"https://api.github.com/repos/dimagi/touchforms/events","assignees_url":"https://api.github.com/repos/dimagi/touchforms/assignees{/user}","branches_url":"https://api.github.com/repos/dimagi/touchforms/branches{/branch}","tags_url":"https://api.github.com/repos/dimagi/touchforms/tags","blobs_url":"https://api.github.com/repos/dimagi/touchforms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimagi/touchforms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimagi/touchforms/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimagi/touchforms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimagi/touchforms/statuses/{sha}","languages_url":"https://api.github.com/repos/dimagi/touchforms/languages","stargazers_url":"https://api.github.com/repos/dimagi/touchforms/stargazers","contributors_url":"https://api.github.com/repos/dimagi/touchforms/contributors","subscribers_url":"https://api.github.com/repos/dimagi/touchforms/subscribers","subscription_url":"https://api.github.com/repos/dimagi/touchforms/subscription","commits_url":"https://api.github.com/repos/dimagi/touchforms/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimagi/touchforms/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimagi/touchforms/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimagi/touchforms/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimagi/touchforms/contents/{+path}","compare_url":"https://api.github.com/repos/dimagi/touchforms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimagi/touchforms/merges","archive_url":"https://api.github.com/repos/dimagi/touchforms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimagi/touchforms/downloads","issues_url":"https://api.github.com/repos/dimagi/touchforms/issues{/number}","pulls_url":"https://api.github.com/repos/dimagi/touchforms/pulls{/number}","milestones_url":"https://api.github.com/repos/dimagi/touchforms/milestones{/number}","notifications_url":"https://api.github.com/repos/dimagi/touchforms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimagi/touchforms/labels{/name}","releases_url":"https://api.github.com/repos/dimagi/touchforms/releases{/id}","created_at":"2011-02-05T01:25:38Z","updated_at":"2015-05-08T15:14:19Z","pushed_at":"2015-06-10T21:05:10Z","git_url":"git://github.com/dimagi/touchforms.git","ssh_url":"git@github.com:dimagi/touchforms.git","clone_url":"https://github.com/dimagi/touchforms.git","svn_url":"https://github.com/dimagi/touchforms","homepage":"","size":25718,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":4,"forks":9,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dimagi/touchforms/pulls/134"},"html":{"href":"https://github.com/dimagi/touchforms/pull/134"},"issue":{"href":"https://api.github.com/repos/dimagi/touchforms/issues/134"},"comments":{"href":"https://api.github.com/repos/dimagi/touchforms/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/dimagi/touchforms/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/dimagi/touchforms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dimagi/touchforms/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/dimagi/touchforms/statuses/cea566adbc57d718b6fdbd3e82eaeedd531b89b7"}}}}