{"action":"created","comment":{"url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/pulls/comments/233844819","pull_request_review_id":175352405,"id":233844819,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzg0NDgxOQ==","diff_hunk":"@@ -38,31 +41,12 @@ const FormSearchButton = () => (\n   </button>\n );\n \n-const memoFetch = memoizee(\n-  url =>\n-    fetch(url).then(r => {\n-      if (r.status === 200) {\n-        return r.json();\n-      } else {\n-        return Promise.reject(\"Un problème est survenu.\");\n-      }\n-    }),\n-  {\n-    promise: true\n-  }\n-);\n-\n const {\n   publicRuntimeConfig: { API_URL }\n } = getConfig();\n \n const fetchResults = (query, endPoint = \"search\", excludeSources) => {\n-  let urlParams = new URLSearchParams();\n-  urlParams.append(\"q\", query);\n-  if (excludeSources) {\n-    urlParams.append(\"excludeSources\", excludeSources);\n-  }\n-  const url = `${API_URL}/${endPoint}?${urlParams.toString()}`;\n+  const url = `${API_URL}/${endPoint}?q=${query}&excludeSources=${excludeSources}`;","path":"packages/code-du-travail-frontend/src/search/Search.js","position":46,"original_position":46,"commit_id":"9dd5fc09e7ac580d870a84340be393aba4b7ca57","original_commit_id":"9dd5fc09e7ac580d870a84340be393aba4b7ca57","user":{"login":"revolunet","id":124937,"node_id":"MDQ6VXNlcjEyNDkzNw==","avatar_url":"https://avatars0.githubusercontent.com/u/124937?v=4","gravatar_id":"","url":"https://api.github.com/users/revolunet","html_url":"https://github.com/revolunet","followers_url":"https://api.github.com/users/revolunet/followers","following_url":"https://api.github.com/users/revolunet/following{/other_user}","gists_url":"https://api.github.com/users/revolunet/gists{/gist_id}","starred_url":"https://api.github.com/users/revolunet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revolunet/subscriptions","organizations_url":"https://api.github.com/users/revolunet/orgs","repos_url":"https://api.github.com/users/revolunet/repos","events_url":"https://api.github.com/users/revolunet/events{/privacy}","received_events_url":"https://api.github.com/users/revolunet/received_events","type":"User","site_admin":false},"body":"pas sûr mais il faudrait ptretre `encodeURIComponent` ici; si la query contient \"?\" (comme indiqué dans le placeholder) car risque de changer le résultat ?","created_at":"2018-11-15T13:41:33Z","updated_at":"2018-11-15T13:52:38Z","html_url":"https://github.com/SocialGouv/code-du-travail-numerique/pull/269#discussion_r233844819","pull_request_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/pulls/269","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/pulls/comments/233844819"},"html":{"href":"https://github.com/SocialGouv/code-du-travail-numerique/pull/269#discussion_r233844819"},"pull_request":{"href":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/pulls/269"}}},"pull_request":{"url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/pulls/269","id":230421989,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNDIxOTg5","html_url":"https://github.com/SocialGouv/code-du-travail-numerique/pull/269","diff_url":"https://github.com/SocialGouv/code-du-travail-numerique/pull/269.diff","patch_url":"https://github.com/SocialGouv/code-du-travail-numerique/pull/269.patch","issue_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/issues/269","number":269,"state":"open","locked":false,"title":"Lionelb/feat faceting","user":{"login":"lionelB","id":160320,"node_id":"MDQ6VXNlcjE2MDMyMA==","avatar_url":"https://avatars1.githubusercontent.com/u/160320?v=4","gravatar_id":"","url":"https://api.github.com/users/lionelB","html_url":"https://github.com/lionelB","followers_url":"https://api.github.com/users/lionelB/followers","following_url":"https://api.github.com/users/lionelB/following{/other_user}","gists_url":"https://api.github.com/users/lionelB/gists{/gist_id}","starred_url":"https://api.github.com/users/lionelB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lionelB/subscriptions","organizations_url":"https://api.github.com/users/lionelB/orgs","repos_url":"https://api.github.com/users/lionelB/repos","events_url":"https://api.github.com/users/lionelB/events{/privacy}","received_events_url":"https://api.github.com/users/lionelB/received_events","type":"User","site_admin":false},"body":"fix #215","created_at":"2018-11-13T10:29:24Z","updated_at":"2018-11-15T13:52:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8f6548247cea244fc6e4813a9ed61b61b8aefc0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/pulls/269/commits","review_comments_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/pulls/269/comments","review_comment_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/issues/269/comments","statuses_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/statuses/9dd5fc09e7ac580d870a84340be393aba4b7ca57","head":{"label":"SocialGouv:lionelb/feat-faceting","ref":"lionelb/feat-faceting","sha":"9dd5fc09e7ac580d870a84340be393aba4b7ca57","user":{"login":"SocialGouv","id":35456799,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NDU2Nzk5","avatar_url":"https://avatars3.githubusercontent.com/u/35456799?v=4","gravatar_id":"","url":"https://api.github.com/users/SocialGouv","html_url":"https://github.com/SocialGouv","followers_url":"https://api.github.com/users/SocialGouv/followers","following_url":"https://api.github.com/users/SocialGouv/following{/other_user}","gists_url":"https://api.github.com/users/SocialGouv/gists{/gist_id}","starred_url":"https://api.github.com/users/SocialGouv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SocialGouv/subscriptions","organizations_url":"https://api.github.com/users/SocialGouv/orgs","repos_url":"https://api.github.com/users/SocialGouv/repos","events_url":"https://api.github.com/users/SocialGouv/events{/privacy}","received_events_url":"https://api.github.com/users/SocialGouv/received_events","type":"Organization","site_admin":false},"repo":{"id":131125682,"node_id":"MDEwOlJlcG9zaXRvcnkxMzExMjU2ODI=","name":"code-du-travail-numerique","full_name":"SocialGouv/code-du-travail-numerique","private":false,"owner":{"login":"SocialGouv","id":35456799,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NDU2Nzk5","avatar_url":"https://avatars3.githubusercontent.com/u/35456799?v=4","gravatar_id":"","url":"https://api.github.com/users/SocialGouv","html_url":"https://github.com/SocialGouv","followers_url":"https://api.github.com/users/SocialGouv/followers","following_url":"https://api.github.com/users/SocialGouv/following{/other_user}","gists_url":"https://api.github.com/users/SocialGouv/gists{/gist_id}","starred_url":"https://api.github.com/users/SocialGouv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SocialGouv/subscriptions","organizations_url":"https://api.github.com/users/SocialGouv/orgs","repos_url":"https://api.github.com/users/SocialGouv/repos","events_url":"https://api.github.com/users/SocialGouv/events{/privacy}","received_events_url":"https://api.github.com/users/SocialGouv/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SocialGouv/code-du-travail-numerique","description":"Prototype Code du Travail Numérique","fork":false,"url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique","forks_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/forks","keys_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/teams","hooks_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/hooks","issue_events_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/issues/events{/number}","events_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/events","assignees_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/assignees{/user}","branches_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/branches{/branch}","tags_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/tags","blobs_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/git/refs{/sha}","trees_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/statuses/{sha}","languages_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/languages","stargazers_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/stargazers","contributors_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/contributors","subscribers_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/subscribers","subscription_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/subscription","commits_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/commits{/sha}","git_commits_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/git/commits{/sha}","comments_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/comments{/number}","issue_comment_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/issues/comments{/number}","contents_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/contents/{+path}","compare_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/merges","archive_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/downloads","issues_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/issues{/number}","pulls_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/pulls{/number}","milestones_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/milestones{/number}","notifications_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/labels{/name}","releases_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/releases{/id}","deployments_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/deployments","created_at":"2018-04-26T08:37:10Z","updated_at":"2018-11-15T13:36:57Z","pushed_at":"2018-11-15T13:37:05Z","git_url":"git://github.com/SocialGouv/code-du-travail-numerique.git","ssh_url":"git@github.com:SocialGouv/code-du-travail-numerique.git","clone_url":"https://github.com/SocialGouv/code-du-travail-numerique.git","svn_url":"https://github.com/SocialGouv/code-du-travail-numerique","homepage":"https://socialgouv.github.io/code-du-travail-explorer/","size":25873,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":108,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3,"open_issues":108,"watchers":4,"default_branch":"master"}},"base":{"label":"SocialGouv:master","ref":"master","sha":"82dc16064c13cbabbabca849895c1d5fc8492499","user":{"login":"SocialGouv","id":35456799,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NDU2Nzk5","avatar_url":"https://avatars3.githubusercontent.com/u/35456799?v=4","gravatar_id":"","url":"https://api.github.com/users/SocialGouv","html_url":"https://github.com/SocialGouv","followers_url":"https://api.github.com/users/SocialGouv/followers","following_url":"https://api.github.com/users/SocialGouv/following{/other_user}","gists_url":"https://api.github.com/users/SocialGouv/gists{/gist_id}","starred_url":"https://api.github.com/users/SocialGouv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SocialGouv/subscriptions","organizations_url":"https://api.github.com/users/SocialGouv/orgs","repos_url":"https://api.github.com/users/SocialGouv/repos","events_url":"https://api.github.com/users/SocialGouv/events{/privacy}","received_events_url":"https://api.github.com/users/SocialGouv/received_events","type":"Organization","site_admin":false},"repo":{"id":131125682,"node_id":"MDEwOlJlcG9zaXRvcnkxMzExMjU2ODI=","name":"code-du-travail-numerique","full_name":"SocialGouv/code-du-travail-numerique","private":false,"owner":{"login":"SocialGouv","id":35456799,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NDU2Nzk5","avatar_url":"https://avatars3.githubusercontent.com/u/35456799?v=4","gravatar_id":"","url":"https://api.github.com/users/SocialGouv","html_url":"https://github.com/SocialGouv","followers_url":"https://api.github.com/users/SocialGouv/followers","following_url":"https://api.github.com/users/SocialGouv/following{/other_user}","gists_url":"https://api.github.com/users/SocialGouv/gists{/gist_id}","starred_url":"https://api.github.com/users/SocialGouv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SocialGouv/subscriptions","organizations_url":"https://api.github.com/users/SocialGouv/orgs","repos_url":"https://api.github.com/users/SocialGouv/repos","events_url":"https://api.github.com/users/SocialGouv/events{/privacy}","received_events_url":"https://api.github.com/users/SocialGouv/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SocialGouv/code-du-travail-numerique","description":"Prototype Code du Travail Numérique","fork":false,"url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique","forks_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/forks","keys_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/teams","hooks_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/hooks","issue_events_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/issues/events{/number}","events_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/events","assignees_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/assignees{/user}","branches_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/branches{/branch}","tags_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/tags","blobs_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/git/refs{/sha}","trees_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/statuses/{sha}","languages_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/languages","stargazers_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/stargazers","contributors_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/contributors","subscribers_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/subscribers","subscription_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/subscription","commits_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/commits{/sha}","git_commits_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/git/commits{/sha}","comments_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/comments{/number}","issue_comment_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/issues/comments{/number}","contents_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/contents/{+path}","compare_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/merges","archive_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/downloads","issues_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/issues{/number}","pulls_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/pulls{/number}","milestones_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/milestones{/number}","notifications_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/labels{/name}","releases_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/releases{/id}","deployments_url":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/deployments","created_at":"2018-04-26T08:37:10Z","updated_at":"2018-11-15T13:36:57Z","pushed_at":"2018-11-15T13:37:05Z","git_url":"git://github.com/SocialGouv/code-du-travail-numerique.git","ssh_url":"git@github.com:SocialGouv/code-du-travail-numerique.git","clone_url":"https://github.com/SocialGouv/code-du-travail-numerique.git","svn_url":"https://github.com/SocialGouv/code-du-travail-numerique","homepage":"https://socialgouv.github.io/code-du-travail-explorer/","size":25873,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":108,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3,"open_issues":108,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/pulls/269"},"html":{"href":"https://github.com/SocialGouv/code-du-travail-numerique/pull/269"},"issue":{"href":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/issues/269"},"comments":{"href":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/issues/269/comments"},"review_comments":{"href":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/pulls/269/comments"},"review_comment":{"href":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/pulls/269/commits"},"statuses":{"href":"https://api.github.com/repos/SocialGouv/code-du-travail-numerique/statuses/9dd5fc09e7ac580d870a84340be393aba4b7ca57"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"revolunet"}}