{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/9301","repository_url":"https://api.github.com/repos/elastic/logstash","labels_url":"https://api.github.com/repos/elastic/logstash/issues/9301/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/9301/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/9301/events","html_url":"https://github.com/elastic/logstash/issues/9301","id":309540552,"number":9301,"title":"Optimize out empty If statements in LIR","user":{"login":"justinkambic","id":18429259,"avatar_url":"https://avatars2.githubusercontent.com/u/18429259?v=4","gravatar_id":"","url":"https://api.github.com/users/justinkambic","html_url":"https://github.com/justinkambic","followers_url":"https://api.github.com/users/justinkambic/followers","following_url":"https://api.github.com/users/justinkambic/following{/other_user}","gists_url":"https://api.github.com/users/justinkambic/gists{/gist_id}","starred_url":"https://api.github.com/users/justinkambic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinkambic/subscriptions","organizations_url":"https://api.github.com/users/justinkambic/orgs","repos_url":"https://api.github.com/users/justinkambic/repos","events_url":"https://api.github.com/users/justinkambic/events{/privacy}","received_events_url":"https://api.github.com/users/justinkambic/received_events","type":"User","site_admin":false},"labels":[{"id":484462245,"url":"https://api.github.com/repos/elastic/logstash/labels/LIR","name":"LIR","color":"c5def5","default":false},{"id":90997545,"url":"https://api.github.com/repos/elastic/logstash/labels/enhancement","name":"enhancement","color":"009800","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-28T21:35:17Z","updated_at":"2018-03-28T21:35:27Z","closed_at":null,"author_association":"NONE","body":"Presently Logstash allows the creation of pipelines with empty `if` statements, i.e. a condition is provided and no plugins or subsequent `if` statements are specified within its scope.\r\n\r\n```\r\ninput {\r\n  stdin { }\r\n}\r\n\r\nfilter {\r\n  if [foo] in [bar] {\r\n\r\n  }\r\n}\r\n\r\noutput {\r\n  stdout { }\r\n}\r\n```\r\n\r\nI propose that we optimize out empty `if`s in LIR. This shouldn't impact the execution of pipelines and it will simplify some LS UI tasks we're working on."},"comment":{"url":"https://api.github.com/repos/elastic/logstash/issues/comments/377045217","html_url":"https://github.com/elastic/logstash/issues/9301#issuecomment-377045217","issue_url":"https://api.github.com/repos/elastic/logstash/issues/9301","id":377045217,"user":{"login":"justinkambic","id":18429259,"avatar_url":"https://avatars2.githubusercontent.com/u/18429259?v=4","gravatar_id":"","url":"https://api.github.com/users/justinkambic","html_url":"https://github.com/justinkambic","followers_url":"https://api.github.com/users/justinkambic/followers","following_url":"https://api.github.com/users/justinkambic/following{/other_user}","gists_url":"https://api.github.com/users/justinkambic/gists{/gist_id}","starred_url":"https://api.github.com/users/justinkambic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinkambic/subscriptions","organizations_url":"https://api.github.com/users/justinkambic/orgs","repos_url":"https://api.github.com/users/justinkambic/repos","events_url":"https://api.github.com/users/justinkambic/events{/privacy}","received_events_url":"https://api.github.com/users/justinkambic/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T21:35:27Z","updated_at":"2018-03-28T21:35:27Z","author_association":"NONE","body":"cc @ycombinator "}}
{"actor":{"display_login":"justinkambic"}}