{"action":"created","comment":{"url":"https://api.github.com/repos/Opetushallitus/konfo-ui/pulls/comments/189795810","pull_request_review_id":122041433,"id":189795810,"diff_hunk":"@@ -66,26 +78,40 @@ class Haku extends Component {\n         this.changeUrl();\n     }\n \n+    //Todo: käytä näitä sivuja vaihdettaessa, ettei turhaan tehdä kahta rajapintakutsua kun yksi riittää. Refaktorointia voisi myös hieman siistiä.\n+    static getKoulutuksetFromBackend(_this, _handleError) {\n+        return (superagent\n+            .get(_this.props.urlStore.urls.url('konfo-backend.search.koulutukset'))\n+            .query({keyword: _this.props.hakuStore.keyword, page: _this.props.hakuStore.currentPageKoulutus, size: _this.props.hakuStore.pageSizeKoulutus})\n+            .catch(_handleError))\n+    }\n+\n+    //Todo: käytä näitä sivuja vaihdettaessa, ettei turhaan tehdä kahta rajapintakutsua kun yksi riittää. Refaktorointia voisi myös hieman siistiä.","path":"src/main/app/src/components/haku/Haku.js","position":75,"original_position":75,"commit_id":"1f5207a9ac04f2de804b0b994d0e3863fe9a0d79","original_commit_id":"1f5207a9ac04f2de804b0b994d0e3863fe9a0d79","user":{"login":"jjkpentt","id":8287955,"avatar_url":"https://avatars2.githubusercontent.com/u/8287955?v=4","gravatar_id":"","url":"https://api.github.com/users/jjkpentt","html_url":"https://github.com/jjkpentt","followers_url":"https://api.github.com/users/jjkpentt/followers","following_url":"https://api.github.com/users/jjkpentt/following{/other_user}","gists_url":"https://api.github.com/users/jjkpentt/gists{/gist_id}","starred_url":"https://api.github.com/users/jjkpentt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjkpentt/subscriptions","organizations_url":"https://api.github.com/users/jjkpentt/orgs","repos_url":"https://api.github.com/users/jjkpentt/repos","events_url":"https://api.github.com/users/jjkpentt/events{/privacy}","received_events_url":"https://api.github.com/users/jjkpentt/received_events","type":"User","site_admin":false},"body":"Todo-kommentit voisi poistaa, jos on jo tehty","created_at":"2018-05-22T07:08:27Z","updated_at":"2018-05-22T07:10:14Z","html_url":"https://github.com/Opetushallitus/konfo-ui/pull/1#discussion_r189795810","pull_request_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/pulls/1","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Opetushallitus/konfo-ui/pulls/comments/189795810"},"html":{"href":"https://github.com/Opetushallitus/konfo-ui/pull/1#discussion_r189795810"},"pull_request":{"href":"https://api.github.com/repos/Opetushallitus/konfo-ui/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Opetushallitus/konfo-ui/pulls/1","id":189365734,"html_url":"https://github.com/Opetushallitus/konfo-ui/pull/1","diff_url":"https://github.com/Opetushallitus/konfo-ui/pull/1.diff","patch_url":"https://github.com/Opetushallitus/konfo-ui/pull/1.patch","issue_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/issues/1","number":1,"state":"open","locked":false,"title":"Kto 33 sivutus","user":{"login":"hajoa","id":15144376,"avatar_url":"https://avatars0.githubusercontent.com/u/15144376?v=4","gravatar_id":"","url":"https://api.github.com/users/hajoa","html_url":"https://github.com/hajoa","followers_url":"https://api.github.com/users/hajoa/followers","following_url":"https://api.github.com/users/hajoa/following{/other_user}","gists_url":"https://api.github.com/users/hajoa/gists{/gist_id}","starred_url":"https://api.github.com/users/hajoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hajoa/subscriptions","organizations_url":"https://api.github.com/users/hajoa/orgs","repos_url":"https://api.github.com/users/hajoa/repos","events_url":"https://api.github.com/users/hajoa/events{/privacy}","received_events_url":"https://api.github.com/users/hajoa/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-21T12:29:52Z","updated_at":"2018-05-22T07:10:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c4a0397cb05b2d14d69d9ea1d7b283c56ed3c3b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/issues/1/comments","statuses_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/statuses/1f5207a9ac04f2de804b0b994d0e3863fe9a0d79","head":{"label":"Opetushallitus:KTO-33-sivutus","ref":"KTO-33-sivutus","sha":"1f5207a9ac04f2de804b0b994d0e3863fe9a0d79","user":{"login":"Opetushallitus","id":2628558,"avatar_url":"https://avatars3.githubusercontent.com/u/2628558?v=4","gravatar_id":"","url":"https://api.github.com/users/Opetushallitus","html_url":"https://github.com/Opetushallitus","followers_url":"https://api.github.com/users/Opetushallitus/followers","following_url":"https://api.github.com/users/Opetushallitus/following{/other_user}","gists_url":"https://api.github.com/users/Opetushallitus/gists{/gist_id}","starred_url":"https://api.github.com/users/Opetushallitus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Opetushallitus/subscriptions","organizations_url":"https://api.github.com/users/Opetushallitus/orgs","repos_url":"https://api.github.com/users/Opetushallitus/repos","events_url":"https://api.github.com/users/Opetushallitus/events{/privacy}","received_events_url":"https://api.github.com/users/Opetushallitus/received_events","type":"Organization","site_admin":false},"repo":{"id":126822407,"name":"konfo-ui","full_name":"Opetushallitus/konfo-ui","owner":{"login":"Opetushallitus","id":2628558,"avatar_url":"https://avatars3.githubusercontent.com/u/2628558?v=4","gravatar_id":"","url":"https://api.github.com/users/Opetushallitus","html_url":"https://github.com/Opetushallitus","followers_url":"https://api.github.com/users/Opetushallitus/followers","following_url":"https://api.github.com/users/Opetushallitus/following{/other_user}","gists_url":"https://api.github.com/users/Opetushallitus/gists{/gist_id}","starred_url":"https://api.github.com/users/Opetushallitus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Opetushallitus/subscriptions","organizations_url":"https://api.github.com/users/Opetushallitus/orgs","repos_url":"https://api.github.com/users/Opetushallitus/repos","events_url":"https://api.github.com/users/Opetushallitus/events{/privacy}","received_events_url":"https://api.github.com/users/Opetushallitus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Opetushallitus/konfo-ui","description":null,"fork":false,"url":"https://api.github.com/repos/Opetushallitus/konfo-ui","forks_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/forks","keys_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/teams","hooks_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/hooks","issue_events_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/issues/events{/number}","events_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/events","assignees_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/assignees{/user}","branches_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/branches{/branch}","tags_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/tags","blobs_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/languages","stargazers_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/stargazers","contributors_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/contributors","subscribers_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/subscribers","subscription_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/subscription","commits_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/contents/{+path}","compare_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/merges","archive_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/downloads","issues_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/issues{/number}","pulls_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/labels{/name}","releases_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/releases{/id}","deployments_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/deployments","created_at":"2018-03-26T12:02:56Z","updated_at":"2018-05-18T07:54:44Z","pushed_at":"2018-05-21T12:38:58Z","git_url":"git://github.com/Opetushallitus/konfo-ui.git","ssh_url":"git@github.com:Opetushallitus/konfo-ui.git","clone_url":"https://github.com/Opetushallitus/konfo-ui.git","svn_url":"https://github.com/Opetushallitus/konfo-ui","homepage":null,"size":29571,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Opetushallitus:master","ref":"master","sha":"88e0dfe6c7ca0274624bc91cab7a57f040878319","user":{"login":"Opetushallitus","id":2628558,"avatar_url":"https://avatars3.githubusercontent.com/u/2628558?v=4","gravatar_id":"","url":"https://api.github.com/users/Opetushallitus","html_url":"https://github.com/Opetushallitus","followers_url":"https://api.github.com/users/Opetushallitus/followers","following_url":"https://api.github.com/users/Opetushallitus/following{/other_user}","gists_url":"https://api.github.com/users/Opetushallitus/gists{/gist_id}","starred_url":"https://api.github.com/users/Opetushallitus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Opetushallitus/subscriptions","organizations_url":"https://api.github.com/users/Opetushallitus/orgs","repos_url":"https://api.github.com/users/Opetushallitus/repos","events_url":"https://api.github.com/users/Opetushallitus/events{/privacy}","received_events_url":"https://api.github.com/users/Opetushallitus/received_events","type":"Organization","site_admin":false},"repo":{"id":126822407,"name":"konfo-ui","full_name":"Opetushallitus/konfo-ui","owner":{"login":"Opetushallitus","id":2628558,"avatar_url":"https://avatars3.githubusercontent.com/u/2628558?v=4","gravatar_id":"","url":"https://api.github.com/users/Opetushallitus","html_url":"https://github.com/Opetushallitus","followers_url":"https://api.github.com/users/Opetushallitus/followers","following_url":"https://api.github.com/users/Opetushallitus/following{/other_user}","gists_url":"https://api.github.com/users/Opetushallitus/gists{/gist_id}","starred_url":"https://api.github.com/users/Opetushallitus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Opetushallitus/subscriptions","organizations_url":"https://api.github.com/users/Opetushallitus/orgs","repos_url":"https://api.github.com/users/Opetushallitus/repos","events_url":"https://api.github.com/users/Opetushallitus/events{/privacy}","received_events_url":"https://api.github.com/users/Opetushallitus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Opetushallitus/konfo-ui","description":null,"fork":false,"url":"https://api.github.com/repos/Opetushallitus/konfo-ui","forks_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/forks","keys_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/teams","hooks_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/hooks","issue_events_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/issues/events{/number}","events_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/events","assignees_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/assignees{/user}","branches_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/branches{/branch}","tags_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/tags","blobs_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/languages","stargazers_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/stargazers","contributors_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/contributors","subscribers_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/subscribers","subscription_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/subscription","commits_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/contents/{+path}","compare_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/merges","archive_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/downloads","issues_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/issues{/number}","pulls_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/labels{/name}","releases_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/releases{/id}","deployments_url":"https://api.github.com/repos/Opetushallitus/konfo-ui/deployments","created_at":"2018-03-26T12:02:56Z","updated_at":"2018-05-18T07:54:44Z","pushed_at":"2018-05-21T12:38:58Z","git_url":"git://github.com/Opetushallitus/konfo-ui.git","ssh_url":"git@github.com:Opetushallitus/konfo-ui.git","clone_url":"https://github.com/Opetushallitus/konfo-ui.git","svn_url":"https://github.com/Opetushallitus/konfo-ui","homepage":null,"size":29571,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Opetushallitus/konfo-ui/pulls/1"},"html":{"href":"https://github.com/Opetushallitus/konfo-ui/pull/1"},"issue":{"href":"https://api.github.com/repos/Opetushallitus/konfo-ui/issues/1"},"comments":{"href":"https://api.github.com/repos/Opetushallitus/konfo-ui/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Opetushallitus/konfo-ui/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Opetushallitus/konfo-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Opetushallitus/konfo-ui/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Opetushallitus/konfo-ui/statuses/1f5207a9ac04f2de804b0b994d0e3863fe9a0d79"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jjkpentt"}}