{"action":"created","issue":{"url":"https://api.github.com/repos/TraceSoftwareInternational/HostMyDocs/issues/46","repository_url":"https://api.github.com/repos/TraceSoftwareInternational/HostMyDocs","labels_url":"https://api.github.com/repos/TraceSoftwareInternational/HostMyDocs/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/TraceSoftwareInternational/HostMyDocs/issues/46/comments","events_url":"https://api.github.com/repos/TraceSoftwareInternational/HostMyDocs/issues/46/events","html_url":"https://github.com/TraceSoftwareInternational/HostMyDocs/pull/46","id":325686520,"number":46,"title":"Added route to delete docs","user":{"login":"jonatjano","id":17279801,"avatar_url":"https://avatars0.githubusercontent.com/u/17279801?v=4","gravatar_id":"","url":"https://api.github.com/users/jonatjano","html_url":"https://github.com/jonatjano","followers_url":"https://api.github.com/users/jonatjano/followers","following_url":"https://api.github.com/users/jonatjano/following{/other_user}","gists_url":"https://api.github.com/users/jonatjano/gists{/gist_id}","starred_url":"https://api.github.com/users/jonatjano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonatjano/subscriptions","organizations_url":"https://api.github.com/users/jonatjano/orgs","repos_url":"https://api.github.com/users/jonatjano/repos","events_url":"https://api.github.com/users/jonatjano/events{/privacy}","received_events_url":"https://api.github.com/users/jonatjano/received_events","type":"User","site_admin":false},"labels":[{"id":504090256,"url":"https://api.github.com/repos/TraceSoftwareInternational/HostMyDocs/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"MattMattV","id":6715182,"avatar_url":"https://avatars3.githubusercontent.com/u/6715182?v=4","gravatar_id":"","url":"https://api.github.com/users/MattMattV","html_url":"https://github.com/MattMattV","followers_url":"https://api.github.com/users/MattMattV/followers","following_url":"https://api.github.com/users/MattMattV/following{/other_user}","gists_url":"https://api.github.com/users/MattMattV/gists{/gist_id}","starred_url":"https://api.github.com/users/MattMattV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattMattV/subscriptions","organizations_url":"https://api.github.com/users/MattMattV/orgs","repos_url":"https://api.github.com/users/MattMattV/repos","events_url":"https://api.github.com/users/MattMattV/events{/privacy}","received_events_url":"https://api.github.com/users/MattMattV/received_events","type":"User","site_admin":false},"assignees":[{"login":"MattMattV","id":6715182,"avatar_url":"https://avatars3.githubusercontent.com/u/6715182?v=4","gravatar_id":"","url":"https://api.github.com/users/MattMattV","html_url":"https://github.com/MattMattV","followers_url":"https://api.github.com/users/MattMattV/followers","following_url":"https://api.github.com/users/MattMattV/following{/other_user}","gists_url":"https://api.github.com/users/MattMattV/gists{/gist_id}","starred_url":"https://api.github.com/users/MattMattV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattMattV/subscriptions","organizations_url":"https://api.github.com/users/MattMattV/orgs","repos_url":"https://api.github.com/users/MattMattV/repos","events_url":"https://api.github.com/users/MattMattV/events{/privacy}","received_events_url":"https://api.github.com/users/MattMattV/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-05-23T12:39:08Z","updated_at":"2018-05-24T09:11:27Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/TraceSoftwareInternational/HostMyDocs/pulls/46","html_url":"https://github.com/TraceSoftwareInternational/HostMyDocs/pull/46","diff_url":"https://github.com/TraceSoftwareInternational/HostMyDocs/pull/46.diff","patch_url":"https://github.com/TraceSoftwareInternational/HostMyDocs/pull/46.patch"},"body":"**Summary**\r\n\r\n<!-- Summary of the PR -->\r\n\r\nThis PR add a delete route to the application used to delete a project or part of it\r\nThe used route is `/BackEnd/deleteProject`\r\nIt take three parameters : \r\n- the `name` of the doc to delete\r\n- the `version` of the doc to delete\r\n- the `language` of the doc to delete\r\n\r\nand use the same authentification as the `/addProject` route\r\n\r\nThings done :\r\n* [x] delete route\r\n    * [x] delete\r\n        * [x] the archive\r\n        * [x] the files\r\n            * [x] the resulting empty folder\r\n    * [x] delete part of the project\r\n        * [x] delete doc for a given `name -> version -> language` combination\r\n        * [x] delete all languages for a given `name -> version` combination\r\n        * [x] delete all version for a give `name`\r\n* [x] create tests\r\n* [x] update README\r\n\r\n<!-- You can skip this if you're fixing a typo or adding an app to the Showcase. -->\r\n\r\n**motivation**\r\n\r\nBefore this change the only way to delete a doc was to use a file system to delete the doc folder manually.\r\n\r\n<!-- Example: When \"Adding a function to do X\", explain why it is necessary to have a way to do X. -->\r\n\r\n**Test plan (required)**\r\n\r\nI used the command found in `.travis.yml` \r\n```bash\r\ndocker run -v \"`pwd`:/home/builder/\" tracesoftware/gitlab-builder:php7-cli /bin/sh -c \"mkdir -p $ARCHIVE_PATH $DOCS_PATH; chmod -R 777 $DATA_PATH; composer update; composer test\"\r\n```\r\nAnd got the following output : \r\n\r\n![capture d ecran de 2018-05-23 14-31-53](https://user-images.githubusercontent.com/17279801/40424694-918dd37e-5e96-11e8-99a0-68f9334e7488.png)\r\n\r\nshowing everything is good.\r\n\r\nI did not run the tests for FrontEnd since I didn't touch it.\r\n\r\n<!-- Make sure tests pass on Travis. -->\r\n\r\n\r\n**Closing issues**\r\n\r\n<!-- Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if such). -->\r\ncloses #42 \r\n"},"comment":{"url":"https://api.github.com/repos/TraceSoftwareInternational/HostMyDocs/issues/comments/391645255","html_url":"https://github.com/TraceSoftwareInternational/HostMyDocs/pull/46#issuecomment-391645255","issue_url":"https://api.github.com/repos/TraceSoftwareInternational/HostMyDocs/issues/46","id":391645255,"user":{"login":"MattMattV","id":6715182,"avatar_url":"https://avatars3.githubusercontent.com/u/6715182?v=4","gravatar_id":"","url":"https://api.github.com/users/MattMattV","html_url":"https://github.com/MattMattV","followers_url":"https://api.github.com/users/MattMattV/followers","following_url":"https://api.github.com/users/MattMattV/following{/other_user}","gists_url":"https://api.github.com/users/MattMattV/gists{/gist_id}","starred_url":"https://api.github.com/users/MattMattV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattMattV/subscriptions","organizations_url":"https://api.github.com/users/MattMattV/orgs","repos_url":"https://api.github.com/users/MattMattV/repos","events_url":"https://api.github.com/users/MattMattV/events{/privacy}","received_events_url":"https://api.github.com/users/MattMattV/received_events","type":"User","site_admin":false},"created_at":"2018-05-24T09:11:27Z","updated_at":"2018-05-24T09:11:27Z","author_association":"MEMBER","body":"Looks go to me ! :)"}}
{"actor":{"display_login":"MattMattV"}}