{"action":"opened","issue":{"url":"https://api.github.com/repos/elasticfence/kaae/issues/13","repository_url":"https://api.github.com/repos/elasticfence/kaae","labels_url":"https://api.github.com/repos/elasticfence/kaae/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/elasticfence/kaae/issues/13/comments","events_url":"https://api.github.com/repos/elasticfence/kaae/issues/13/events","html_url":"https://github.com/elasticfence/kaae/issues/13","id":169601312,"number":13,"title":"watcher index is not automatically created on first start","user":{"login":"seuf","id":1336359,"avatar_url":"https://avatars.githubusercontent.com/u/1336359?v=3","gravatar_id":"","url":"https://api.github.com/users/seuf","html_url":"https://github.com/seuf","followers_url":"https://api.github.com/users/seuf/followers","following_url":"https://api.github.com/users/seuf/following{/other_user}","gists_url":"https://api.github.com/users/seuf/gists{/gist_id}","starred_url":"https://api.github.com/users/seuf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seuf/subscriptions","organizations_url":"https://api.github.com/users/seuf/orgs","repos_url":"https://api.github.com/users/seuf/repos","events_url":"https://api.github.com/users/seuf/events{/privacy}","received_events_url":"https://api.github.com/users/seuf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-05T12:56:59Z","updated_at":"2016-08-05T12:56:59Z","closed_at":null,"body":"When kaae app is starting it does not check for the watcher index and nothing is displayed on the home page.\r\n\r\nI've noticed a network error on /list url :\r\n```\r\n{statusCode: 404, error: \"Not Found\",…}\r\nerror: \"Not Found\"\r\nmessage : \"[index_not_found_exception] no such index, with: {\"resource.type\":\"index_or_alias\",\"resource.id\":\"watcher\",\"index\":\"watcher\"} :: {\"path\":\"/watcher/_search\",\"query\":{\"allow_no_indices\":false},\"statusCode\":404,\"response\":\"{\\\"error\\\":{\\\"root_cause\\\":[{\\\"type\\\":\\\"index_not_found_exception\\\",\\\"reason\\\":\\\"no such index\\\",\\\"resource.type\\\":\\\"index_or_alias\\\",\\\"resource.id\\\":\\\"watcher\\\",\\\"index\\\":\\\"watcher\\\"}],\\\"type\\\":\\\"index_not_found_exception\\\",\\\"reason\\\":\\\"no such index\\\",\\\"resource.type\\\":\\\"index_or_alias\\\",\\\"resource.id\\\":\\\"watcher\\\",\\\"index\\\":\\\"watcher\\\"},\\\"status\\\":404}\"}\"\r\nstatusCode: 404\r\n```\r\n\r\nSo I've create a dummy document in a watcher index, and now the page is displayed correctly.\r\nCan you add a test and create the index if it does not exists on the first start ?"}}
{"actor":{"display_login":"seuf"}}