{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/9382","repository_url":"https://api.github.com/repos/elastic/kibana","labels_url":"https://api.github.com/repos/elastic/kibana/issues/9382/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/9382/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/9382/events","html_url":"https://github.com/elastic/kibana/issues/9382","id":193612912,"number":9382,"title":"Cannot add filter after editing a filter","user":{"login":"LeeDr","id":13542669,"avatar_url":"https://avatars.githubusercontent.com/u/13542669?v=3","gravatar_id":"","url":"https://api.github.com/users/LeeDr","html_url":"https://github.com/LeeDr","followers_url":"https://api.github.com/users/LeeDr/followers","following_url":"https://api.github.com/users/LeeDr/following{/other_user}","gists_url":"https://api.github.com/users/LeeDr/gists{/gist_id}","starred_url":"https://api.github.com/users/LeeDr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeeDr/subscriptions","organizations_url":"https://api.github.com/users/LeeDr/orgs","repos_url":"https://api.github.com/users/LeeDr/repos","events_url":"https://api.github.com/users/LeeDr/events{/privacy}","received_events_url":"https://api.github.com/users/LeeDr/received_events","type":"User","site_admin":false},"labels":[{"id":462135575,"url":"https://api.github.com/repos/elastic/kibana/labels/:Discovery","name":":Discovery","color":"fef2c0","default":false},{"id":26198234,"url":"https://api.github.com/repos/elastic/kibana/labels/bug","name":"bug","color":"ff0000","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-05T21:19:20Z","updated_at":"2016-12-08T15:47:31Z","closed_at":"2016-12-08T15:47:31Z","body":"Reporting in discuss post https://discuss.elastic.co/t/cannot-add-filters/68096\r\n\r\n**Kibana version**: 5.0.2\r\n\r\n**Elasticsearch version**: 5.0.2\r\n\r\n**Server OS version**: Windows\r\n\r\n**Browser version**: IE 11\r\n\r\n**Browser OS version**: Windows 10\r\n\r\n**Original install method (e.g. download page, yum, from source, etc.)**: Windows zips\r\n\r\n**Description of the problem including expected versus actual behavior**:\r\nClicking the + magnifying glass adds filters in Discover tab.  But after editing a filter (at least in this particular way) trying to add another filter causes a console error and no filter is added.\r\n\r\n\r\n\r\n**Steps to reproduce**:\r\n 1. I used makelogs/logstash data\r\n 2. you can add filters from the field list pane, or the doc view.  I used the doc view.  I opened the first doc in discover and clicked the + magnifying glass on the `\"extension\": \"png\"` to create the first filter\r\n 3. I clicked the + magnifying glass on the `\"geo.src\": \"NO\"` to create a second filter\r\n 4. I edited the second filter to this (as described in the discuss thread);\r\n```\r\n{\r\n  \"query\": {\r\n    \"bool\": {\r\n      \"should\": {\r\n        \"match\": {\r\n          \"geo.src\": {\r\n            \"query\": \"NO\",\r\n            \"type\": \"phrase\"\r\n          }\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n 5. Now when I try to add a third filter nothing appears to happen in the UI.  But in the browser console I get the error below.\r\n 6. if I delete the edited filter, I can add new filters again\r\n\r\n\r\n**Errors in browser console (if relevant)**:\r\n```\r\nTypeError: Unable to get property 'host' of undefined or null reference\r\n   at Anonymous function (http://localhost:5601/bundles/kibana.bundle.js?v=14476:30:6667)\r\n   at baseFindIndex (http://localhost:5601/bundles/commons.bundle.js?v=14476:1:4092)\r\n   at Anonymous function (http://localhost:5601/bundles/commons.bundle.js?v=14476:2:334)\r\n   at Anonymous function (http://localhost:5601/bundles/kibana.bundle.js?v=14476:30:6598)\r\n   at arrayEach (http://localhost:5601/bundles/commons.bundle.js?v=14476:1:10272)\r\n   at Anonymous function (http://localhost:5601/bundles/commons.bundle.js?v=14476:2:2016)\r\n   at filterManager.add (http://localhost:5601/bundles/kibana.bundle.js?v=14476:30:6525)\r\n   at $scope.filterQuery (http://localhost:5601/bundles/kibana.bundle.js?v=14476:77:9837)\r\n   at fn (Function code:2:852)\r\n   at callback (http://localhost:5601/bundles/commons.bundle.js?v=14476:42:11001)\r\n```\r\n\r\n**Provide logs and/or server output (if relevant)**:\r\nNothing in the Kibana log for this."}}
{"actor":{"display_login":"Bargs"}}