{"action":"created","issue":{"url":"https://api.github.com/repos/elifesciences/annotations/issues/11","repository_url":"https://api.github.com/repos/elifesciences/annotations","labels_url":"https://api.github.com/repos/elifesciences/annotations/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/elifesciences/annotations/issues/11/comments","events_url":"https://api.github.com/repos/elifesciences/annotations/issues/11/events","html_url":"https://github.com/elifesciences/annotations/pull/11","id":274133110,"number":11,"title":"Lazy creation of basic objects","user":{"login":"giorgiosironi","id":160299,"avatar_url":"https://avatars3.githubusercontent.com/u/160299?v=4","gravatar_id":"","url":"https://api.github.com/users/giorgiosironi","html_url":"https://github.com/giorgiosironi","followers_url":"https://api.github.com/users/giorgiosironi/followers","following_url":"https://api.github.com/users/giorgiosironi/following{/other_user}","gists_url":"https://api.github.com/users/giorgiosironi/gists{/gist_id}","starred_url":"https://api.github.com/users/giorgiosironi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giorgiosironi/subscriptions","organizations_url":"https://api.github.com/users/giorgiosironi/orgs","repos_url":"https://api.github.com/users/giorgiosironi/repos","events_url":"https://api.github.com/users/giorgiosironi/events{/privacy}","received_events_url":"https://api.github.com/users/giorgiosironi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-15T12:06:06Z","updated_at":"2017-11-15T12:18:15Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/elifesciences/annotations/pulls/11","html_url":"https://github.com/elifesciences/annotations/pull/11","diff_url":"https://github.com/elifesciences/annotations/pull/11.diff","patch_url":"https://github.com/elifesciences/annotations/pull/11.patch"},"body":"When objects are requested from $app and passed to `AnnotationsServiceProvider`, they are instantiated.\n\nThis is a bit wasteful, but more importantly some of them can only be built from the cli and not in php-fpm, as our configuration disables the `pcntl_*` functions for security reasons.\n\nWe should probably go for a similar pattern for the other objects as well, but they don't break the application on our servers."},"comment":{"url":"https://api.github.com/repos/elifesciences/annotations/issues/comments/344575717","html_url":"https://github.com/elifesciences/annotations/pull/11#issuecomment-344575717","issue_url":"https://api.github.com/repos/elifesciences/annotations/issues/11","id":344575717,"user":{"login":"giorgiosironi","id":160299,"avatar_url":"https://avatars3.githubusercontent.com/u/160299?v=4","gravatar_id":"","url":"https://api.github.com/users/giorgiosironi","html_url":"https://github.com/giorgiosironi","followers_url":"https://api.github.com/users/giorgiosironi/followers","following_url":"https://api.github.com/users/giorgiosironi/following{/other_user}","gists_url":"https://api.github.com/users/giorgiosironi/gists{/gist_id}","starred_url":"https://api.github.com/users/giorgiosironi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giorgiosironi/subscriptions","organizations_url":"https://api.github.com/users/giorgiosironi/orgs","repos_url":"https://api.github.com/users/giorgiosironi/repos","events_url":"https://api.github.com/users/giorgiosironi/events{/privacy}","received_events_url":"https://api.github.com/users/giorgiosironi/received_events","type":"User","site_admin":false},"created_at":"2017-11-15T12:18:15Z","updated_at":"2017-11-15T12:18:15Z","author_association":"CONTRIBUTOR","body":"```\r\n2017/11/15 12:18:04 [error] 1200#1200: *7 FastCGI sent in stderr: \"Unable to open primary script: /srv/annotations/web/app.php (No such file or directory)\" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /ping HTTP/1.1\", upstream: \"fastcgi://unix:/var/php-fpm.sock:\", host: \"localhost\"\r\n```"}}
{"actor":{"display_login":"giorgiosironi"}}