{"action":"created","comment":{"url":"https://api.github.com/repos/9livesdata/whylog/pulls/comments/65013658","id":65013658,"diff_hunk":"@@ -21,22 +23,35 @@ def get_causes_tree(self, front_input):\n \n \n class LogReader(AbstractLogReader):\n+    NO_TEMP = frozendict()\n+\n     def __init__(self, config):\n         self.config = config\n \n-    def get_causes(self, front_input):\n-        input_log_type = self.config.get_log_type(front_input.line_source)\n+    def get_causes(self, front_input, tmp_assign_to_log_type=NO_TEMP):\n+        input_line_source = front_input.line_source\n+        input_log_type = self.config.get_log_type(input_line_source)\n         if not input_log_type:\n-            raise NoLogTypeError(front_input)\n+            input_log_type = self._get_input_log_type(tmp_assign_to_log_type, input_line_source)\n         investigation_plan = self.config.create_investigation_plan(front_input, input_log_type)\n         manager = SearchManager(investigation_plan)\n-        return manager.investigate(front_input)\n+        return manager.investigate(front_input, tmp_assign_to_log_type)\n+\n+    @classmethod\n+    def _get_input_log_type(cls, tmp_assign_to_log_type, input_line_source):\n+        for log_type, line_sources in six.iteritems(tmp_assign_to_log_type):","path":"whylog/log_reader/__init__.py","position":34,"original_position":34,"commit_id":"5617ca5c4498ad483dd8596de3e667178b2ab589","original_commit_id":"5617ca5c4498ad483dd8596de3e667178b2ab589","user":{"login":"ppolewicz","id":726553,"avatar_url":"https://avatars.githubusercontent.com/u/726553?v=3","gravatar_id":"","url":"https://api.github.com/users/ppolewicz","html_url":"https://github.com/ppolewicz","followers_url":"https://api.github.com/users/ppolewicz/followers","following_url":"https://api.github.com/users/ppolewicz/following{/other_user}","gists_url":"https://api.github.com/users/ppolewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/ppolewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppolewicz/subscriptions","organizations_url":"https://api.github.com/users/ppolewicz/orgs","repos_url":"https://api.github.com/users/ppolewicz/repos","events_url":"https://api.github.com/users/ppolewicz/events{/privacy}","received_events_url":"https://api.github.com/users/ppolewicz/received_events","type":"User","site_admin":false},"body":"there can be hundreds of thousands of log files in a log type. We don't want to iterate through those - we'd rather check if any of the patterns assigned to the particular log_type matches our current line_source.","created_at":"2016-05-29T23:17:22Z","updated_at":"2016-05-29T23:17:22Z","html_url":"https://github.com/9livesdata/whylog/pull/158#discussion_r65013658","pull_request_url":"https://api.github.com/repos/9livesdata/whylog/pulls/158","_links":{"self":{"href":"https://api.github.com/repos/9livesdata/whylog/pulls/comments/65013658"},"html":{"href":"https://github.com/9livesdata/whylog/pull/158#discussion_r65013658"},"pull_request":{"href":"https://api.github.com/repos/9livesdata/whylog/pulls/158"}}},"pull_request":{"url":"https://api.github.com/repos/9livesdata/whylog/pulls/158","id":71827580,"html_url":"https://github.com/9livesdata/whylog/pull/158","diff_url":"https://github.com/9livesdata/whylog/pull/158.diff","patch_url":"https://github.com/9livesdata/whylog/pull/158.patch","issue_url":"https://api.github.com/repos/9livesdata/whylog/issues/158","number":158,"state":"open","locked":false,"title":"Temporary assign to log type","user":{"login":"kgromadzki","id":11337119,"avatar_url":"https://avatars.githubusercontent.com/u/11337119?v=3","gravatar_id":"","url":"https://api.github.com/users/kgromadzki","html_url":"https://github.com/kgromadzki","followers_url":"https://api.github.com/users/kgromadzki/followers","following_url":"https://api.github.com/users/kgromadzki/following{/other_user}","gists_url":"https://api.github.com/users/kgromadzki/gists{/gist_id}","starred_url":"https://api.github.com/users/kgromadzki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgromadzki/subscriptions","organizations_url":"https://api.github.com/users/kgromadzki/orgs","repos_url":"https://api.github.com/users/kgromadzki/repos","events_url":"https://api.github.com/users/kgromadzki/events{/privacy}","received_events_url":"https://api.github.com/users/kgromadzki/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-29T13:42:04Z","updated_at":"2016-05-29T23:17:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb99835dbef4e2bafdb5a5939e76d5927cc86975","assignee":{"login":"ppolewicz","id":726553,"avatar_url":"https://avatars.githubusercontent.com/u/726553?v=3","gravatar_id":"","url":"https://api.github.com/users/ppolewicz","html_url":"https://github.com/ppolewicz","followers_url":"https://api.github.com/users/ppolewicz/followers","following_url":"https://api.github.com/users/ppolewicz/following{/other_user}","gists_url":"https://api.github.com/users/ppolewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/ppolewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppolewicz/subscriptions","organizations_url":"https://api.github.com/users/ppolewicz/orgs","repos_url":"https://api.github.com/users/ppolewicz/repos","events_url":"https://api.github.com/users/ppolewicz/events{/privacy}","received_events_url":"https://api.github.com/users/ppolewicz/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/9livesdata/whylog/pulls/158/commits","review_comments_url":"https://api.github.com/repos/9livesdata/whylog/pulls/158/comments","review_comment_url":"https://api.github.com/repos/9livesdata/whylog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/9livesdata/whylog/issues/158/comments","statuses_url":"https://api.github.com/repos/9livesdata/whylog/statuses/5617ca5c4498ad483dd8596de3e667178b2ab589","head":{"label":"kgromadzki:tmp_lt","ref":"tmp_lt","sha":"5617ca5c4498ad483dd8596de3e667178b2ab589","user":{"login":"kgromadzki","id":11337119,"avatar_url":"https://avatars.githubusercontent.com/u/11337119?v=3","gravatar_id":"","url":"https://api.github.com/users/kgromadzki","html_url":"https://github.com/kgromadzki","followers_url":"https://api.github.com/users/kgromadzki/followers","following_url":"https://api.github.com/users/kgromadzki/following{/other_user}","gists_url":"https://api.github.com/users/kgromadzki/gists{/gist_id}","starred_url":"https://api.github.com/users/kgromadzki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgromadzki/subscriptions","organizations_url":"https://api.github.com/users/kgromadzki/orgs","repos_url":"https://api.github.com/users/kgromadzki/repos","events_url":"https://api.github.com/users/kgromadzki/events{/privacy}","received_events_url":"https://api.github.com/users/kgromadzki/received_events","type":"User","site_admin":false},"repo":{"id":46000029,"name":"whylog","full_name":"kgromadzki/whylog","owner":{"login":"kgromadzki","id":11337119,"avatar_url":"https://avatars.githubusercontent.com/u/11337119?v=3","gravatar_id":"","url":"https://api.github.com/users/kgromadzki","html_url":"https://github.com/kgromadzki","followers_url":"https://api.github.com/users/kgromadzki/followers","following_url":"https://api.github.com/users/kgromadzki/following{/other_user}","gists_url":"https://api.github.com/users/kgromadzki/gists{/gist_id}","starred_url":"https://api.github.com/users/kgromadzki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgromadzki/subscriptions","organizations_url":"https://api.github.com/users/kgromadzki/orgs","repos_url":"https://api.github.com/users/kgromadzki/repos","events_url":"https://api.github.com/users/kgromadzki/events{/privacy}","received_events_url":"https://api.github.com/users/kgromadzki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kgromadzki/whylog","description":"","fork":true,"url":"https://api.github.com/repos/kgromadzki/whylog","forks_url":"https://api.github.com/repos/kgromadzki/whylog/forks","keys_url":"https://api.github.com/repos/kgromadzki/whylog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kgromadzki/whylog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kgromadzki/whylog/teams","hooks_url":"https://api.github.com/repos/kgromadzki/whylog/hooks","issue_events_url":"https://api.github.com/repos/kgromadzki/whylog/issues/events{/number}","events_url":"https://api.github.com/repos/kgromadzki/whylog/events","assignees_url":"https://api.github.com/repos/kgromadzki/whylog/assignees{/user}","branches_url":"https://api.github.com/repos/kgromadzki/whylog/branches{/branch}","tags_url":"https://api.github.com/repos/kgromadzki/whylog/tags","blobs_url":"https://api.github.com/repos/kgromadzki/whylog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kgromadzki/whylog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kgromadzki/whylog/git/refs{/sha}","trees_url":"https://api.github.com/repos/kgromadzki/whylog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kgromadzki/whylog/statuses/{sha}","languages_url":"https://api.github.com/repos/kgromadzki/whylog/languages","stargazers_url":"https://api.github.com/repos/kgromadzki/whylog/stargazers","contributors_url":"https://api.github.com/repos/kgromadzki/whylog/contributors","subscribers_url":"https://api.github.com/repos/kgromadzki/whylog/subscribers","subscription_url":"https://api.github.com/repos/kgromadzki/whylog/subscription","commits_url":"https://api.github.com/repos/kgromadzki/whylog/commits{/sha}","git_commits_url":"https://api.github.com/repos/kgromadzki/whylog/git/commits{/sha}","comments_url":"https://api.github.com/repos/kgromadzki/whylog/comments{/number}","issue_comment_url":"https://api.github.com/repos/kgromadzki/whylog/issues/comments{/number}","contents_url":"https://api.github.com/repos/kgromadzki/whylog/contents/{+path}","compare_url":"https://api.github.com/repos/kgromadzki/whylog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kgromadzki/whylog/merges","archive_url":"https://api.github.com/repos/kgromadzki/whylog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kgromadzki/whylog/downloads","issues_url":"https://api.github.com/repos/kgromadzki/whylog/issues{/number}","pulls_url":"https://api.github.com/repos/kgromadzki/whylog/pulls{/number}","milestones_url":"https://api.github.com/repos/kgromadzki/whylog/milestones{/number}","notifications_url":"https://api.github.com/repos/kgromadzki/whylog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kgromadzki/whylog/labels{/name}","releases_url":"https://api.github.com/repos/kgromadzki/whylog/releases{/id}","deployments_url":"https://api.github.com/repos/kgromadzki/whylog/deployments","created_at":"2015-11-11T18:06:33Z","updated_at":"2016-02-28T23:05:18Z","pushed_at":"2016-05-29T18:14:22Z","git_url":"git://github.com/kgromadzki/whylog.git","ssh_url":"git@github.com:kgromadzki/whylog.git","clone_url":"https://github.com/kgromadzki/whylog.git","svn_url":"https://github.com/kgromadzki/whylog","homepage":null,"size":830,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"9livesdata:master","ref":"master","sha":"3f57e23765bc70106de7607d959c39b1d0f44edb","user":{"login":"9livesdata","id":15250580,"avatar_url":"https://avatars.githubusercontent.com/u/15250580?v=3","gravatar_id":"","url":"https://api.github.com/users/9livesdata","html_url":"https://github.com/9livesdata","followers_url":"https://api.github.com/users/9livesdata/followers","following_url":"https://api.github.com/users/9livesdata/following{/other_user}","gists_url":"https://api.github.com/users/9livesdata/gists{/gist_id}","starred_url":"https://api.github.com/users/9livesdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9livesdata/subscriptions","organizations_url":"https://api.github.com/users/9livesdata/orgs","repos_url":"https://api.github.com/users/9livesdata/repos","events_url":"https://api.github.com/users/9livesdata/events{/privacy}","received_events_url":"https://api.github.com/users/9livesdata/received_events","type":"Organization","site_admin":false},"repo":{"id":44754618,"name":"whylog","full_name":"9livesdata/whylog","owner":{"login":"9livesdata","id":15250580,"avatar_url":"https://avatars.githubusercontent.com/u/15250580?v=3","gravatar_id":"","url":"https://api.github.com/users/9livesdata","html_url":"https://github.com/9livesdata","followers_url":"https://api.github.com/users/9livesdata/followers","following_url":"https://api.github.com/users/9livesdata/following{/other_user}","gists_url":"https://api.github.com/users/9livesdata/gists{/gist_id}","starred_url":"https://api.github.com/users/9livesdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9livesdata/subscriptions","organizations_url":"https://api.github.com/users/9livesdata/orgs","repos_url":"https://api.github.com/users/9livesdata/repos","events_url":"https://api.github.com/users/9livesdata/events{/privacy}","received_events_url":"https://api.github.com/users/9livesdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/9livesdata/whylog","description":"","fork":false,"url":"https://api.github.com/repos/9livesdata/whylog","forks_url":"https://api.github.com/repos/9livesdata/whylog/forks","keys_url":"https://api.github.com/repos/9livesdata/whylog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/9livesdata/whylog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/9livesdata/whylog/teams","hooks_url":"https://api.github.com/repos/9livesdata/whylog/hooks","issue_events_url":"https://api.github.com/repos/9livesdata/whylog/issues/events{/number}","events_url":"https://api.github.com/repos/9livesdata/whylog/events","assignees_url":"https://api.github.com/repos/9livesdata/whylog/assignees{/user}","branches_url":"https://api.github.com/repos/9livesdata/whylog/branches{/branch}","tags_url":"https://api.github.com/repos/9livesdata/whylog/tags","blobs_url":"https://api.github.com/repos/9livesdata/whylog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/9livesdata/whylog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/9livesdata/whylog/git/refs{/sha}","trees_url":"https://api.github.com/repos/9livesdata/whylog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/9livesdata/whylog/statuses/{sha}","languages_url":"https://api.github.com/repos/9livesdata/whylog/languages","stargazers_url":"https://api.github.com/repos/9livesdata/whylog/stargazers","contributors_url":"https://api.github.com/repos/9livesdata/whylog/contributors","subscribers_url":"https://api.github.com/repos/9livesdata/whylog/subscribers","subscription_url":"https://api.github.com/repos/9livesdata/whylog/subscription","commits_url":"https://api.github.com/repos/9livesdata/whylog/commits{/sha}","git_commits_url":"https://api.github.com/repos/9livesdata/whylog/git/commits{/sha}","comments_url":"https://api.github.com/repos/9livesdata/whylog/comments{/number}","issue_comment_url":"https://api.github.com/repos/9livesdata/whylog/issues/comments{/number}","contents_url":"https://api.github.com/repos/9livesdata/whylog/contents/{+path}","compare_url":"https://api.github.com/repos/9livesdata/whylog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/9livesdata/whylog/merges","archive_url":"https://api.github.com/repos/9livesdata/whylog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/9livesdata/whylog/downloads","issues_url":"https://api.github.com/repos/9livesdata/whylog/issues{/number}","pulls_url":"https://api.github.com/repos/9livesdata/whylog/pulls{/number}","milestones_url":"https://api.github.com/repos/9livesdata/whylog/milestones{/number}","notifications_url":"https://api.github.com/repos/9livesdata/whylog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/9livesdata/whylog/labels{/name}","releases_url":"https://api.github.com/repos/9livesdata/whylog/releases{/id}","deployments_url":"https://api.github.com/repos/9livesdata/whylog/deployments","created_at":"2015-10-22T15:28:20Z","updated_at":"2016-02-28T22:54:29Z","pushed_at":"2016-05-29T19:04:56Z","git_url":"git://github.com/9livesdata/whylog.git","ssh_url":"git@github.com:9livesdata/whylog.git","clone_url":"https://github.com/9livesdata/whylog.git","svn_url":"https://github.com/9livesdata/whylog","homepage":null,"size":1291,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":33,"forks":6,"open_issues":33,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/9livesdata/whylog/pulls/158"},"html":{"href":"https://github.com/9livesdata/whylog/pull/158"},"issue":{"href":"https://api.github.com/repos/9livesdata/whylog/issues/158"},"comments":{"href":"https://api.github.com/repos/9livesdata/whylog/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/9livesdata/whylog/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/9livesdata/whylog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/9livesdata/whylog/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/9livesdata/whylog/statuses/5617ca5c4498ad483dd8596de3e667178b2ab589"}}}}
{"actor":{"display_login":"ppolewicz"}}