{"action":"created","comment":{"url":"https://api.github.com/repos/sgmap/inspire-next/pulls/comments/92828925","pull_request_review_id":13351613,"id":92828925,"diff_hunk":"@@ -44,7 +45,8 @@ const CatalogPreview = ({ catalog }) => {\n     <Link to={`/catalogs/${catalog._id}`} style={styles.link}>\n       <div style={styles.paper}>\n         <div style={styles.title}>{catalog.name}</div>\n-        <LastHarvestStatus harvest={catalog.service.sync}/>\n+        <LastHarvestStatus harvest={catalog.service.sync} />\n+        <ObsoleteWarning catalog={catalog} />","path":"src/components/Catalog/CatalogPreview.js","position":14,"original_position":14,"commit_id":"5886f6bd001cffe5c6d20e881dd8227cc98e9545","original_commit_id":"5886f6bd001cffe5c6d20e881dd8227cc98e9545","user":{"login":"tmerlier","id":7040549,"avatar_url":"https://avatars.githubusercontent.com/u/7040549?v=3","gravatar_id":"","url":"https://api.github.com/users/tmerlier","html_url":"https://github.com/tmerlier","followers_url":"https://api.github.com/users/tmerlier/followers","following_url":"https://api.github.com/users/tmerlier/following{/other_user}","gists_url":"https://api.github.com/users/tmerlier/gists{/gist_id}","starred_url":"https://api.github.com/users/tmerlier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmerlier/subscriptions","organizations_url":"https://api.github.com/users/tmerlier/orgs","repos_url":"https://api.github.com/users/tmerlier/repos","events_url":"https://api.github.com/users/tmerlier/events{/privacy}","received_events_url":"https://api.github.com/users/tmerlier/received_events","type":"User","site_admin":false},"body":"`refDate ` n'est jamais défini et sera donc toujours égal à `new Date()`","created_at":"2016-12-16T15:20:30Z","updated_at":"2016-12-16T15:20:40Z","html_url":"https://github.com/sgmap/inspire-next/pull/147#discussion_r92828925","pull_request_url":"https://api.github.com/repos/sgmap/inspire-next/pulls/147","_links":{"self":{"href":"https://api.github.com/repos/sgmap/inspire-next/pulls/comments/92828925"},"html":{"href":"https://github.com/sgmap/inspire-next/pull/147#discussion_r92828925"},"pull_request":{"href":"https://api.github.com/repos/sgmap/inspire-next/pulls/147"}}},"pull_request":{"url":"https://api.github.com/repos/sgmap/inspire-next/pulls/147","id":98347932,"html_url":"https://github.com/sgmap/inspire-next/pull/147","diff_url":"https://github.com/sgmap/inspire-next/pull/147.diff","patch_url":"https://github.com/sgmap/inspire-next/pull/147.patch","issue_url":"https://api.github.com/repos/sgmap/inspire-next/issues/147","number":147,"state":"open","locked":false,"title":"Tri des catalogues et avertissement pour les vieux catalogues","user":{"login":"jdesboeufs","id":1231232,"avatar_url":"https://avatars.githubusercontent.com/u/1231232?v=3","gravatar_id":"","url":"https://api.github.com/users/jdesboeufs","html_url":"https://github.com/jdesboeufs","followers_url":"https://api.github.com/users/jdesboeufs/followers","following_url":"https://api.github.com/users/jdesboeufs/following{/other_user}","gists_url":"https://api.github.com/users/jdesboeufs/gists{/gist_id}","starred_url":"https://api.github.com/users/jdesboeufs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdesboeufs/subscriptions","organizations_url":"https://api.github.com/users/jdesboeufs/orgs","repos_url":"https://api.github.com/users/jdesboeufs/repos","events_url":"https://api.github.com/users/jdesboeufs/events{/privacy}","received_events_url":"https://api.github.com/users/jdesboeufs/received_events","type":"User","site_admin":false},"body":"Cette PR met en place un tri non-empirique des catalogues.\r\n\r\nL'algorithme de scoring initial est :\r\n\r\n`indicateur d'obsolescence` x `pourcentage de données téléchargeables` ^ 2 x `pourcentage de données ouvertes`\r\n\r\nL'indicateur d'obsolescence vaut :\r\n\r\n* 100 si le catalogue a été mis à jour il y a moins de 1 mois\r\n* 10 si le catalogue a été mis à jour il y a moins de 6 mois\r\n* 1 sinon\r\n\r\nRésultat :\r\n\r\n<img width=\"1149\" alt=\"capture d ecran 2016-12-16 a 16 14 48\" src=\"https://cloud.githubusercontent.com/assets/1231232/21267496/e5633152-c3aa-11e6-9008-e826df6b550a.png\">\r\n\r\nOn affiche aussi un avertissement lorsqu'un catalogue n'a pas été mis à jour depuis plus de 6 mois.\r\n\r\n<img width=\"328\" alt=\"capture d ecran 2016-12-16 a 16 15 03\" src=\"https://cloud.githubusercontent.com/assets/1231232/21267506/ede33520-c3aa-11e6-981f-6f4825f83489.png\">\r\n","created_at":"2016-12-16T14:57:17Z","updated_at":"2016-12-16T15:22:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d552a22b0a37f565439233259f146ae5cf992cbb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sgmap/inspire-next/pulls/147/commits","review_comments_url":"https://api.github.com/repos/sgmap/inspire-next/pulls/147/comments","review_comment_url":"https://api.github.com/repos/sgmap/inspire-next/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sgmap/inspire-next/issues/147/comments","statuses_url":"https://api.github.com/repos/sgmap/inspire-next/statuses/5886f6bd001cffe5c6d20e881dd8227cc98e9545","head":{"label":"sgmap:catalog-obsolescence","ref":"catalog-obsolescence","sha":"5886f6bd001cffe5c6d20e881dd8227cc98e9545","user":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"repo":{"id":67130793,"name":"inspire-next","full_name":"sgmap/inspire-next","owner":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sgmap/inspire-next","description":"La passerelle INSPIRE du futur","fork":false,"url":"https://api.github.com/repos/sgmap/inspire-next","forks_url":"https://api.github.com/repos/sgmap/inspire-next/forks","keys_url":"https://api.github.com/repos/sgmap/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgmap/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgmap/inspire-next/teams","hooks_url":"https://api.github.com/repos/sgmap/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/sgmap/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/sgmap/inspire-next/events","assignees_url":"https://api.github.com/repos/sgmap/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/sgmap/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/sgmap/inspire-next/tags","blobs_url":"https://api.github.com/repos/sgmap/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgmap/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgmap/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgmap/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgmap/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/sgmap/inspire-next/languages","stargazers_url":"https://api.github.com/repos/sgmap/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/sgmap/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/sgmap/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/sgmap/inspire-next/subscription","commits_url":"https://api.github.com/repos/sgmap/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgmap/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgmap/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgmap/inspire-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgmap/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/sgmap/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgmap/inspire-next/merges","archive_url":"https://api.github.com/repos/sgmap/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgmap/inspire-next/downloads","issues_url":"https://api.github.com/repos/sgmap/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/sgmap/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/sgmap/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/sgmap/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgmap/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/sgmap/inspire-next/releases{/id}","deployments_url":"https://api.github.com/repos/sgmap/inspire-next/deployments","created_at":"2016-09-01T12:51:35Z","updated_at":"2016-11-07T15:35:50Z","pushed_at":"2016-12-16T15:12:25Z","git_url":"git://github.com/sgmap/inspire-next.git","ssh_url":"git@github.com:sgmap/inspire-next.git","clone_url":"https://github.com/sgmap/inspire-next.git","svn_url":"https://github.com/sgmap/inspire-next","homepage":"https://inspire.beta.gouv.fr","size":24350,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":1,"default_branch":"master"}},"base":{"label":"sgmap:master","ref":"master","sha":"bd0f88a939e66aac3759fb0d42c66ff9d74497ce","user":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"repo":{"id":67130793,"name":"inspire-next","full_name":"sgmap/inspire-next","owner":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sgmap/inspire-next","description":"La passerelle INSPIRE du futur","fork":false,"url":"https://api.github.com/repos/sgmap/inspire-next","forks_url":"https://api.github.com/repos/sgmap/inspire-next/forks","keys_url":"https://api.github.com/repos/sgmap/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgmap/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgmap/inspire-next/teams","hooks_url":"https://api.github.com/repos/sgmap/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/sgmap/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/sgmap/inspire-next/events","assignees_url":"https://api.github.com/repos/sgmap/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/sgmap/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/sgmap/inspire-next/tags","blobs_url":"https://api.github.com/repos/sgmap/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgmap/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgmap/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgmap/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgmap/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/sgmap/inspire-next/languages","stargazers_url":"https://api.github.com/repos/sgmap/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/sgmap/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/sgmap/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/sgmap/inspire-next/subscription","commits_url":"https://api.github.com/repos/sgmap/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgmap/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgmap/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgmap/inspire-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgmap/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/sgmap/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgmap/inspire-next/merges","archive_url":"https://api.github.com/repos/sgmap/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgmap/inspire-next/downloads","issues_url":"https://api.github.com/repos/sgmap/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/sgmap/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/sgmap/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/sgmap/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgmap/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/sgmap/inspire-next/releases{/id}","deployments_url":"https://api.github.com/repos/sgmap/inspire-next/deployments","created_at":"2016-09-01T12:51:35Z","updated_at":"2016-11-07T15:35:50Z","pushed_at":"2016-12-16T15:12:25Z","git_url":"git://github.com/sgmap/inspire-next.git","ssh_url":"git@github.com:sgmap/inspire-next.git","clone_url":"https://github.com/sgmap/inspire-next.git","svn_url":"https://github.com/sgmap/inspire-next","homepage":"https://inspire.beta.gouv.fr","size":24350,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sgmap/inspire-next/pulls/147"},"html":{"href":"https://github.com/sgmap/inspire-next/pull/147"},"issue":{"href":"https://api.github.com/repos/sgmap/inspire-next/issues/147"},"comments":{"href":"https://api.github.com/repos/sgmap/inspire-next/issues/147/comments"},"review_comments":{"href":"https://api.github.com/repos/sgmap/inspire-next/pulls/147/comments"},"review_comment":{"href":"https://api.github.com/repos/sgmap/inspire-next/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sgmap/inspire-next/pulls/147/commits"},"statuses":{"href":"https://api.github.com/repos/sgmap/inspire-next/statuses/5886f6bd001cffe5c6d20e881dd8227cc98e9545"}}}}
{"actor":{"display_login":"tmerlier"}}