{"action":"created","issue":{"url":"https://api.github.com/repos/Aalto-LeTech/mooc-grader/issues/26","repository_url":"https://api.github.com/repos/Aalto-LeTech/mooc-grader","labels_url":"https://api.github.com/repos/Aalto-LeTech/mooc-grader/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/Aalto-LeTech/mooc-grader/issues/26/comments","events_url":"https://api.github.com/repos/Aalto-LeTech/mooc-grader/issues/26/events","html_url":"https://github.com/Aalto-LeTech/mooc-grader/pull/26","id":341478402,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNjA2MTEy","number":26,"title":"use course key as cwd for generator cmd by default","user":{"login":"piehei","id":8404555,"node_id":"MDQ6VXNlcjg0MDQ1NTU=","avatar_url":"https://avatars2.githubusercontent.com/u/8404555?v=4","gravatar_id":"","url":"https://api.github.com/users/piehei","html_url":"https://github.com/piehei","followers_url":"https://api.github.com/users/piehei/followers","following_url":"https://api.github.com/users/piehei/following{/other_user}","gists_url":"https://api.github.com/users/piehei/gists{/gist_id}","starred_url":"https://api.github.com/users/piehei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piehei/subscriptions","organizations_url":"https://api.github.com/users/piehei/orgs","repos_url":"https://api.github.com/users/piehei/repos","events_url":"https://api.github.com/users/piehei/events{/privacy}","received_events_url":"https://api.github.com/users/piehei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-07-16T11:15:52Z","updated_at":"2018-07-16T12:20:39Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Aalto-LeTech/mooc-grader/pulls/26","html_url":"https://github.com/Aalto-LeTech/mooc-grader/pull/26","diff_url":"https://github.com/Aalto-LeTech/mooc-grader/pull/26.diff","patch_url":"https://github.com/Aalto-LeTech/mooc-grader/pull/26.patch"},"body":"This change makes it possible for pregenerating personalized exercises both in local environment powered by course-templates docker/docker-compose setup *and* in production environment.\r\n\r\nWhen the course is developed locally, it is located in mooc-grader file system in courses/default. When the course is deployed to production mooc-grader server, the location is almost certainly different, for instance courses/wsd-2018. Because the paths are different the \"cwd\" parameter of \"generator\" in exercise.yml doesn't help, it would need to be rewritten depending on the environment.\r\n\r\nMy proposal changes the behaviour of **_manage.py pregenerate_exercises <course_key>_** so that the \"cmd\" of \"generator\" will be executed from courses/<course_key>, not from the mooc-grader's root path where manage.py resides."},"comment":{"url":"https://api.github.com/repos/Aalto-LeTech/mooc-grader/issues/comments/405229493","html_url":"https://github.com/Aalto-LeTech/mooc-grader/pull/26#issuecomment-405229493","issue_url":"https://api.github.com/repos/Aalto-LeTech/mooc-grader/issues/26","id":405229493,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTIyOTQ5Mw==","user":{"login":"raphendyr","id":2327687,"node_id":"MDQ6VXNlcjIzMjc2ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/2327687?v=4","gravatar_id":"","url":"https://api.github.com/users/raphendyr","html_url":"https://github.com/raphendyr","followers_url":"https://api.github.com/users/raphendyr/followers","following_url":"https://api.github.com/users/raphendyr/following{/other_user}","gists_url":"https://api.github.com/users/raphendyr/gists{/gist_id}","starred_url":"https://api.github.com/users/raphendyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphendyr/subscriptions","organizations_url":"https://api.github.com/users/raphendyr/orgs","repos_url":"https://api.github.com/users/raphendyr/repos","events_url":"https://api.github.com/users/raphendyr/events{/privacy}","received_events_url":"https://api.github.com/users/raphendyr/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T12:20:39Z","updated_at":"2018-07-16T12:20:39Z","author_association":"COLLABORATOR","body":"Sounds good."}}
{"actor":{"display_login":"raphendyr"}}