{"action":"created","issue":{"url":"https://api.github.com/repos/superboum/etude-pratique/issues/8","labels_url":"https://api.github.com/repos/superboum/etude-pratique/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/superboum/etude-pratique/issues/8/comments","events_url":"https://api.github.com/repos/superboum/etude-pratique/issues/8/events","html_url":"https://github.com/superboum/etude-pratique/issues/8","id":64356809,"number":8,"title":"Review Feature","user":{"login":"superboum","id":1770289,"avatar_url":"https://avatars.githubusercontent.com/u/1770289?v=3","gravatar_id":"","url":"https://api.github.com/users/superboum","html_url":"https://github.com/superboum","followers_url":"https://api.github.com/users/superboum/followers","following_url":"https://api.github.com/users/superboum/following{/other_user}","gists_url":"https://api.github.com/users/superboum/gists{/gist_id}","starred_url":"https://api.github.com/users/superboum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superboum/subscriptions","organizations_url":"https://api.github.com/users/superboum/orgs","repos_url":"https://api.github.com/users/superboum/repos","events_url":"https://api.github.com/users/superboum/events{/privacy}","received_events_url":"https://api.github.com/users/superboum/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/superboum/etude-pratique/labels/feature","name":"feature","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"Jean-Chorin","id":9080901,"avatar_url":"https://avatars.githubusercontent.com/u/9080901?v=3","gravatar_id":"","url":"https://api.github.com/users/Jean-Chorin","html_url":"https://github.com/Jean-Chorin","followers_url":"https://api.github.com/users/Jean-Chorin/followers","following_url":"https://api.github.com/users/Jean-Chorin/following{/other_user}","gists_url":"https://api.github.com/users/Jean-Chorin/gists{/gist_id}","starred_url":"https://api.github.com/users/Jean-Chorin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jean-Chorin/subscriptions","organizations_url":"https://api.github.com/users/Jean-Chorin/orgs","repos_url":"https://api.github.com/users/Jean-Chorin/repos","events_url":"https://api.github.com/users/Jean-Chorin/events{/privacy}","received_events_url":"https://api.github.com/users/Jean-Chorin/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/superboum/etude-pratique/milestones/2","html_url":"https://github.com/superboum/etude-pratique/milestones/Release%203%20:%20Settings%20and%20%20Review","labels_url":"https://api.github.com/repos/superboum/etude-pratique/milestones/2/labels","id":1017185,"number":2,"title":"Release 3 : Settings and  Review","description":"","creator":{"login":"superboum","id":1770289,"avatar_url":"https://avatars.githubusercontent.com/u/1770289?v=3","gravatar_id":"","url":"https://api.github.com/users/superboum","html_url":"https://github.com/superboum","followers_url":"https://api.github.com/users/superboum/followers","following_url":"https://api.github.com/users/superboum/following{/other_user}","gists_url":"https://api.github.com/users/superboum/gists{/gist_id}","starred_url":"https://api.github.com/users/superboum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superboum/subscriptions","organizations_url":"https://api.github.com/users/superboum/orgs","repos_url":"https://api.github.com/users/superboum/repos","events_url":"https://api.github.com/users/superboum/events{/privacy}","received_events_url":"https://api.github.com/users/superboum/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-03-11T20:33:49Z","updated_at":"2015-03-26T00:20:28Z","due_on":"2015-04-03T22:00:00Z","closed_at":null},"comments":1,"created_at":"2015-03-25T19:47:56Z","updated_at":"2015-04-09T12:38:27Z","closed_at":null,"body":"Implement a review system\r\n* [x] Create an upload form with Review and ReviewProposition separated\r\n* [x] Create a reviews table in DataBase\r\n* [x] Add an attribute \"file_path\" in table users\r\n* [ ] Implement a way to have the lecturer having one file at a time\r\n* [x] Force the files to be in .pdf\r\n* [ ] Do something if not\r\n* [ ] Implement the reviews section in admin\r\n* [x] Implement the reviews section in lecturer's part\r\n* [ ] A way for the admin AND the moderator to check and read the reviews\r\n* [x] A way for the lecturer to see the current state of his demand (in progress / validated / non validated)\r\n* [ ] A way for the lecturer to change his file\r\n* [x] If the review is not validated : a new ReviewProposition in created, for a new file to be upload"},"comment":{"url":"https://api.github.com/repos/superboum/etude-pratique/issues/comments/91217858","html_url":"https://github.com/superboum/etude-pratique/issues/8#issuecomment-91217858","issue_url":"https://api.github.com/repos/superboum/etude-pratique/issues/8","id":91217858,"user":{"login":"superboum","id":1770289,"avatar_url":"https://avatars.githubusercontent.com/u/1770289?v=3","gravatar_id":"","url":"https://api.github.com/users/superboum","html_url":"https://github.com/superboum","followers_url":"https://api.github.com/users/superboum/followers","following_url":"https://api.github.com/users/superboum/following{/other_user}","gists_url":"https://api.github.com/users/superboum/gists{/gist_id}","starred_url":"https://api.github.com/users/superboum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superboum/subscriptions","organizations_url":"https://api.github.com/users/superboum/orgs","repos_url":"https://api.github.com/users/superboum/repos","events_url":"https://api.github.com/users/superboum/events{/privacy}","received_events_url":"https://api.github.com/users/superboum/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T12:38:27Z","updated_at":"2015-04-09T12:38:27Z","body":"We should use a md5 hash for file names, will solve many problems... \r\n\r\n```ruby\r\nmd5 = Digest::MD5.file('path_to_file').hexdigest \r\n```\r\n\r\nhttp://developers.appoxy.com/2010/05/md5-hash-of-file-in-ruby.html"}}