{"action":"opened","issue":{"url":"https://api.github.com/repos/tklab-tud/ID2T/issues/19","repository_url":"https://api.github.com/repos/tklab-tud/ID2T","labels_url":"https://api.github.com/repos/tklab-tud/ID2T/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/tklab-tud/ID2T/issues/19/comments","events_url":"https://api.github.com/repos/tklab-tud/ID2T/issues/19/events","html_url":"https://github.com/tklab-tud/ID2T/issues/19","id":383099018,"node_id":"MDU6SXNzdWUzODMwOTkwMTg=","number":19,"title":"Improve query parsing by using an existing library","user":{"login":"pepper-jk","id":19859589,"node_id":"MDQ6VXNlcjE5ODU5NTg5","avatar_url":"https://avatars1.githubusercontent.com/u/19859589?v=4","gravatar_id":"","url":"https://api.github.com/users/pepper-jk","html_url":"https://github.com/pepper-jk","followers_url":"https://api.github.com/users/pepper-jk/followers","following_url":"https://api.github.com/users/pepper-jk/following{/other_user}","gists_url":"https://api.github.com/users/pepper-jk/gists{/gist_id}","starred_url":"https://api.github.com/users/pepper-jk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepper-jk/subscriptions","organizations_url":"https://api.github.com/users/pepper-jk/orgs","repos_url":"https://api.github.com/users/pepper-jk/repos","events_url":"https://api.github.com/users/pepper-jk/events{/privacy}","received_events_url":"https://api.github.com/users/pepper-jk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-21T12:37:18Z","updated_at":"2018-11-21T12:37:18Z","closed_at":null,"author_association":"COLLABORATOR","body":"**Issue by [patrick.jattke](https://git.tk.informatik.tu-darmstadt.de/patrick.jattke)**\n_Friday Nov 04, 2016 at 10:51 GMT_\n_Originally opened as https://git.tk.informatik.tu-darmstadt.de/SPIN/ID2T-toolkit/issues/23_\n\n----\n\nThe parsing process of queries is not robust and providing queries not recognized may lead to errors or unexpressive error messages. \nFor example, submitting the query ``most_used(macAddr);`` prints the error message ``An error occurred: near \"None\": syntax error``.\n\n\nTherefore I suggest re-implementing the query parsing functionality in `StatsDatabase.process_db_query` and `StatsDatabase._process_named_query`. This can be realized by using an existing library such as [pyparsing](http://pyparsing.wikispaces.com/).\n\n\n"}}
{"actor":{"display_login":"pepper-jk"}}