{"action":"created","issue":{"url":"https://api.github.com/repos/Wikia/app/issues/10651","repository_url":"https://api.github.com/repos/Wikia/app","labels_url":"https://api.github.com/repos/Wikia/app/issues/10651/labels{/name}","comments_url":"https://api.github.com/repos/Wikia/app/issues/10651/comments","events_url":"https://api.github.com/repos/Wikia/app/issues/10651/events","html_url":"https://github.com/Wikia/app/pull/10651","id":159164485,"number":10651,"title":"SUS-624 | Wait for slaves before importing wiki","user":{"login":"rogatty","id":7030884,"avatar_url":"https://avatars.githubusercontent.com/u/7030884?v=3","gravatar_id":"","url":"https://api.github.com/users/rogatty","html_url":"https://github.com/rogatty","followers_url":"https://api.github.com/users/rogatty/followers","following_url":"https://api.github.com/users/rogatty/following{/other_user}","gists_url":"https://api.github.com/users/rogatty/gists{/gist_id}","starred_url":"https://api.github.com/users/rogatty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogatty/subscriptions","organizations_url":"https://api.github.com/users/rogatty/orgs","repos_url":"https://api.github.com/users/rogatty/repos","events_url":"https://api.github.com/users/rogatty/events{/privacy}","received_events_url":"https://api.github.com/users/rogatty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-08T13:33:05Z","updated_at":"2016-06-14T09:11:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Wikia/app/pulls/10651","html_url":"https://github.com/Wikia/app/pull/10651","diff_url":"https://github.com/Wikia/app/pull/10651.diff","patch_url":"https://github.com/Wikia/app/pull/10651.patch"},"body":"`WikiImporter` uses methods which in turn use slaves, e.g. [Title::getTitleProtection()](https://github.com/Wikia/app/blob/d06204608c4d001e177fb31510059dce9d494d55/includes/Title.php#L2423) which was intermittently causing error:\r\n```\r\nQuery: SELECT  *  FROM `protected_titles`  WHERE pt_namespace = '0' AND pt_title = 'Accueil'  \r\nFunction: Title::getTitleProtection\r\nError: 1146 Table 'frqatestwiki1465385389971.protected_titles' doesn't exist (slave.db-g.service.consul)\r\n```\r\n\r\nLet's wait for slaves before doing the import.\r\n\r\n@mixth-sense @macbre @ludwikkazmierczak"},"comment":{"url":"https://api.github.com/repos/Wikia/app/issues/comments/225823698","html_url":"https://github.com/Wikia/app/pull/10651#issuecomment-225823698","issue_url":"https://api.github.com/repos/Wikia/app/issues/10651","id":225823698,"user":{"login":"mixth-sense","id":16726,"avatar_url":"https://avatars.githubusercontent.com/u/16726?v=3","gravatar_id":"","url":"https://api.github.com/users/mixth-sense","html_url":"https://github.com/mixth-sense","followers_url":"https://api.github.com/users/mixth-sense/followers","following_url":"https://api.github.com/users/mixth-sense/following{/other_user}","gists_url":"https://api.github.com/users/mixth-sense/gists{/gist_id}","starred_url":"https://api.github.com/users/mixth-sense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixth-sense/subscriptions","organizations_url":"https://api.github.com/users/mixth-sense/orgs","repos_url":"https://api.github.com/users/mixth-sense/repos","events_url":"https://api.github.com/users/mixth-sense/events{/privacy}","received_events_url":"https://api.github.com/users/mixth-sense/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T09:11:09Z","updated_at":"2016-06-14T09:11:09Z","body":"LGTM :+1: "}}
{"actor":{"display_login":"mixth-sense"}}