{"action":"opened","issue":{"url":"https://api.github.com/repos/getquill/quill/issues/1107","repository_url":"https://api.github.com/repos/getquill/quill","labels_url":"https://api.github.com/repos/getquill/quill/issues/1107/labels{/name}","comments_url":"https://api.github.com/repos/getquill/quill/issues/1107/comments","events_url":"https://api.github.com/repos/getquill/quill/issues/1107/events","html_url":"https://github.com/getquill/quill/issues/1107","id":325604109,"number":1107,"title":"Add support of 'getOrElse' operation inside quote","user":{"login":"ditekunov","id":26596464,"avatar_url":"https://avatars2.githubusercontent.com/u/26596464?v=4","gravatar_id":"","url":"https://api.github.com/users/ditekunov","html_url":"https://github.com/ditekunov","followers_url":"https://api.github.com/users/ditekunov/followers","following_url":"https://api.github.com/users/ditekunov/following{/other_user}","gists_url":"https://api.github.com/users/ditekunov/gists{/gist_id}","starred_url":"https://api.github.com/users/ditekunov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ditekunov/subscriptions","organizations_url":"https://api.github.com/users/ditekunov/orgs","repos_url":"https://api.github.com/users/ditekunov/repos","events_url":"https://api.github.com/users/ditekunov/events{/privacy}","received_events_url":"https://api.github.com/users/ditekunov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-23T08:38:37Z","updated_at":"2018-05-23T08:38:37Z","closed_at":null,"author_association":"NONE","body":"This template isn't a strict requirement to open issues, but please try to provide as much information as possible.\r\n\r\n**Version**: (e.g. `2.4.2`)\r\n**Module**: (e.g. `quill-jdbc`)\r\n**Database**: (e.g. `Apache Cassandra`)\r\n\r\n### Expected behavior\r\nAs 'get' operation is deprecated inside quotes, getOrElse returns an expected value or a value inside ().\r\n\r\n### Actual behavior\r\nQuill cannot parse getOrElse, throws (Tree \"foobar\" can't be parsed to 'Ast') error via compile\r\n\r\n### Steps to reproduce the behavior\r\n\r\n1) Build: \r\nval foobar =  quote { query[foo].filter().map(_.bar.getOrElse(0)) } \r\nrun(foobar)\r\n\r\n2) Try to compile it.\r\n\r\n### Workaround\r\nusing map( _.bar.List.head) to reproduce 'get' behavior\r\n\r\nDidn't realize how to fully reproduce behavior of getOrElse()\r\n\r\n@getquill/maintainers"}}
{"actor":{"display_login":"ditekunov"}}