{"action":"created","comment":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments/42024652","id":42024652,"diff_hunk":"@@ -536,7 +536,9 @@ class Meta:\n     content_pk = models.IntegerField('Pk du contenu publié', db_index=True)\n \n     publication_date = models.DateTimeField('Date de publication', db_index=True, blank=True, null=True)\n+    update_date = models.DateTimeField('Date de mise à jour', db_index=True, blank=True, null=True, default=None)\n     sha_public = models.CharField('Sha1 de la version publiée', blank=True, null=True, max_length=80, db_index=True)\n+    description = models.CharField('Description', max_length=200, default=\"\")","path":"zds/tutorialv2/models/models_database.py","position":6,"original_position":6,"commit_id":"a5006c7e1bcab3bb7f76cc9f0f954a055c9661c3","original_commit_id":"a5006c7e1bcab3bb7f76cc9f0f954a055c9661c3","user":{"login":"artragis","id":1523653,"avatar_url":"https://avatars.githubusercontent.com/u/1523653?v=3","gravatar_id":"","url":"https://api.github.com/users/artragis","html_url":"https://github.com/artragis","followers_url":"https://api.github.com/users/artragis/followers","following_url":"https://api.github.com/users/artragis/following{/other_user}","gists_url":"https://api.github.com/users/artragis/gists{/gist_id}","starred_url":"https://api.github.com/users/artragis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artragis/subscriptions","organizations_url":"https://api.github.com/users/artragis/orgs","repos_url":"https://api.github.com/users/artragis/repos","events_url":"https://api.github.com/users/artragis/events{/privacy}","received_events_url":"https://api.github.com/users/artragis/received_events","type":"User","site_admin":false},"body":"On peut rester avec l'idée de charger le manifest tu sais. Mais il faut \ns'assurer de ne le faire qu'une seule fois.\nC'est un peu trop complexe pour que je le fasse ce soir à même le sol, \nmais je verrai dans les jours qui viennent, la zep 12 n'a que trop duré.\n\nLe 14/10/2015 19:25, Pierre Beaujean a écrit :\n>\n> In zds/tutorialv2/models/models_database.py \n> <https://github.com/zestedesavoir/zds-site/pull/3091#discussion_r42024275>:\n>\n> >      sha_public = models.CharField('Sha1 de la version publiée', blank=True, null=True, max_length=80, db_index=True)\n> > +    description = models.CharField('Description', max_length=200, default=\"\")\n>\n> C'est pas de la flemmme, c'est de la performance. À la base, quand \n> j'ai pensé |PublishedContent| je me suis dis \"de quoi on a besoin sans \n> aller taper dans le |manifest| sur la liste des tutos/articles\" ? J'ai \n> donc choisi de mettre le minimum nécéssaire d'infos (sachant qu'il y a \n> toujours toujours ce qui n'est pas versionné dans la BDD dans l'objet \n> |PublishableContent|). Grosso modo, qu'est ce que ça donne ? Le slug \n> (résolution d'URL), le pk (résolution d'URL), le type (pour faire \n> rapidement le tri), le sha (ça sert à récupérer le bon manifest le cas \n> échéant) et c'est tout. Force est de constater que je me suis planté \n> sur l'utilité du titre. Du coup, l'argument tient pour la description \n> : on en a besoin pour la liste des articles.\n>\n> —\n> Reply to this email directly or view it on GitHub \n> <https://github.com/zestedesavoir/zds-site/pull/3091/files#r42024275>.\n>\n\n","created_at":"2015-10-14T17:28:01Z","updated_at":"2015-10-14T17:28:01Z","html_url":"https://github.com/zestedesavoir/zds-site/pull/3091#discussion_r42024652","pull_request_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/3091","_links":{"self":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments/42024652"},"html":{"href":"https://github.com/zestedesavoir/zds-site/pull/3091#discussion_r42024652"},"pull_request":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/3091"}}},"pull_request":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/3091","id":47648752,"html_url":"https://github.com/zestedesavoir/zds-site/pull/3091","diff_url":"https://github.com/zestedesavoir/zds-site/pull/3091.diff","patch_url":"https://github.com/zestedesavoir/zds-site/pull/3091.patch","issue_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/3091","number":3091,"state":"open","locked":false,"title":"[15.9 RC4]Améliore le PublishedContent pour éviter les incohérences","user":{"login":"artragis","id":1523653,"avatar_url":"https://avatars.githubusercontent.com/u/1523653?v=3","gravatar_id":"","url":"https://api.github.com/users/artragis","html_url":"https://github.com/artragis","followers_url":"https://api.github.com/users/artragis/followers","following_url":"https://api.github.com/users/artragis/following{/other_user}","gists_url":"https://api.github.com/users/artragis/gists{/gist_id}","starred_url":"https://api.github.com/users/artragis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artragis/subscriptions","organizations_url":"https://api.github.com/users/artragis/orgs","repos_url":"https://api.github.com/users/artragis/repos","events_url":"https://api.github.com/users/artragis/events{/privacy}","received_events_url":"https://api.github.com/users/artragis/received_events","type":"User","site_admin":false},"body":"| Q                             | R\r\n| ----------------------------- | -------------------------------------------\r\n| Correction de bugs ?          | [oui]\r\n| Nouvelle Fonctionnalité ?     | [non]\r\n| Tickets (_issues_) concernés  | [#3090, #3086 ]\r\n\r\nOn utilise correctement le PublishedContent pour que tout soit transparent face au lecteur.\r\n\r\nUn second commit arrive avec la maj du template.","created_at":"2015-10-14T11:48:12Z","updated_at":"2015-10-14T17:28:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e3be01936bfde9b2ebba951205cc23818a4849a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/3091/commits","review_comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/3091/comments","review_comment_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/3091/comments","statuses_url":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/a5006c7e1bcab3bb7f76cc9f0f954a055c9661c3","head":{"label":"artragis:use_published_content","ref":"use_published_content","sha":"a5006c7e1bcab3bb7f76cc9f0f954a055c9661c3","user":{"login":"artragis","id":1523653,"avatar_url":"https://avatars.githubusercontent.com/u/1523653?v=3","gravatar_id":"","url":"https://api.github.com/users/artragis","html_url":"https://github.com/artragis","followers_url":"https://api.github.com/users/artragis/followers","following_url":"https://api.github.com/users/artragis/following{/other_user}","gists_url":"https://api.github.com/users/artragis/gists{/gist_id}","starred_url":"https://api.github.com/users/artragis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artragis/subscriptions","organizations_url":"https://api.github.com/users/artragis/orgs","repos_url":"https://api.github.com/users/artragis/repos","events_url":"https://api.github.com/users/artragis/events{/privacy}","received_events_url":"https://api.github.com/users/artragis/received_events","type":"User","site_admin":false},"repo":{"id":20302770,"name":"zds-site","full_name":"artragis/zds-site","owner":{"login":"artragis","id":1523653,"avatar_url":"https://avatars.githubusercontent.com/u/1523653?v=3","gravatar_id":"","url":"https://api.github.com/users/artragis","html_url":"https://github.com/artragis","followers_url":"https://api.github.com/users/artragis/followers","following_url":"https://api.github.com/users/artragis/following{/other_user}","gists_url":"https://api.github.com/users/artragis/gists{/gist_id}","starred_url":"https://api.github.com/users/artragis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artragis/subscriptions","organizations_url":"https://api.github.com/users/artragis/orgs","repos_url":"https://api.github.com/users/artragis/repos","events_url":"https://api.github.com/users/artragis/events{/privacy}","received_events_url":"https://api.github.com/users/artragis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/artragis/zds-site","description":"Dépot ZDS","fork":true,"url":"https://api.github.com/repos/artragis/zds-site","forks_url":"https://api.github.com/repos/artragis/zds-site/forks","keys_url":"https://api.github.com/repos/artragis/zds-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artragis/zds-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artragis/zds-site/teams","hooks_url":"https://api.github.com/repos/artragis/zds-site/hooks","issue_events_url":"https://api.github.com/repos/artragis/zds-site/issues/events{/number}","events_url":"https://api.github.com/repos/artragis/zds-site/events","assignees_url":"https://api.github.com/repos/artragis/zds-site/assignees{/user}","branches_url":"https://api.github.com/repos/artragis/zds-site/branches{/branch}","tags_url":"https://api.github.com/repos/artragis/zds-site/tags","blobs_url":"https://api.github.com/repos/artragis/zds-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artragis/zds-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artragis/zds-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/artragis/zds-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artragis/zds-site/statuses/{sha}","languages_url":"https://api.github.com/repos/artragis/zds-site/languages","stargazers_url":"https://api.github.com/repos/artragis/zds-site/stargazers","contributors_url":"https://api.github.com/repos/artragis/zds-site/contributors","subscribers_url":"https://api.github.com/repos/artragis/zds-site/subscribers","subscription_url":"https://api.github.com/repos/artragis/zds-site/subscription","commits_url":"https://api.github.com/repos/artragis/zds-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/artragis/zds-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/artragis/zds-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/artragis/zds-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/artragis/zds-site/contents/{+path}","compare_url":"https://api.github.com/repos/artragis/zds-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artragis/zds-site/merges","archive_url":"https://api.github.com/repos/artragis/zds-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artragis/zds-site/downloads","issues_url":"https://api.github.com/repos/artragis/zds-site/issues{/number}","pulls_url":"https://api.github.com/repos/artragis/zds-site/pulls{/number}","milestones_url":"https://api.github.com/repos/artragis/zds-site/milestones{/number}","notifications_url":"https://api.github.com/repos/artragis/zds-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artragis/zds-site/labels{/name}","releases_url":"https://api.github.com/repos/artragis/zds-site/releases{/id}","created_at":"2014-05-29T17:51:23Z","updated_at":"2015-05-08T16:51:46Z","pushed_at":"2015-10-14T17:14:56Z","git_url":"git://github.com/artragis/zds-site.git","ssh_url":"git@github.com:artragis/zds-site.git","clone_url":"https://github.com/artragis/zds-site.git","svn_url":"https://github.com/artragis/zds-site","homepage":null,"size":92106,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"zep_12_double_stack"}},"base":{"label":"zestedesavoir:release-15.9","ref":"release-15.9","sha":"2b12d7dae2f623f9063c75a2a190b43a7bc8ec98","user":{"login":"zestedesavoir","id":7406239,"avatar_url":"https://avatars.githubusercontent.com/u/7406239?v=3","gravatar_id":"","url":"https://api.github.com/users/zestedesavoir","html_url":"https://github.com/zestedesavoir","followers_url":"https://api.github.com/users/zestedesavoir/followers","following_url":"https://api.github.com/users/zestedesavoir/following{/other_user}","gists_url":"https://api.github.com/users/zestedesavoir/gists{/gist_id}","starred_url":"https://api.github.com/users/zestedesavoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zestedesavoir/subscriptions","organizations_url":"https://api.github.com/users/zestedesavoir/orgs","repos_url":"https://api.github.com/users/zestedesavoir/repos","events_url":"https://api.github.com/users/zestedesavoir/events{/privacy}","received_events_url":"https://api.github.com/users/zestedesavoir/received_events","type":"Organization","site_admin":false},"repo":{"id":14778920,"name":"zds-site","full_name":"zestedesavoir/zds-site","owner":{"login":"zestedesavoir","id":7406239,"avatar_url":"https://avatars.githubusercontent.com/u/7406239?v=3","gravatar_id":"","url":"https://api.github.com/users/zestedesavoir","html_url":"https://github.com/zestedesavoir","followers_url":"https://api.github.com/users/zestedesavoir/followers","following_url":"https://api.github.com/users/zestedesavoir/following{/other_user}","gists_url":"https://api.github.com/users/zestedesavoir/gists{/gist_id}","starred_url":"https://api.github.com/users/zestedesavoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zestedesavoir/subscriptions","organizations_url":"https://api.github.com/users/zestedesavoir/orgs","repos_url":"https://api.github.com/users/zestedesavoir/repos","events_url":"https://api.github.com/users/zestedesavoir/events{/privacy}","received_events_url":"https://api.github.com/users/zestedesavoir/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zestedesavoir/zds-site","description":"Dépot ZDS","fork":false,"url":"https://api.github.com/repos/zestedesavoir/zds-site","forks_url":"https://api.github.com/repos/zestedesavoir/zds-site/forks","keys_url":"https://api.github.com/repos/zestedesavoir/zds-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zestedesavoir/zds-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zestedesavoir/zds-site/teams","hooks_url":"https://api.github.com/repos/zestedesavoir/zds-site/hooks","issue_events_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/events{/number}","events_url":"https://api.github.com/repos/zestedesavoir/zds-site/events","assignees_url":"https://api.github.com/repos/zestedesavoir/zds-site/assignees{/user}","branches_url":"https://api.github.com/repos/zestedesavoir/zds-site/branches{/branch}","tags_url":"https://api.github.com/repos/zestedesavoir/zds-site/tags","blobs_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/{sha}","languages_url":"https://api.github.com/repos/zestedesavoir/zds-site/languages","stargazers_url":"https://api.github.com/repos/zestedesavoir/zds-site/stargazers","contributors_url":"https://api.github.com/repos/zestedesavoir/zds-site/contributors","subscribers_url":"https://api.github.com/repos/zestedesavoir/zds-site/subscribers","subscription_url":"https://api.github.com/repos/zestedesavoir/zds-site/subscription","commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/zestedesavoir/zds-site/contents/{+path}","compare_url":"https://api.github.com/repos/zestedesavoir/zds-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zestedesavoir/zds-site/merges","archive_url":"https://api.github.com/repos/zestedesavoir/zds-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zestedesavoir/zds-site/downloads","issues_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues{/number}","pulls_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls{/number}","milestones_url":"https://api.github.com/repos/zestedesavoir/zds-site/milestones{/number}","notifications_url":"https://api.github.com/repos/zestedesavoir/zds-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zestedesavoir/zds-site/labels{/name}","releases_url":"https://api.github.com/repos/zestedesavoir/zds-site/releases{/id}","created_at":"2013-11-28T14:23:48Z","updated_at":"2015-10-10T16:10:00Z","pushed_at":"2015-10-14T17:18:27Z","git_url":"git://github.com/zestedesavoir/zds-site.git","ssh_url":"git@github.com:zestedesavoir/zds-site.git","clone_url":"https://github.com/zestedesavoir/zds-site.git","svn_url":"https://github.com/zestedesavoir/zds-site","homepage":null,"size":168605,"stargazers_count":119,"watchers_count":119,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":92,"mirror_url":null,"open_issues_count":208,"forks":92,"open_issues":208,"watchers":119,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/3091"},"html":{"href":"https://github.com/zestedesavoir/zds-site/pull/3091"},"issue":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/issues/3091"},"comments":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/issues/3091/comments"},"review_comments":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/3091/comments"},"review_comment":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/3091/commits"},"statuses":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/a5006c7e1bcab3bb7f76cc9f0f954a055c9661c3"}}}}