{"action":"created","issue":{"url":"https://api.github.com/repos/beancount/fava/issues/697","repository_url":"https://api.github.com/repos/beancount/fava","labels_url":"https://api.github.com/repos/beancount/fava/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/beancount/fava/issues/697/comments","events_url":"https://api.github.com/repos/beancount/fava/issues/697/events","html_url":"https://github.com/beancount/fava/issues/697","id":308388520,"number":697,"title":"Processing invalid filter takes a long time","user":{"login":"tbm","id":1556037,"avatar_url":"https://avatars1.githubusercontent.com/u/1556037?v=4","gravatar_id":"","url":"https://api.github.com/users/tbm","html_url":"https://github.com/tbm","followers_url":"https://api.github.com/users/tbm/followers","following_url":"https://api.github.com/users/tbm/following{/other_user}","gists_url":"https://api.github.com/users/tbm/gists{/gist_id}","starred_url":"https://api.github.com/users/tbm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbm/subscriptions","organizations_url":"https://api.github.com/users/tbm/orgs","repos_url":"https://api.github.com/users/tbm/repos","events_url":"https://api.github.com/users/tbm/events{/privacy}","received_events_url":"https://api.github.com/users/tbm/received_events","type":"User","site_admin":false},"labels":[{"id":295428264,"url":"https://api.github.com/repos/beancount/fava/labels/bug","name":"bug","color":"fc2929","default":true},{"id":638122433,"url":"https://api.github.com/repos/beancount/fava/labels/status:not-reproducible","name":"status:not-reproducible","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-03-25T21:40:39Z","updated_at":"2018-03-27T22:25:56Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When I type something invalid into the filter box (like \"martin\" or \"test\"), it takes a long time (maybe 5 seconds?) to get the error message \"invalid filter\".\r\n\r\nIt wasn't clear to me why this would take so long when all filters had a specific pattern (`payee`:, etc).  As it turns out, an account name is valid.  But looking up the transactions for an account shouldn't take 5 seconds.  Hmm, no, an account name is not valid. (In the filter box, not the account box)  So what is it doing for 5 seconds?\r\n\r\nI'm not sure what's going exactly but maybe you can try if you see what I mean.\r\n\r\nFWIW, `Ready with 13791 directives (9645 postings in 3995 transactions).`\r\n"},"comment":{"url":"https://api.github.com/repos/beancount/fava/issues/comments/376696162","html_url":"https://github.com/beancount/fava/issues/697#issuecomment-376696162","issue_url":"https://api.github.com/repos/beancount/fava/issues/697","id":376696162,"user":{"login":"tbm","id":1556037,"avatar_url":"https://avatars1.githubusercontent.com/u/1556037?v=4","gravatar_id":"","url":"https://api.github.com/users/tbm","html_url":"https://github.com/tbm","followers_url":"https://api.github.com/users/tbm/followers","following_url":"https://api.github.com/users/tbm/following{/other_user}","gists_url":"https://api.github.com/users/tbm/gists{/gist_id}","starred_url":"https://api.github.com/users/tbm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbm/subscriptions","organizations_url":"https://api.github.com/users/tbm/orgs","repos_url":"https://api.github.com/users/tbm/repos","events_url":"https://api.github.com/users/tbm/events{/privacy}","received_events_url":"https://api.github.com/users/tbm/received_events","type":"User","site_admin":false},"created_at":"2018-03-27T22:25:56Z","updated_at":"2018-03-27T22:25:56Z","author_association":"CONTRIBUTOR","body":"Yeah, it seems some reload is going on.  But not because I changed my file.  It definitely didn't change."}}
{"actor":{"display_login":"tbm"}}