{"action":"created","issue":{"url":"https://api.github.com/repos/dtu-compute/dtu-quiz/issues/58","repository_url":"https://api.github.com/repos/dtu-compute/dtu-quiz","labels_url":"https://api.github.com/repos/dtu-compute/dtu-quiz/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/dtu-compute/dtu-quiz/issues/58/comments","events_url":"https://api.github.com/repos/dtu-compute/dtu-quiz/issues/58/events","html_url":"https://github.com/dtu-compute/dtu-quiz/issues/58","id":146928419,"number":58,"title":"Keeping quiz files in sync","user":{"login":"dtu-compute","id":13518486,"avatar_url":"https://avatars.githubusercontent.com/u/13518486?v=3","gravatar_id":"","url":"https://api.github.com/users/dtu-compute","html_url":"https://github.com/dtu-compute","followers_url":"https://api.github.com/users/dtu-compute/followers","following_url":"https://api.github.com/users/dtu-compute/following{/other_user}","gists_url":"https://api.github.com/users/dtu-compute/gists{/gist_id}","starred_url":"https://api.github.com/users/dtu-compute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtu-compute/subscriptions","organizations_url":"https://api.github.com/users/dtu-compute/orgs","repos_url":"https://api.github.com/users/dtu-compute/repos","events_url":"https://api.github.com/users/dtu-compute/events{/privacy}","received_events_url":"https://api.github.com/users/dtu-compute/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dtu-compute/dtu-quiz/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/dtu-compute/dtu-quiz/labels/important","name":"important","color":"d93f0b"}],"state":"open","locked":false,"assignee":{"login":"iainbryson","id":1531103,"avatar_url":"https://avatars.githubusercontent.com/u/1531103?v=3","gravatar_id":"","url":"https://api.github.com/users/iainbryson","html_url":"https://github.com/iainbryson","followers_url":"https://api.github.com/users/iainbryson/followers","following_url":"https://api.github.com/users/iainbryson/following{/other_user}","gists_url":"https://api.github.com/users/iainbryson/gists{/gist_id}","starred_url":"https://api.github.com/users/iainbryson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainbryson/subscriptions","organizations_url":"https://api.github.com/users/iainbryson/orgs","repos_url":"https://api.github.com/users/iainbryson/repos","events_url":"https://api.github.com/users/iainbryson/events{/privacy}","received_events_url":"https://api.github.com/users/iainbryson/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-04-08T13:22:35Z","updated_at":"2016-04-12T17:24:50Z","closed_at":null,"body":"Would it be possible to save a copy of the repo quiz in the db, so if\r\nsomeone should delete the repo quiz and then click Update, DTUquiz would\r\nnotice the repo quiz file is missing and so commit and push it back to\r\nthe repo? And log the event.\r\n\r\nIn the case where someone have modified a repo quiz, while or after it\r\nhave been Visible, it would be great if DTUquiz could detect this and\r\ngive a warning similar to:\r\n\r\nQuiz XXX have been modified after the quiz have been made visible. The\r\nchanges made to quiz file have no impact. To restore the version of the\r\nquiz file which was used when the quiz was made Visible then remove\r\n#quiz filename# from the repo, and DTUquiz will restore the correct \r\nversion.\r\n"},"comment":{"url":"https://api.github.com/repos/dtu-compute/dtu-quiz/issues/comments/209016582","html_url":"https://github.com/dtu-compute/dtu-quiz/issues/58#issuecomment-209016582","issue_url":"https://api.github.com/repos/dtu-compute/dtu-quiz/issues/58","id":209016582,"user":{"login":"iainbryson","id":1531103,"avatar_url":"https://avatars.githubusercontent.com/u/1531103?v=3","gravatar_id":"","url":"https://api.github.com/users/iainbryson","html_url":"https://github.com/iainbryson","followers_url":"https://api.github.com/users/iainbryson/followers","following_url":"https://api.github.com/users/iainbryson/following{/other_user}","gists_url":"https://api.github.com/users/iainbryson/gists{/gist_id}","starred_url":"https://api.github.com/users/iainbryson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainbryson/subscriptions","organizations_url":"https://api.github.com/users/iainbryson/orgs","repos_url":"https://api.github.com/users/iainbryson/repos","events_url":"https://api.github.com/users/iainbryson/events{/privacy}","received_events_url":"https://api.github.com/users/iainbryson/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T17:24:50Z","updated_at":"2016-04-12T17:24:50Z","body":"Yes:\n\nhttp://stackoverflow.com/questions/215718/reset-or-revert-a-specific-file-to-a-specific-revision-using-git <http://stackoverflow.com/questions/215718/reset-or-revert-a-specific-file-to-a-specific-revision-using-git>\n\nThen to revert a specific file to that commit use the reset command:\n\ngit reset <commit hash> <filename>\n\n\n> On Apr 12, 2016, at 12:52 AM, dtu-compute <notifications@github.com> wrote:\n> \n> Ok, so you can get a file from git by having its hash?\n> \n> If, so then that is a much superior solution, as I was thinking of storing the quiz as one string and do a \"string compare\".\n> \n> —\n> You are receiving this because you were assigned.\n> Reply to this email directly or view it on GitHub <https://github.com/dtu-compute/dtu-quiz/issues/58#issuecomment-208578054>\n\n"}}