{"action":"created","issue":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/3076","labels_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/3076/labels{/name}","comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/3076/comments","events_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/3076/events","html_url":"https://github.com/zestedesavoir/zds-site/issues/3076","id":111143789,"number":3076,"title":"Le validateur perd le droit de validation lorsque la version change","user":{"login":"pierre-24","id":7889675,"avatar_url":"https://avatars.githubusercontent.com/u/7889675?v=3","gravatar_id":"","url":"https://api.github.com/users/pierre-24","html_url":"https://github.com/pierre-24","followers_url":"https://api.github.com/users/pierre-24/followers","following_url":"https://api.github.com/users/pierre-24/following{/other_user}","gists_url":"https://api.github.com/users/pierre-24/gists{/gist_id}","starred_url":"https://api.github.com/users/pierre-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierre-24/subscriptions","organizations_url":"https://api.github.com/users/pierre-24/orgs","repos_url":"https://api.github.com/users/pierre-24/repos","events_url":"https://api.github.com/users/pierre-24/events{/privacy}","received_events_url":"https://api.github.com/users/pierre-24/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zestedesavoir/zds-site/labels/Back","name":"Back","color":"207de5"},{"url":"https://api.github.com/repos/zestedesavoir/zds-site/labels/Evolution","name":"Evolution","color":"c7def8"},{"url":"https://api.github.com/repos/zestedesavoir/zds-site/labels/Facile","name":"Facile","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-13T09:38:17Z","updated_at":"2015-11-08T08:50:21Z","closed_at":null,"body":"Comme dit dans le titre,\r\n\r\n+ Un auteur passe son contenu en validation ;\r\n+ Un valido le réserve ;\r\n+ L'auteur met à jour la version en validation ;\r\n+ Le validateur recoit un MP pour le prévenir, mais doit re-réserver le contenu.\r\n\r\nIl serait probablement plus pratique de garder le validateur et d'envoyer un MP pour le prévenir. Non ?\r\n\r\nC'est tout con à faire :)"},"comment":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/comments/154789880","html_url":"https://github.com/zestedesavoir/zds-site/issues/3076#issuecomment-154789880","issue_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/3076","id":154789880,"user":{"login":"Vayel","id":6124369,"avatar_url":"https://avatars.githubusercontent.com/u/6124369?v=3","gravatar_id":"","url":"https://api.github.com/users/Vayel","html_url":"https://github.com/Vayel","followers_url":"https://api.github.com/users/Vayel/followers","following_url":"https://api.github.com/users/Vayel/following{/other_user}","gists_url":"https://api.github.com/users/Vayel/gists{/gist_id}","starred_url":"https://api.github.com/users/Vayel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vayel/subscriptions","organizations_url":"https://api.github.com/users/Vayel/orgs","repos_url":"https://api.github.com/users/Vayel/repos","events_url":"https://api.github.com/users/Vayel/events{/privacy}","received_events_url":"https://api.github.com/users/Vayel/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T08:50:21Z","updated_at":"2015-11-08T08:50:21Z","body":"Du coup, je m'intéresse à [cette méthode](https://github.com/zestedesavoir/zds-site/blob/dev/zds/tutorialv2/views/views_validations.py#L98) et j'aurais quelques questions : \r\n\r\n* La création d'un objet `Validation`, c'est bien pour déplacer la version du contenu dite en validation ? Ne peut-on pas plutôt mettre à jour l'objet `old_validation`, s'il existe ?\r\n* A quoi sert https://github.com/zestedesavoir/zds-site/blob/dev/zds/tutorialv2/views/views_validations.py#L106 ?\r\n* Et https://github.com/zestedesavoir/zds-site/blob/dev/zds/tutorialv2/views/views_validations.py#L107 ?\r\n* Et https://github.com/zestedesavoir/zds-site/blob/dev/zds/tutorialv2/views/views_validations.py#L120 ? Je veux dire, pourquoi renseigner le validateur de la nouvelle version en validation si elle n'est pas réservée par défaut ?\r\n\r\nMerci."}}