{"action":"created","comment":{"url":"https://api.github.com/repos/Opetushallitus/oti/pulls/comments/87812492","pull_request_review_id":8404832,"id":87812492,"diff_hunk":"@@ -141,11 +142,94 @@\n     (diploma/generate-diplomas config ids signer session)\n     {:status 400 :body {:error \"Invalid parameters\"}}))\n \n+(defn- exam-by-language [{:keys [db]} lang]\n+  (if-let [exam (dba/exam-by-lang db lang)]\n+    (response exam)\n+    (not-found {})))\n+\n+(defn- enrich-participant-data [data p-data]\n+  (map (fn [exam-session]\n+         (update exam-session :participants (fn [ps]\n+                                              (map (fn [p]\n+                                                     (if-let [api-data (get p-data (:ext-reference-id p))]\n+                                                       (assoc p\n+                                                         :first-names (:etunimet api-data)\n+                                                         :last-name (:sukunimi api-data)\n+                                                         :display-name (:kutsumanimi api-data)\n+                                                         :ssn (:hetu api-data))","path":"src/clj/oti/endpoint/virkailija.clj","position":26,"original_position":26,"commit_id":"b101c734c9471a608d3af331d3a56bf86a238c6c","original_commit_id":"6786a46565bc00e51a8c6358507acd4228e38c9f","user":{"login":"mpenttila","id":592358,"avatar_url":"https://avatars.githubusercontent.com/u/592358?v=3","gravatar_id":"","url":"https://api.github.com/users/mpenttila","html_url":"https://github.com/mpenttila","followers_url":"https://api.github.com/users/mpenttila/followers","following_url":"https://api.github.com/users/mpenttila/following{/other_user}","gists_url":"https://api.github.com/users/mpenttila/gists{/gist_id}","starred_url":"https://api.github.com/users/mpenttila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpenttila/subscriptions","organizations_url":"https://api.github.com/users/mpenttila/orgs","repos_url":"https://api.github.com/users/mpenttila/repos","events_url":"https://api.github.com/users/mpenttila/events{/privacy}","received_events_url":"https://api.github.com/users/mpenttila/received_events","type":"User","site_admin":false},"body":"Noi suomenkieliset avaimet henkilötiedoissa on kyllä muualla käytössä sellaisenaan. En tiedä onko se nyt vähän epäjohdonmukaista, että ne tässä muunnetaan englanniksi. Tai sitten pitäisi muuttaa ehkä muuallakin?","created_at":"2016-11-14T14:41:29Z","updated_at":"2016-11-14T14:54:49Z","html_url":"https://github.com/Opetushallitus/oti/pull/19#discussion_r87812492","pull_request_url":"https://api.github.com/repos/Opetushallitus/oti/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/Opetushallitus/oti/pulls/comments/87812492"},"html":{"href":"https://github.com/Opetushallitus/oti/pull/19#discussion_r87812492"},"pull_request":{"href":"https://api.github.com/repos/Opetushallitus/oti/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/Opetushallitus/oti/pulls/19","id":93560022,"html_url":"https://github.com/Opetushallitus/oti/pull/19","diff_url":"https://github.com/Opetushallitus/oti/pull/19.diff","patch_url":"https://github.com/Opetushallitus/oti/pull/19.patch","issue_url":"https://api.github.com/repos/Opetushallitus/oti/issues/19","number":19,"state":"open","locked":false,"title":"Feature/oti 5 scoring","user":{"login":"jaaqo","id":5362346,"avatar_url":"https://avatars.githubusercontent.com/u/5362346?v=3","gravatar_id":"","url":"https://api.github.com/users/jaaqo","html_url":"https://github.com/jaaqo","followers_url":"https://api.github.com/users/jaaqo/followers","following_url":"https://api.github.com/users/jaaqo/following{/other_user}","gists_url":"https://api.github.com/users/jaaqo/gists{/gist_id}","starred_url":"https://api.github.com/users/jaaqo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaaqo/subscriptions","organizations_url":"https://api.github.com/users/jaaqo/orgs","repos_url":"https://api.github.com/users/jaaqo/repos","events_url":"https://api.github.com/users/jaaqo/events{/privacy}","received_events_url":"https://api.github.com/users/jaaqo/received_events","type":"User","site_admin":false},"body":"Feature missing: saving data to registration if person did attend or not\r\n","created_at":"2016-11-14T12:44:11Z","updated_at":"2016-11-14T14:54:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77817355864b134e17ddc028cad2a8bd86aa27e9","assignee":{"login":"mpenttila","id":592358,"avatar_url":"https://avatars.githubusercontent.com/u/592358?v=3","gravatar_id":"","url":"https://api.github.com/users/mpenttila","html_url":"https://github.com/mpenttila","followers_url":"https://api.github.com/users/mpenttila/followers","following_url":"https://api.github.com/users/mpenttila/following{/other_user}","gists_url":"https://api.github.com/users/mpenttila/gists{/gist_id}","starred_url":"https://api.github.com/users/mpenttila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpenttila/subscriptions","organizations_url":"https://api.github.com/users/mpenttila/orgs","repos_url":"https://api.github.com/users/mpenttila/repos","events_url":"https://api.github.com/users/mpenttila/events{/privacy}","received_events_url":"https://api.github.com/users/mpenttila/received_events","type":"User","site_admin":false},"assignees":[{"login":"mpenttila","id":592358,"avatar_url":"https://avatars.githubusercontent.com/u/592358?v=3","gravatar_id":"","url":"https://api.github.com/users/mpenttila","html_url":"https://github.com/mpenttila","followers_url":"https://api.github.com/users/mpenttila/followers","following_url":"https://api.github.com/users/mpenttila/following{/other_user}","gists_url":"https://api.github.com/users/mpenttila/gists{/gist_id}","starred_url":"https://api.github.com/users/mpenttila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpenttila/subscriptions","organizations_url":"https://api.github.com/users/mpenttila/orgs","repos_url":"https://api.github.com/users/mpenttila/repos","events_url":"https://api.github.com/users/mpenttila/events{/privacy}","received_events_url":"https://api.github.com/users/mpenttila/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Opetushallitus/oti/pulls/19/commits","review_comments_url":"https://api.github.com/repos/Opetushallitus/oti/pulls/19/comments","review_comment_url":"https://api.github.com/repos/Opetushallitus/oti/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Opetushallitus/oti/issues/19/comments","statuses_url":"https://api.github.com/repos/Opetushallitus/oti/statuses/b101c734c9471a608d3af331d3a56bf86a238c6c","head":{"label":"Opetushallitus:feature/OTI-5_scoring","ref":"feature/OTI-5_scoring","sha":"b101c734c9471a608d3af331d3a56bf86a238c6c","user":{"login":"Opetushallitus","id":2628558,"avatar_url":"https://avatars.githubusercontent.com/u/2628558?v=3","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":68285530,"name":"oti","full_name":"Opetushallitus/oti","owner":{"login":"Opetushallitus","id":2628558,"avatar_url":"https://avatars.githubusercontent.com/u/2628558?v=3","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/oti","description":"Opetushallinnon tutkintoon ilmoittautuminen","fork":false,"url":"https://api.github.com/repos/Opetushallitus/oti","forks_url":"https://api.github.com/repos/Opetushallitus/oti/forks","keys_url":"https://api.github.com/repos/Opetushallitus/oti/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Opetushallitus/oti/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Opetushallitus/oti/teams","hooks_url":"https://api.github.com/repos/Opetushallitus/oti/hooks","issue_events_url":"https://api.github.com/repos/Opetushallitus/oti/issues/events{/number}","events_url":"https://api.github.com/repos/Opetushallitus/oti/events","assignees_url":"https://api.github.com/repos/Opetushallitus/oti/assignees{/user}","branches_url":"https://api.github.com/repos/Opetushallitus/oti/branches{/branch}","tags_url":"https://api.github.com/repos/Opetushallitus/oti/tags","blobs_url":"https://api.github.com/repos/Opetushallitus/oti/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Opetushallitus/oti/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Opetushallitus/oti/git/refs{/sha}","trees_url":"https://api.github.com/repos/Opetushallitus/oti/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Opetushallitus/oti/statuses/{sha}","languages_url":"https://api.github.com/repos/Opetushallitus/oti/languages","stargazers_url":"https://api.github.com/repos/Opetushallitus/oti/stargazers","contributors_url":"https://api.github.com/repos/Opetushallitus/oti/contributors","subscribers_url":"https://api.github.com/repos/Opetushallitus/oti/subscribers","subscription_url":"https://api.github.com/repos/Opetushallitus/oti/subscription","commits_url":"https://api.github.com/repos/Opetushallitus/oti/commits{/sha}","git_commits_url":"https://api.github.com/repos/Opetushallitus/oti/git/commits{/sha}","comments_url":"https://api.github.com/repos/Opetushallitus/oti/comments{/number}","issue_comment_url":"https://api.github.com/repos/Opetushallitus/oti/issues/comments{/number}","contents_url":"https://api.github.com/repos/Opetushallitus/oti/contents/{+path}","compare_url":"https://api.github.com/repos/Opetushallitus/oti/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Opetushallitus/oti/merges","archive_url":"https://api.github.com/repos/Opetushallitus/oti/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Opetushallitus/oti/downloads","issues_url":"https://api.github.com/repos/Opetushallitus/oti/issues{/number}","pulls_url":"https://api.github.com/repos/Opetushallitus/oti/pulls{/number}","milestones_url":"https://api.github.com/repos/Opetushallitus/oti/milestones{/number}","notifications_url":"https://api.github.com/repos/Opetushallitus/oti/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Opetushallitus/oti/labels{/name}","releases_url":"https://api.github.com/repos/Opetushallitus/oti/releases{/id}","deployments_url":"https://api.github.com/repos/Opetushallitus/oti/deployments","created_at":"2016-09-15T10:37:05Z","updated_at":"2016-10-27T11:30:44Z","pushed_at":"2016-11-14T14:52:06Z","git_url":"git://github.com/Opetushallitus/oti.git","ssh_url":"git@github.com:Opetushallitus/oti.git","clone_url":"https://github.com/Opetushallitus/oti.git","svn_url":"https://github.com/Opetushallitus/oti","homepage":null,"size":1078,"stargazers_count":1,"watchers_count":1,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"Opetushallitus:develop","ref":"develop","sha":"f8976cb54cca46ee8a305551150d2b5a96b5258c","user":{"login":"Opetushallitus","id":2628558,"avatar_url":"https://avatars.githubusercontent.com/u/2628558?v=3","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":68285530,"name":"oti","full_name":"Opetushallitus/oti","owner":{"login":"Opetushallitus","id":2628558,"avatar_url":"https://avatars.githubusercontent.com/u/2628558?v=3","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/oti","description":"Opetushallinnon tutkintoon ilmoittautuminen","fork":false,"url":"https://api.github.com/repos/Opetushallitus/oti","forks_url":"https://api.github.com/repos/Opetushallitus/oti/forks","keys_url":"https://api.github.com/repos/Opetushallitus/oti/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Opetushallitus/oti/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Opetushallitus/oti/teams","hooks_url":"https://api.github.com/repos/Opetushallitus/oti/hooks","issue_events_url":"https://api.github.com/repos/Opetushallitus/oti/issues/events{/number}","events_url":"https://api.github.com/repos/Opetushallitus/oti/events","assignees_url":"https://api.github.com/repos/Opetushallitus/oti/assignees{/user}","branches_url":"https://api.github.com/repos/Opetushallitus/oti/branches{/branch}","tags_url":"https://api.github.com/repos/Opetushallitus/oti/tags","blobs_url":"https://api.github.com/repos/Opetushallitus/oti/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Opetushallitus/oti/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Opetushallitus/oti/git/refs{/sha}","trees_url":"https://api.github.com/repos/Opetushallitus/oti/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Opetushallitus/oti/statuses/{sha}","languages_url":"https://api.github.com/repos/Opetushallitus/oti/languages","stargazers_url":"https://api.github.com/repos/Opetushallitus/oti/stargazers","contributors_url":"https://api.github.com/repos/Opetushallitus/oti/contributors","subscribers_url":"https://api.github.com/repos/Opetushallitus/oti/subscribers","subscription_url":"https://api.github.com/repos/Opetushallitus/oti/subscription","commits_url":"https://api.github.com/repos/Opetushallitus/oti/commits{/sha}","git_commits_url":"https://api.github.com/repos/Opetushallitus/oti/git/commits{/sha}","comments_url":"https://api.github.com/repos/Opetushallitus/oti/comments{/number}","issue_comment_url":"https://api.github.com/repos/Opetushallitus/oti/issues/comments{/number}","contents_url":"https://api.github.com/repos/Opetushallitus/oti/contents/{+path}","compare_url":"https://api.github.com/repos/Opetushallitus/oti/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Opetushallitus/oti/merges","archive_url":"https://api.github.com/repos/Opetushallitus/oti/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Opetushallitus/oti/downloads","issues_url":"https://api.github.com/repos/Opetushallitus/oti/issues{/number}","pulls_url":"https://api.github.com/repos/Opetushallitus/oti/pulls{/number}","milestones_url":"https://api.github.com/repos/Opetushallitus/oti/milestones{/number}","notifications_url":"https://api.github.com/repos/Opetushallitus/oti/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Opetushallitus/oti/labels{/name}","releases_url":"https://api.github.com/repos/Opetushallitus/oti/releases{/id}","deployments_url":"https://api.github.com/repos/Opetushallitus/oti/deployments","created_at":"2016-09-15T10:37:05Z","updated_at":"2016-10-27T11:30:44Z","pushed_at":"2016-11-14T14:52:06Z","git_url":"git://github.com/Opetushallitus/oti.git","ssh_url":"git@github.com:Opetushallitus/oti.git","clone_url":"https://github.com/Opetushallitus/oti.git","svn_url":"https://github.com/Opetushallitus/oti","homepage":null,"size":1078,"stargazers_count":1,"watchers_count":1,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Opetushallitus/oti/pulls/19"},"html":{"href":"https://github.com/Opetushallitus/oti/pull/19"},"issue":{"href":"https://api.github.com/repos/Opetushallitus/oti/issues/19"},"comments":{"href":"https://api.github.com/repos/Opetushallitus/oti/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/Opetushallitus/oti/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/Opetushallitus/oti/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Opetushallitus/oti/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/Opetushallitus/oti/statuses/b101c734c9471a608d3af331d3a56bf86a238c6c"}}}}
{"actor":{"display_login":"mpenttila"}}