{"action":"created","comment":{"url":"https://api.github.com/repos/libertempo/web/pulls/comments/241974488","pull_request_review_id":185381417,"id":241974488,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTk3NDQ4OA==","diff_hunk":"@@ -0,0 +1,25 @@\n+#!/usr/bin/env php\n+<?php\n+require_once 'libraries';\n+\n+/**\n+ * Execute la dernière sauvegarde\n+ */\n+function executeBackup() : bool\n+{\n+    $patches = glob(BACKUP_PATH . '*.sql');","path":"App/Tools/restore","position":10,"original_position":10,"commit_id":"b95f7e2c660b66801c59833e3b2d16be7c47c6b0","original_commit_id":"b95f7e2c660b66801c59833e3b2d16be7c47c6b0","user":{"login":"wouldsmina","id":12614881,"node_id":"MDQ6VXNlcjEyNjE0ODgx","avatar_url":"https://avatars2.githubusercontent.com/u/12614881?v=4","gravatar_id":"","url":"https://api.github.com/users/wouldsmina","html_url":"https://github.com/wouldsmina","followers_url":"https://api.github.com/users/wouldsmina/followers","following_url":"https://api.github.com/users/wouldsmina/following{/other_user}","gists_url":"https://api.github.com/users/wouldsmina/gists{/gist_id}","starred_url":"https://api.github.com/users/wouldsmina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wouldsmina/subscriptions","organizations_url":"https://api.github.com/users/wouldsmina/orgs","repos_url":"https://api.github.com/users/wouldsmina/repos","events_url":"https://api.github.com/users/wouldsmina/events{/privacy}","received_events_url":"https://api.github.com/users/wouldsmina/received_events","type":"User","site_admin":false},"body":"Backup_v1.12_111218_2037.sql\nAinsi, on sais quand la backup a été effectuée et surtout pas de risque d'écraser une ancienne backup.","created_at":"2018-12-16T10:09:10Z","updated_at":"2018-12-16T10:09:10Z","html_url":"https://github.com/libertempo/web/pull/758#discussion_r241974488","pull_request_url":"https://api.github.com/repos/libertempo/web/pulls/758","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/libertempo/web/pulls/comments/241974488"},"html":{"href":"https://github.com/libertempo/web/pull/758#discussion_r241974488"},"pull_request":{"href":"https://api.github.com/repos/libertempo/web/pulls/758"}},"in_reply_to_id":241963202},"pull_request":{"url":"https://api.github.com/repos/libertempo/web/pulls/758","id":237128179,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3MTI4MTc5","html_url":"https://github.com/libertempo/web/pull/758","diff_url":"https://github.com/libertempo/web/pull/758.diff","patch_url":"https://github.com/libertempo/web/pull/758.patch","issue_url":"https://api.github.com/repos/libertempo/web/issues/758","number":758,"state":"open","locked":false,"title":"Sauvegarde et suppression en CLI seulement","user":{"login":"prytoegrian","id":5312739,"node_id":"MDQ6VXNlcjUzMTI3Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/5312739?v=4","gravatar_id":"","url":"https://api.github.com/users/prytoegrian","html_url":"https://github.com/prytoegrian","followers_url":"https://api.github.com/users/prytoegrian/followers","following_url":"https://api.github.com/users/prytoegrian/following{/other_user}","gists_url":"https://api.github.com/users/prytoegrian/gists{/gist_id}","starred_url":"https://api.github.com/users/prytoegrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prytoegrian/subscriptions","organizations_url":"https://api.github.com/users/prytoegrian/orgs","repos_url":"https://api.github.com/users/prytoegrian/repos","events_url":"https://api.github.com/users/prytoegrian/events{/privacy}","received_events_url":"https://api.github.com/users/prytoegrian/received_events","type":"User","site_admin":false},"body":"Désormais que l'admin n'est plus, les responsabilités qui lui étaient accordés étaient transférées au HR. Mais un HR n'est pas forcément le plus qualifié pour monter un fichier SQL et la méthode par app web privait de tout automatisme. De plus, j'ai une forte présomption sur le danger de cette fonctionnalité en web.\r\n\r\nAussi, j'ai mis les mécaniques de sauvegarde et de restauration dans le CLI seulement : \r\n- on peut sauvegarder et restaurer quand on veut\r\n- la sauvegarde est automatiquement faite lors d'un update\r\n\r\nMon souhait serait qu'en cas d'erreur dans une opération CLI, une restauration se fasse automatiquement, mais chaque chose en son temps.","created_at":"2018-12-09T12:41:58Z","updated_at":"2018-12-16T10:09:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97595b83df6edfcf887a21716f4286ab937d1583","assignee":{"login":"prytoegrian","id":5312739,"node_id":"MDQ6VXNlcjUzMTI3Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/5312739?v=4","gravatar_id":"","url":"https://api.github.com/users/prytoegrian","html_url":"https://github.com/prytoegrian","followers_url":"https://api.github.com/users/prytoegrian/followers","following_url":"https://api.github.com/users/prytoegrian/following{/other_user}","gists_url":"https://api.github.com/users/prytoegrian/gists{/gist_id}","starred_url":"https://api.github.com/users/prytoegrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prytoegrian/subscriptions","organizations_url":"https://api.github.com/users/prytoegrian/orgs","repos_url":"https://api.github.com/users/prytoegrian/repos","events_url":"https://api.github.com/users/prytoegrian/events{/privacy}","received_events_url":"https://api.github.com/users/prytoegrian/received_events","type":"User","site_admin":false},"assignees":[{"login":"prytoegrian","id":5312739,"node_id":"MDQ6VXNlcjUzMTI3Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/5312739?v=4","gravatar_id":"","url":"https://api.github.com/users/prytoegrian","html_url":"https://github.com/prytoegrian","followers_url":"https://api.github.com/users/prytoegrian/followers","following_url":"https://api.github.com/users/prytoegrian/following{/other_user}","gists_url":"https://api.github.com/users/prytoegrian/gists{/gist_id}","starred_url":"https://api.github.com/users/prytoegrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prytoegrian/subscriptions","organizations_url":"https://api.github.com/users/prytoegrian/orgs","repos_url":"https://api.github.com/users/prytoegrian/repos","events_url":"https://api.github.com/users/prytoegrian/events{/privacy}","received_events_url":"https://api.github.com/users/prytoegrian/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":273082969,"node_id":"MDU6TGFiZWwyNzMwODI5Njk=","url":"https://api.github.com/repos/libertempo/web/labels/Fonctionnalit%C3%A9","name":"Fonctionnalité","color":"eb6420","default":false},{"id":506763698,"node_id":"MDU6TGFiZWw1MDY3NjM2OTg=","url":"https://api.github.com/repos/libertempo/web/labels/Syst%C3%A8me","name":"Système","color":"aaeecc","default":false},{"id":1098486183,"node_id":"MDU6TGFiZWwxMDk4NDg2MTgz","url":"https://api.github.com/repos/libertempo/web/labels/security","name":"security","color":"ee0701","default":false},{"id":588414290,"node_id":"MDU6TGFiZWw1ODg0MTQyOTA=","url":"https://api.github.com/repos/libertempo/web/labels/%C3%80%20retoucher","name":"À retoucher","color":"F98829","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/libertempo/web/pulls/758/commits","review_comments_url":"https://api.github.com/repos/libertempo/web/pulls/758/comments","review_comment_url":"https://api.github.com/repos/libertempo/web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/libertempo/web/issues/758/comments","statuses_url":"https://api.github.com/repos/libertempo/web/statuses/b95f7e2c660b66801c59833e3b2d16be7c47c6b0","head":{"label":"libertempo:pry/sauvegardeRestaure","ref":"pry/sauvegardeRestaure","sha":"b95f7e2c660b66801c59833e3b2d16be7c47c6b0","user":{"login":"libertempo","id":25099929,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDk5OTI5","avatar_url":"https://avatars0.githubusercontent.com/u/25099929?v=4","gravatar_id":"","url":"https://api.github.com/users/libertempo","html_url":"https://github.com/libertempo","followers_url":"https://api.github.com/users/libertempo/followers","following_url":"https://api.github.com/users/libertempo/following{/other_user}","gists_url":"https://api.github.com/users/libertempo/gists{/gist_id}","starred_url":"https://api.github.com/users/libertempo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libertempo/subscriptions","organizations_url":"https://api.github.com/users/libertempo/orgs","repos_url":"https://api.github.com/users/libertempo/repos","events_url":"https://api.github.com/users/libertempo/events{/privacy}","received_events_url":"https://api.github.com/users/libertempo/received_events","type":"Organization","site_admin":false},"repo":{"id":36316571,"node_id":"MDEwOlJlcG9zaXRvcnkzNjMxNjU3MQ==","name":"web","full_name":"libertempo/web","private":false,"owner":{"login":"libertempo","id":25099929,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDk5OTI5","avatar_url":"https://avatars0.githubusercontent.com/u/25099929?v=4","gravatar_id":"","url":"https://api.github.com/users/libertempo","html_url":"https://github.com/libertempo","followers_url":"https://api.github.com/users/libertempo/followers","following_url":"https://api.github.com/users/libertempo/following{/other_user}","gists_url":"https://api.github.com/users/libertempo/gists{/gist_id}","starred_url":"https://api.github.com/users/libertempo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libertempo/subscriptions","organizations_url":"https://api.github.com/users/libertempo/orgs","repos_url":"https://api.github.com/users/libertempo/repos","events_url":"https://api.github.com/users/libertempo/events{/privacy}","received_events_url":"https://api.github.com/users/libertempo/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/libertempo/web","description":"Application web de gestion des congés en ligne","fork":false,"url":"https://api.github.com/repos/libertempo/web","forks_url":"https://api.github.com/repos/libertempo/web/forks","keys_url":"https://api.github.com/repos/libertempo/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/libertempo/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/libertempo/web/teams","hooks_url":"https://api.github.com/repos/libertempo/web/hooks","issue_events_url":"https://api.github.com/repos/libertempo/web/issues/events{/number}","events_url":"https://api.github.com/repos/libertempo/web/events","assignees_url":"https://api.github.com/repos/libertempo/web/assignees{/user}","branches_url":"https://api.github.com/repos/libertempo/web/branches{/branch}","tags_url":"https://api.github.com/repos/libertempo/web/tags","blobs_url":"https://api.github.com/repos/libertempo/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/libertempo/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/libertempo/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/libertempo/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/libertempo/web/statuses/{sha}","languages_url":"https://api.github.com/repos/libertempo/web/languages","stargazers_url":"https://api.github.com/repos/libertempo/web/stargazers","contributors_url":"https://api.github.com/repos/libertempo/web/contributors","subscribers_url":"https://api.github.com/repos/libertempo/web/subscribers","subscription_url":"https://api.github.com/repos/libertempo/web/subscription","commits_url":"https://api.github.com/repos/libertempo/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/libertempo/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/libertempo/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/libertempo/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/libertempo/web/contents/{+path}","compare_url":"https://api.github.com/repos/libertempo/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/libertempo/web/merges","archive_url":"https://api.github.com/repos/libertempo/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/libertempo/web/downloads","issues_url":"https://api.github.com/repos/libertempo/web/issues{/number}","pulls_url":"https://api.github.com/repos/libertempo/web/pulls{/number}","milestones_url":"https://api.github.com/repos/libertempo/web/milestones{/number}","notifications_url":"https://api.github.com/repos/libertempo/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/libertempo/web/labels{/name}","releases_url":"https://api.github.com/repos/libertempo/web/releases{/id}","deployments_url":"https://api.github.com/repos/libertempo/web/deployments","created_at":"2015-05-26T18:46:52Z","updated_at":"2018-12-13T00:40:07Z","pushed_at":"2018-12-16T09:39:37Z","git_url":"git://github.com/libertempo/web.git","ssh_url":"git@github.com:libertempo/web.git","clone_url":"https://github.com/libertempo/web.git","svn_url":"https://github.com/libertempo/web","homepage":"","size":40609,"stargazers_count":57,"watchers_count":57,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"archived":false,"open_issues_count":90,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":45,"open_issues":90,"watchers":57,"default_branch":"develop"}},"base":{"label":"libertempo:develop","ref":"develop","sha":"d72f79205cb6a3c2f50f94cca871676ce5f0b797","user":{"login":"libertempo","id":25099929,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDk5OTI5","avatar_url":"https://avatars0.githubusercontent.com/u/25099929?v=4","gravatar_id":"","url":"https://api.github.com/users/libertempo","html_url":"https://github.com/libertempo","followers_url":"https://api.github.com/users/libertempo/followers","following_url":"https://api.github.com/users/libertempo/following{/other_user}","gists_url":"https://api.github.com/users/libertempo/gists{/gist_id}","starred_url":"https://api.github.com/users/libertempo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libertempo/subscriptions","organizations_url":"https://api.github.com/users/libertempo/orgs","repos_url":"https://api.github.com/users/libertempo/repos","events_url":"https://api.github.com/users/libertempo/events{/privacy}","received_events_url":"https://api.github.com/users/libertempo/received_events","type":"Organization","site_admin":false},"repo":{"id":36316571,"node_id":"MDEwOlJlcG9zaXRvcnkzNjMxNjU3MQ==","name":"web","full_name":"libertempo/web","private":false,"owner":{"login":"libertempo","id":25099929,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDk5OTI5","avatar_url":"https://avatars0.githubusercontent.com/u/25099929?v=4","gravatar_id":"","url":"https://api.github.com/users/libertempo","html_url":"https://github.com/libertempo","followers_url":"https://api.github.com/users/libertempo/followers","following_url":"https://api.github.com/users/libertempo/following{/other_user}","gists_url":"https://api.github.com/users/libertempo/gists{/gist_id}","starred_url":"https://api.github.com/users/libertempo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libertempo/subscriptions","organizations_url":"https://api.github.com/users/libertempo/orgs","repos_url":"https://api.github.com/users/libertempo/repos","events_url":"https://api.github.com/users/libertempo/events{/privacy}","received_events_url":"https://api.github.com/users/libertempo/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/libertempo/web","description":"Application web de gestion des congés en ligne","fork":false,"url":"https://api.github.com/repos/libertempo/web","forks_url":"https://api.github.com/repos/libertempo/web/forks","keys_url":"https://api.github.com/repos/libertempo/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/libertempo/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/libertempo/web/teams","hooks_url":"https://api.github.com/repos/libertempo/web/hooks","issue_events_url":"https://api.github.com/repos/libertempo/web/issues/events{/number}","events_url":"https://api.github.com/repos/libertempo/web/events","assignees_url":"https://api.github.com/repos/libertempo/web/assignees{/user}","branches_url":"https://api.github.com/repos/libertempo/web/branches{/branch}","tags_url":"https://api.github.com/repos/libertempo/web/tags","blobs_url":"https://api.github.com/repos/libertempo/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/libertempo/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/libertempo/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/libertempo/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/libertempo/web/statuses/{sha}","languages_url":"https://api.github.com/repos/libertempo/web/languages","stargazers_url":"https://api.github.com/repos/libertempo/web/stargazers","contributors_url":"https://api.github.com/repos/libertempo/web/contributors","subscribers_url":"https://api.github.com/repos/libertempo/web/subscribers","subscription_url":"https://api.github.com/repos/libertempo/web/subscription","commits_url":"https://api.github.com/repos/libertempo/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/libertempo/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/libertempo/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/libertempo/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/libertempo/web/contents/{+path}","compare_url":"https://api.github.com/repos/libertempo/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/libertempo/web/merges","archive_url":"https://api.github.com/repos/libertempo/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/libertempo/web/downloads","issues_url":"https://api.github.com/repos/libertempo/web/issues{/number}","pulls_url":"https://api.github.com/repos/libertempo/web/pulls{/number}","milestones_url":"https://api.github.com/repos/libertempo/web/milestones{/number}","notifications_url":"https://api.github.com/repos/libertempo/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/libertempo/web/labels{/name}","releases_url":"https://api.github.com/repos/libertempo/web/releases{/id}","deployments_url":"https://api.github.com/repos/libertempo/web/deployments","created_at":"2015-05-26T18:46:52Z","updated_at":"2018-12-13T00:40:07Z","pushed_at":"2018-12-16T09:39:37Z","git_url":"git://github.com/libertempo/web.git","ssh_url":"git@github.com:libertempo/web.git","clone_url":"https://github.com/libertempo/web.git","svn_url":"https://github.com/libertempo/web","homepage":"","size":40609,"stargazers_count":57,"watchers_count":57,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"archived":false,"open_issues_count":90,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":45,"open_issues":90,"watchers":57,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/libertempo/web/pulls/758"},"html":{"href":"https://github.com/libertempo/web/pull/758"},"issue":{"href":"https://api.github.com/repos/libertempo/web/issues/758"},"comments":{"href":"https://api.github.com/repos/libertempo/web/issues/758/comments"},"review_comments":{"href":"https://api.github.com/repos/libertempo/web/pulls/758/comments"},"review_comment":{"href":"https://api.github.com/repos/libertempo/web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/libertempo/web/pulls/758/commits"},"statuses":{"href":"https://api.github.com/repos/libertempo/web/statuses/b95f7e2c660b66801c59833e3b2d16be7c47c6b0"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"wouldsmina"}}