{"action":"created","issue":{"url":"https://api.github.com/repos/uvacw/inca/issues/176","repository_url":"https://api.github.com/repos/uvacw/inca","labels_url":"https://api.github.com/repos/uvacw/inca/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/uvacw/inca/issues/176/comments","events_url":"https://api.github.com/repos/uvacw/inca/issues/176/events","html_url":"https://github.com/uvacw/inca/pull/176","id":240687507,"number":176,"title":"scrapers and processers now work without ES","user":{"login":"bobvdvelde","id":1457643,"avatar_url":"https://avatars0.githubusercontent.com/u/1457643?v=3","gravatar_id":"","url":"https://api.github.com/users/bobvdvelde","html_url":"https://github.com/bobvdvelde","followers_url":"https://api.github.com/users/bobvdvelde/followers","following_url":"https://api.github.com/users/bobvdvelde/following{/other_user}","gists_url":"https://api.github.com/users/bobvdvelde/gists{/gist_id}","starred_url":"https://api.github.com/users/bobvdvelde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobvdvelde/subscriptions","organizations_url":"https://api.github.com/users/bobvdvelde/orgs","repos_url":"https://api.github.com/users/bobvdvelde/repos","events_url":"https://api.github.com/users/bobvdvelde/events{/privacy}","received_events_url":"https://api.github.com/users/bobvdvelde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-05T15:23:06Z","updated_at":"2017-07-06T07:54:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/uvacw/inca/pulls/176","html_url":"https://github.com/uvacw/inca/pull/176","diff_url":"https://github.com/uvacw/inca/pull/176.diff","patch_url":"https://github.com/uvacw/inca/pull/176.patch"},"body":"Fixed INCA so that scrapers and processers now work when no elasticsearch instance is reachable (with warnings!). This should fix #48 \r\n\r\n```python\r\n>>> from inca import Inca\r\n>>> client = Inca()\r\n>>> testdocs = client.scrapers.testdocs()\r\n>>> len(testdocs)\r\n10\r\n>>> processed_testdocs = [doc for doc in client.processing.lowercase(testdocs, field='text') if 'text_lowercase' in doc]\r\n>>> len(processed_testdocs)\r\n10\r\n>>> client.database.list_doctypes()\r\nWARNING:core.search_utils:Could not list documents: No database instance available\r\n>>> client.database.doctype_first('testdocs')\r\nWARNING:core.search_utils:Could not get first document: No database instance available\r\n```"},"comment":{"url":"https://api.github.com/repos/uvacw/inca/issues/comments/313323784","html_url":"https://github.com/uvacw/inca/pull/176#issuecomment-313323784","issue_url":"https://api.github.com/repos/uvacw/inca/issues/176","id":313323784,"user":{"login":"damian0604","id":5979167,"avatar_url":"https://avatars3.githubusercontent.com/u/5979167?v=3","gravatar_id":"","url":"https://api.github.com/users/damian0604","html_url":"https://github.com/damian0604","followers_url":"https://api.github.com/users/damian0604/followers","following_url":"https://api.github.com/users/damian0604/following{/other_user}","gists_url":"https://api.github.com/users/damian0604/gists{/gist_id}","starred_url":"https://api.github.com/users/damian0604/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damian0604/subscriptions","organizations_url":"https://api.github.com/users/damian0604/orgs","repos_url":"https://api.github.com/users/damian0604/repos","events_url":"https://api.github.com/users/damian0604/events{/privacy}","received_events_url":"https://api.github.com/users/damian0604/received_events","type":"User","site_admin":false},"created_at":"2017-07-06T07:54:41Z","updated_at":"2017-07-06T07:54:41Z","body":"That would be great!"}}
{"actor":{"display_login":"damian0604"}}