{"action":"created","issue":{"url":"https://api.github.com/repos/claroline/Distribution/issues/384","repository_url":"https://api.github.com/repos/claroline/Distribution","labels_url":"https://api.github.com/repos/claroline/Distribution/issues/384/labels{/name}","comments_url":"https://api.github.com/repos/claroline/Distribution/issues/384/comments","events_url":"https://api.github.com/repos/claroline/Distribution/issues/384/events","html_url":"https://github.com/claroline/Distribution/issues/384","id":156440280,"number":384,"title":"[ExoBundle] Implement lock Exercises","user":{"login":"Elorfin","id":5363219,"avatar_url":"https://avatars.githubusercontent.com/u/5363219?v=3","gravatar_id":"","url":"https://api.github.com/users/Elorfin","html_url":"https://github.com/Elorfin","followers_url":"https://api.github.com/users/Elorfin/followers","following_url":"https://api.github.com/users/Elorfin/following{/other_user}","gists_url":"https://api.github.com/users/Elorfin/gists{/gist_id}","starred_url":"https://api.github.com/users/Elorfin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elorfin/subscriptions","organizations_url":"https://api.github.com/users/Elorfin/orgs","repos_url":"https://api.github.com/users/Elorfin/repos","events_url":"https://api.github.com/users/Elorfin/events{/privacy}","received_events_url":"https://api.github.com/users/Elorfin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/claroline/Distribution/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/claroline/Distribution/labels/ExoBundle","name":"ExoBundle","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"Elorfin","id":5363219,"avatar_url":"https://avatars.githubusercontent.com/u/5363219?v=3","gravatar_id":"","url":"https://api.github.com/users/Elorfin","html_url":"https://github.com/Elorfin","followers_url":"https://api.github.com/users/Elorfin/followers","following_url":"https://api.github.com/users/Elorfin/following{/other_user}","gists_url":"https://api.github.com/users/Elorfin/gists{/gist_id}","starred_url":"https://api.github.com/users/Elorfin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elorfin/subscriptions","organizations_url":"https://api.github.com/users/Elorfin/orgs","repos_url":"https://api.github.com/users/Elorfin/repos","events_url":"https://api.github.com/users/Elorfin/events{/privacy}","received_events_url":"https://api.github.com/users/Elorfin/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/claroline/Distribution/milestones/1","html_url":"https://github.com/claroline/Distribution/milestones/16.05","labels_url":"https://api.github.com/repos/claroline/Distribution/milestones/1/labels","id":1699848,"number":1,"title":"16.05","description":"","creator":{"login":"LaurentGruber","id":5804394,"avatar_url":"https://avatars.githubusercontent.com/u/5804394?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentGruber","html_url":"https://github.com/LaurentGruber","followers_url":"https://api.github.com/users/LaurentGruber/followers","following_url":"https://api.github.com/users/LaurentGruber/following{/other_user}","gists_url":"https://api.github.com/users/LaurentGruber/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentGruber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentGruber/subscriptions","organizations_url":"https://api.github.com/users/LaurentGruber/orgs","repos_url":"https://api.github.com/users/LaurentGruber/repos","events_url":"https://api.github.com/users/LaurentGruber/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentGruber/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":84,"state":"open","created_at":"2016-04-12T08:21:32Z","updated_at":"2016-05-30T11:57:26Z","due_on":"2016-05-30T22:00:00Z","closed_at":null},"comments":3,"created_at":"2016-05-24T07:44:12Z","updated_at":"2016-05-30T12:54:54Z","closed_at":null,"body":"When the Exercise is configured to not allow interrupts, we need to close the Paper if the User leave the Exercise player.\r\n\r\nThere was a function in the code but was never called :\r\n\r\n```\r\npublic function forceFinishExercise($paperToClose)\r\n    {\r\n        $em = $this->doctrine->getManager();\r\n        /** @var \\UJM\\ExoBundle\\Entity\\Paper $paper */\r\n        $paper = $paperToClose;\r\n        $paper->setInterupt(0);\r\n        $paper->setEnd(new \\Datetime());\r\n        $em->persist($paper);\r\n        $em->flush();\r\n\r\n        $this->container->get('ujm.exo_exercise')->manageEndOfExercise($paper);\r\n\r\n        return $paper;\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/claroline/Distribution/issues/comments/222486773","html_url":"https://github.com/claroline/Distribution/issues/384#issuecomment-222486773","issue_url":"https://api.github.com/repos/claroline/Distribution/issues/384","id":222486773,"user":{"login":"Elorfin","id":5363219,"avatar_url":"https://avatars.githubusercontent.com/u/5363219?v=3","gravatar_id":"","url":"https://api.github.com/users/Elorfin","html_url":"https://github.com/Elorfin","followers_url":"https://api.github.com/users/Elorfin/followers","following_url":"https://api.github.com/users/Elorfin/following{/other_user}","gists_url":"https://api.github.com/users/Elorfin/gists{/gist_id}","starred_url":"https://api.github.com/users/Elorfin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elorfin/subscriptions","organizations_url":"https://api.github.com/users/Elorfin/orgs","repos_url":"https://api.github.com/users/Elorfin/repos","events_url":"https://api.github.com/users/Elorfin/events{/privacy}","received_events_url":"https://api.github.com/users/Elorfin/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T12:54:54Z","updated_at":"2016-05-30T12:54:54Z","body":"This is implemented in #452.\r\n\r\nI don't want to close the issue has we need to find a better way to handle it."}}
{"actor":{"display_login":"Elorfin"}}