{"action":"created","comment":{"url":"https://api.github.com/repos/Metatavu/metaform-api/pulls/comments/213422095","pull_request_review_id":150255132,"id":213422095,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzQyMjA5NQ==","diff_hunk":"@@ -47,6 +47,10 @@ public Metaform translateMetaform(fi.metatavu.metaform.server.persistence.model.\n       result.setId(entity.getId());\n     }\n     \n+    if (entity.getExportTheme() != null) {\n+      result.setExportThemeId(entity.getExportTheme().getId());","path":"src/main/java/fi/metatavu/metaform/server/rest/translate/MetaformTranslator.java","position":5,"original_position":5,"commit_id":"0a53ddb46fc82f4c1c0a3f0732217d98b6eb4a2e","original_commit_id":"0a53ddb46fc82f4c1c0a3f0732217d98b6eb4a2e","user":{"login":"sonarq","id":21039853,"node_id":"MDQ6VXNlcjIxMDM5ODUz","avatar_url":"https://avatars1.githubusercontent.com/u/21039853?v=4","gravatar_id":"","url":"https://api.github.com/users/sonarq","html_url":"https://github.com/sonarq","followers_url":"https://api.github.com/users/sonarq/followers","following_url":"https://api.github.com/users/sonarq/following{/other_user}","gists_url":"https://api.github.com/users/sonarq/gists{/gist_id}","starred_url":"https://api.github.com/users/sonarq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonarq/subscriptions","organizations_url":"https://api.github.com/users/sonarq/orgs","repos_url":"https://api.github.com/users/sonarq/repos","events_url":"https://api.github.com/users/sonarq/events{/privacy}","received_events_url":"https://api.github.com/users/sonarq/received_events","type":"User","site_admin":false},"body":"![Bug](https://sonarsource.github.io/sonar-github/bug.png 'Bug') Bug: A \"NullPointerException\" could be thrown; \"result\" is nullable here. ([squid:S2259](https://sonarcloud.io/organizations/metatavu-oy/rules#rule_key=squid%3AS2259))\n\n[See it in SonarCloud](https://sonarcloud.io/project/issues?id=fi.metatavu.metaform-api%3Ametaform-api&pullRequest=49&issues=AWWBxMGOXKENQn1S5jLS&open=AWWBxMGOXKENQn1S5jLS)\n\n[ISSUE_KEY]: AWWBxMGOXKENQn1S5jLS","created_at":"2018-08-28T18:21:22Z","updated_at":"2018-08-28T18:21:23Z","html_url":"https://github.com/Metatavu/metaform-api/pull/49#discussion_r213422095","pull_request_url":"https://api.github.com/repos/Metatavu/metaform-api/pulls/49","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Metatavu/metaform-api/pulls/comments/213422095"},"html":{"href":"https://github.com/Metatavu/metaform-api/pull/49#discussion_r213422095"},"pull_request":{"href":"https://api.github.com/repos/Metatavu/metaform-api/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/Metatavu/metaform-api/pulls/49","id":211492827,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExNDkyODI3","html_url":"https://github.com/Metatavu/metaform-api/pull/49","diff_url":"https://github.com/Metatavu/metaform-api/pull/49.diff","patch_url":"https://github.com/Metatavu/metaform-api/pull/49.patch","issue_url":"https://api.github.com/repos/Metatavu/metaform-api/issues/49","number":49,"state":"open","locked":false,"title":"Feature #support pdf export","user":{"login":"anttileppa","id":1730736,"node_id":"MDQ6VXNlcjE3MzA3MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/1730736?v=4","gravatar_id":"","url":"https://api.github.com/users/anttileppa","html_url":"https://github.com/anttileppa","followers_url":"https://api.github.com/users/anttileppa/followers","following_url":"https://api.github.com/users/anttileppa/following{/other_user}","gists_url":"https://api.github.com/users/anttileppa/gists{/gist_id}","starred_url":"https://api.github.com/users/anttileppa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anttileppa/subscriptions","organizations_url":"https://api.github.com/users/anttileppa/orgs","repos_url":"https://api.github.com/users/anttileppa/repos","events_url":"https://api.github.com/users/anttileppa/events{/privacy}","received_events_url":"https://api.github.com/users/anttileppa/received_events","type":"User","site_admin":false},"body":"Resolves #46 ","created_at":"2018-08-28T17:01:51Z","updated_at":"2018-08-28T18:21:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87df5fdf26a0ffd4abe03069d9413fd994389e35","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Metatavu/metaform-api/pulls/49/commits","review_comments_url":"https://api.github.com/repos/Metatavu/metaform-api/pulls/49/comments","review_comment_url":"https://api.github.com/repos/Metatavu/metaform-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Metatavu/metaform-api/issues/49/comments","statuses_url":"https://api.github.com/repos/Metatavu/metaform-api/statuses/0a53ddb46fc82f4c1c0a3f0732217d98b6eb4a2e","head":{"label":"Metatavu:feature-#support-pdf-export","ref":"feature-#support-pdf-export","sha":"0a53ddb46fc82f4c1c0a3f0732217d98b6eb4a2e","user":{"login":"Metatavu","id":20443466,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNDQzNDY2","avatar_url":"https://avatars0.githubusercontent.com/u/20443466?v=4","gravatar_id":"","url":"https://api.github.com/users/Metatavu","html_url":"https://github.com/Metatavu","followers_url":"https://api.github.com/users/Metatavu/followers","following_url":"https://api.github.com/users/Metatavu/following{/other_user}","gists_url":"https://api.github.com/users/Metatavu/gists{/gist_id}","starred_url":"https://api.github.com/users/Metatavu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metatavu/subscriptions","organizations_url":"https://api.github.com/users/Metatavu/orgs","repos_url":"https://api.github.com/users/Metatavu/repos","events_url":"https://api.github.com/users/Metatavu/events{/privacy}","received_events_url":"https://api.github.com/users/Metatavu/received_events","type":"Organization","site_admin":false},"repo":{"id":130160910,"node_id":"MDEwOlJlcG9zaXRvcnkxMzAxNjA5MTA=","name":"metaform-api","full_name":"Metatavu/metaform-api","owner":{"login":"Metatavu","id":20443466,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNDQzNDY2","avatar_url":"https://avatars0.githubusercontent.com/u/20443466?v=4","gravatar_id":"","url":"https://api.github.com/users/Metatavu","html_url":"https://github.com/Metatavu","followers_url":"https://api.github.com/users/Metatavu/followers","following_url":"https://api.github.com/users/Metatavu/following{/other_user}","gists_url":"https://api.github.com/users/Metatavu/gists{/gist_id}","starred_url":"https://api.github.com/users/Metatavu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metatavu/subscriptions","organizations_url":"https://api.github.com/users/Metatavu/orgs","repos_url":"https://api.github.com/users/Metatavu/repos","events_url":"https://api.github.com/users/Metatavu/events{/privacy}","received_events_url":"https://api.github.com/users/Metatavu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Metatavu/metaform-api","description":"API Service for Metaforms","fork":false,"url":"https://api.github.com/repos/Metatavu/metaform-api","forks_url":"https://api.github.com/repos/Metatavu/metaform-api/forks","keys_url":"https://api.github.com/repos/Metatavu/metaform-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Metatavu/metaform-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Metatavu/metaform-api/teams","hooks_url":"https://api.github.com/repos/Metatavu/metaform-api/hooks","issue_events_url":"https://api.github.com/repos/Metatavu/metaform-api/issues/events{/number}","events_url":"https://api.github.com/repos/Metatavu/metaform-api/events","assignees_url":"https://api.github.com/repos/Metatavu/metaform-api/assignees{/user}","branches_url":"https://api.github.com/repos/Metatavu/metaform-api/branches{/branch}","tags_url":"https://api.github.com/repos/Metatavu/metaform-api/tags","blobs_url":"https://api.github.com/repos/Metatavu/metaform-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Metatavu/metaform-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Metatavu/metaform-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/Metatavu/metaform-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Metatavu/metaform-api/statuses/{sha}","languages_url":"https://api.github.com/repos/Metatavu/metaform-api/languages","stargazers_url":"https://api.github.com/repos/Metatavu/metaform-api/stargazers","contributors_url":"https://api.github.com/repos/Metatavu/metaform-api/contributors","subscribers_url":"https://api.github.com/repos/Metatavu/metaform-api/subscribers","subscription_url":"https://api.github.com/repos/Metatavu/metaform-api/subscription","commits_url":"https://api.github.com/repos/Metatavu/metaform-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/Metatavu/metaform-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/Metatavu/metaform-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/Metatavu/metaform-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/Metatavu/metaform-api/contents/{+path}","compare_url":"https://api.github.com/repos/Metatavu/metaform-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Metatavu/metaform-api/merges","archive_url":"https://api.github.com/repos/Metatavu/metaform-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Metatavu/metaform-api/downloads","issues_url":"https://api.github.com/repos/Metatavu/metaform-api/issues{/number}","pulls_url":"https://api.github.com/repos/Metatavu/metaform-api/pulls{/number}","milestones_url":"https://api.github.com/repos/Metatavu/metaform-api/milestones{/number}","notifications_url":"https://api.github.com/repos/Metatavu/metaform-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Metatavu/metaform-api/labels{/name}","releases_url":"https://api.github.com/repos/Metatavu/metaform-api/releases{/id}","deployments_url":"https://api.github.com/repos/Metatavu/metaform-api/deployments","created_at":"2018-04-19T04:55:09Z","updated_at":"2018-08-23T10:37:05Z","pushed_at":"2018-08-28T18:12:53Z","git_url":"git://github.com/Metatavu/metaform-api.git","ssh_url":"git@github.com:Metatavu/metaform-api.git","clone_url":"https://github.com/Metatavu/metaform-api.git","svn_url":"https://github.com/Metatavu/metaform-api","homepage":null,"size":537,"stargazers_count":0,"watchers_count":0,"language":"Java","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":2,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"Metatavu:develop","ref":"develop","sha":"fb68c42e1a7e7d219fa3c4683e1b335679996575","user":{"login":"Metatavu","id":20443466,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNDQzNDY2","avatar_url":"https://avatars0.githubusercontent.com/u/20443466?v=4","gravatar_id":"","url":"https://api.github.com/users/Metatavu","html_url":"https://github.com/Metatavu","followers_url":"https://api.github.com/users/Metatavu/followers","following_url":"https://api.github.com/users/Metatavu/following{/other_user}","gists_url":"https://api.github.com/users/Metatavu/gists{/gist_id}","starred_url":"https://api.github.com/users/Metatavu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metatavu/subscriptions","organizations_url":"https://api.github.com/users/Metatavu/orgs","repos_url":"https://api.github.com/users/Metatavu/repos","events_url":"https://api.github.com/users/Metatavu/events{/privacy}","received_events_url":"https://api.github.com/users/Metatavu/received_events","type":"Organization","site_admin":false},"repo":{"id":130160910,"node_id":"MDEwOlJlcG9zaXRvcnkxMzAxNjA5MTA=","name":"metaform-api","full_name":"Metatavu/metaform-api","owner":{"login":"Metatavu","id":20443466,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNDQzNDY2","avatar_url":"https://avatars0.githubusercontent.com/u/20443466?v=4","gravatar_id":"","url":"https://api.github.com/users/Metatavu","html_url":"https://github.com/Metatavu","followers_url":"https://api.github.com/users/Metatavu/followers","following_url":"https://api.github.com/users/Metatavu/following{/other_user}","gists_url":"https://api.github.com/users/Metatavu/gists{/gist_id}","starred_url":"https://api.github.com/users/Metatavu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metatavu/subscriptions","organizations_url":"https://api.github.com/users/Metatavu/orgs","repos_url":"https://api.github.com/users/Metatavu/repos","events_url":"https://api.github.com/users/Metatavu/events{/privacy}","received_events_url":"https://api.github.com/users/Metatavu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Metatavu/metaform-api","description":"API Service for Metaforms","fork":false,"url":"https://api.github.com/repos/Metatavu/metaform-api","forks_url":"https://api.github.com/repos/Metatavu/metaform-api/forks","keys_url":"https://api.github.com/repos/Metatavu/metaform-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Metatavu/metaform-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Metatavu/metaform-api/teams","hooks_url":"https://api.github.com/repos/Metatavu/metaform-api/hooks","issue_events_url":"https://api.github.com/repos/Metatavu/metaform-api/issues/events{/number}","events_url":"https://api.github.com/repos/Metatavu/metaform-api/events","assignees_url":"https://api.github.com/repos/Metatavu/metaform-api/assignees{/user}","branches_url":"https://api.github.com/repos/Metatavu/metaform-api/branches{/branch}","tags_url":"https://api.github.com/repos/Metatavu/metaform-api/tags","blobs_url":"https://api.github.com/repos/Metatavu/metaform-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Metatavu/metaform-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Metatavu/metaform-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/Metatavu/metaform-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Metatavu/metaform-api/statuses/{sha}","languages_url":"https://api.github.com/repos/Metatavu/metaform-api/languages","stargazers_url":"https://api.github.com/repos/Metatavu/metaform-api/stargazers","contributors_url":"https://api.github.com/repos/Metatavu/metaform-api/contributors","subscribers_url":"https://api.github.com/repos/Metatavu/metaform-api/subscribers","subscription_url":"https://api.github.com/repos/Metatavu/metaform-api/subscription","commits_url":"https://api.github.com/repos/Metatavu/metaform-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/Metatavu/metaform-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/Metatavu/metaform-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/Metatavu/metaform-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/Metatavu/metaform-api/contents/{+path}","compare_url":"https://api.github.com/repos/Metatavu/metaform-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Metatavu/metaform-api/merges","archive_url":"https://api.github.com/repos/Metatavu/metaform-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Metatavu/metaform-api/downloads","issues_url":"https://api.github.com/repos/Metatavu/metaform-api/issues{/number}","pulls_url":"https://api.github.com/repos/Metatavu/metaform-api/pulls{/number}","milestones_url":"https://api.github.com/repos/Metatavu/metaform-api/milestones{/number}","notifications_url":"https://api.github.com/repos/Metatavu/metaform-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Metatavu/metaform-api/labels{/name}","releases_url":"https://api.github.com/repos/Metatavu/metaform-api/releases{/id}","deployments_url":"https://api.github.com/repos/Metatavu/metaform-api/deployments","created_at":"2018-04-19T04:55:09Z","updated_at":"2018-08-23T10:37:05Z","pushed_at":"2018-08-28T18:12:53Z","git_url":"git://github.com/Metatavu/metaform-api.git","ssh_url":"git@github.com:Metatavu/metaform-api.git","clone_url":"https://github.com/Metatavu/metaform-api.git","svn_url":"https://github.com/Metatavu/metaform-api","homepage":null,"size":537,"stargazers_count":0,"watchers_count":0,"language":"Java","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":2,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Metatavu/metaform-api/pulls/49"},"html":{"href":"https://github.com/Metatavu/metaform-api/pull/49"},"issue":{"href":"https://api.github.com/repos/Metatavu/metaform-api/issues/49"},"comments":{"href":"https://api.github.com/repos/Metatavu/metaform-api/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/Metatavu/metaform-api/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/Metatavu/metaform-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Metatavu/metaform-api/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/Metatavu/metaform-api/statuses/0a53ddb46fc82f4c1c0a3f0732217d98b6eb4a2e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sonarq"}}