{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/19355","labels_url":"https://api.github.com/repos/owncloud/core/issues/19355/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/19355/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/19355/events","html_url":"https://github.com/owncloud/core/pull/19355","id":108262587,"number":19355,"title":"[jenkins] Cache result of check upgrade","user":{"login":"individual-it","id":2425577,"avatar_url":"https://avatars.githubusercontent.com/u/2425577?v=3","gravatar_id":"","url":"https://api.github.com/users/individual-it","html_url":"https://github.com/individual-it","followers_url":"https://api.github.com/users/individual-it/followers","following_url":"https://api.github.com/users/individual-it/following{/other_user}","gists_url":"https://api.github.com/users/individual-it/gists{/gist_id}","starred_url":"https://api.github.com/users/individual-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/individual-it/subscriptions","organizations_url":"https://api.github.com/users/individual-it/orgs","repos_url":"https://api.github.com/users/individual-it/repos","events_url":"https://api.github.com/users/individual-it/events{/privacy}","received_events_url":"https://api.github.com/users/individual-it/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/3%20-%20To%20Review","name":"3 - To Review","color":"ededed"},{"url":"https://api.github.com/repos/owncloud/core/labels/performance","name":"performance","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/37","html_url":"https://github.com/owncloud/core/milestones/8.2-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/37/labels","id":993629,"number":37,"title":"8.2-current","description":"","creator":{"login":"craigpg","id":160667,"avatar_url":"https://avatars.githubusercontent.com/u/160667?v=3","gravatar_id":"","url":"https://api.github.com/users/craigpg","html_url":"https://github.com/craigpg","followers_url":"https://api.github.com/users/craigpg/followers","following_url":"https://api.github.com/users/craigpg/following{/other_user}","gists_url":"https://api.github.com/users/craigpg/gists{/gist_id}","starred_url":"https://api.github.com/users/craigpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigpg/subscriptions","organizations_url":"https://api.github.com/users/craigpg/orgs","repos_url":"https://api.github.com/users/craigpg/repos","events_url":"https://api.github.com/users/craigpg/events{/privacy}","received_events_url":"https://api.github.com/users/craigpg/received_events","type":"User","site_admin":false},"open_issues":192,"closed_issues":971,"state":"open","created_at":"2015-02-24T16:19:37Z","updated_at":"2015-09-25T14:30:25Z","due_on":"2015-10-20T04:00:00Z","closed_at":null},"comments":7,"created_at":"2015-09-25T04:43:50Z","updated_at":"2015-09-25T15:23:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/owncloud/core/pulls/19355","html_url":"https://github.com/owncloud/core/pull/19355","diff_url":"https://github.com/owncloud/core/pull/19355.diff","patch_url":"https://github.com/owncloud/core/pull/19355.patch"},"body":"new PR for CI\r\noriginal:  #18945\r\n\r\ninstead of calling ````\\OCP\\Util::needUpgrade()```` again and again, save the result in self::$needUpgrade and return that value when asked"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/143251246","html_url":"https://github.com/owncloud/core/pull/19355#issuecomment-143251246","issue_url":"https://api.github.com/repos/owncloud/core/issues/19355","id":143251246,"user":{"login":"Xenopathic","id":2016878,"avatar_url":"https://avatars.githubusercontent.com/u/2016878?v=3","gravatar_id":"","url":"https://api.github.com/users/Xenopathic","html_url":"https://github.com/Xenopathic","followers_url":"https://api.github.com/users/Xenopathic/followers","following_url":"https://api.github.com/users/Xenopathic/following{/other_user}","gists_url":"https://api.github.com/users/Xenopathic/gists{/gist_id}","starred_url":"https://api.github.com/users/Xenopathic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xenopathic/subscriptions","organizations_url":"https://api.github.com/users/Xenopathic/orgs","repos_url":"https://api.github.com/users/Xenopathic/repos","events_url":"https://api.github.com/users/Xenopathic/events{/privacy}","received_events_url":"https://api.github.com/users/Xenopathic/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T15:23:40Z","updated_at":"2015-09-25T15:23:40Z","body":"As for the unit test: you might need to use ReflectionClass to change the protected static variable, similar to how our `invokePrivate()` helper works"}}