{"action":"created","comment":{"url":"https://api.github.com/repos/coolcrowd/object-service/pulls/comments/54617133","id":54617133,"diff_hunk":"@@ -443,6 +456,10 @@ private Experiment updateExperimentInfoDraftState(int id, Experiment experiment,\n             throw new IllegalStateException(\"When an experiment is running, only the state is allowed to be changed.\");\n         }\n \n+        if (!experiment.getRatingOptionsList().isEmpty()) {\n+            assertRatingOptions(experiment);\n+        }\n+","path":"src/main/java/edu/kit/ipd/crowdcontrol/objectservice/rest/resources/ExperimentResource.java","position":43,"original_position":43,"commit_id":"95b087c7385def38a14ae8957020153aafda13e0","original_commit_id":"95b087c7385def38a14ae8957020153aafda13e0","user":{"login":"kelunik","id":2743004,"avatar_url":"https://avatars.githubusercontent.com/u/2743004?v=3","gravatar_id":"","url":"https://api.github.com/users/kelunik","html_url":"https://github.com/kelunik","followers_url":"https://api.github.com/users/kelunik/followers","following_url":"https://api.github.com/users/kelunik/following{/other_user}","gists_url":"https://api.github.com/users/kelunik/gists{/gist_id}","starred_url":"https://api.github.com/users/kelunik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelunik/subscriptions","organizations_url":"https://api.github.com/users/kelunik/orgs","repos_url":"https://api.github.com/users/kelunik/repos","events_url":"https://api.github.com/users/kelunik/events{/privacy}","received_events_url":"https://api.github.com/users/kelunik/received_events","type":"User","site_admin":false},"body":"Sure. https://github.com/coolcrowd/object-service/blob/fix-126/src/main/java/edu/kit/ipd/crowdcontrol/objectservice/rest/resources/ExperimentResource.java#L518-L520","created_at":"2016-03-01T19:04:19Z","updated_at":"2016-03-01T19:04:19Z","html_url":"https://github.com/coolcrowd/object-service/pull/153#discussion_r54617133","pull_request_url":"https://api.github.com/repos/coolcrowd/object-service/pulls/153","_links":{"self":{"href":"https://api.github.com/repos/coolcrowd/object-service/pulls/comments/54617133"},"html":{"href":"https://github.com/coolcrowd/object-service/pull/153#discussion_r54617133"},"pull_request":{"href":"https://api.github.com/repos/coolcrowd/object-service/pulls/153"}}},"pull_request":{"url":"https://api.github.com/repos/coolcrowd/object-service/pulls/153","id":61287498,"html_url":"https://github.com/coolcrowd/object-service/pull/153","diff_url":"https://github.com/coolcrowd/object-service/pull/153.diff","patch_url":"https://github.com/coolcrowd/object-service/pull/153.patch","issue_url":"https://api.github.com/repos/coolcrowd/object-service/issues/153","number":153,"state":"open","locked":false,"title":"Fix #126 (check that rating options are present and valid)","user":{"login":"kelunik","id":2743004,"avatar_url":"https://avatars.githubusercontent.com/u/2743004?v=3","gravatar_id":"","url":"https://api.github.com/users/kelunik","html_url":"https://github.com/kelunik","followers_url":"https://api.github.com/users/kelunik/followers","following_url":"https://api.github.com/users/kelunik/following{/other_user}","gists_url":"https://api.github.com/users/kelunik/gists{/gist_id}","starred_url":"https://api.github.com/users/kelunik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelunik/subscriptions","organizations_url":"https://api.github.com/users/kelunik/orgs","repos_url":"https://api.github.com/users/kelunik/repos","events_url":"https://api.github.com/users/kelunik/events{/privacy}","received_events_url":"https://api.github.com/users/kelunik/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-01T18:38:14Z","updated_at":"2016-03-01T19:04:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58b5d3cf2162f75995aae02d5dd6b17dbdff5dab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coolcrowd/object-service/pulls/153/commits","review_comments_url":"https://api.github.com/repos/coolcrowd/object-service/pulls/153/comments","review_comment_url":"https://api.github.com/repos/coolcrowd/object-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coolcrowd/object-service/issues/153/comments","statuses_url":"https://api.github.com/repos/coolcrowd/object-service/statuses/95b087c7385def38a14ae8957020153aafda13e0","head":{"label":"coolcrowd:fix-126","ref":"fix-126","sha":"95b087c7385def38a14ae8957020153aafda13e0","user":{"login":"coolcrowd","id":15893550,"avatar_url":"https://avatars.githubusercontent.com/u/15893550?v=3","gravatar_id":"","url":"https://api.github.com/users/coolcrowd","html_url":"https://github.com/coolcrowd","followers_url":"https://api.github.com/users/coolcrowd/followers","following_url":"https://api.github.com/users/coolcrowd/following{/other_user}","gists_url":"https://api.github.com/users/coolcrowd/gists{/gist_id}","starred_url":"https://api.github.com/users/coolcrowd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolcrowd/subscriptions","organizations_url":"https://api.github.com/users/coolcrowd/orgs","repos_url":"https://api.github.com/users/coolcrowd/repos","events_url":"https://api.github.com/users/coolcrowd/events{/privacy}","received_events_url":"https://api.github.com/users/coolcrowd/received_events","type":"Organization","site_admin":false},"repo":{"id":46509189,"name":"object-service","full_name":"coolcrowd/object-service","owner":{"login":"coolcrowd","id":15893550,"avatar_url":"https://avatars.githubusercontent.com/u/15893550?v=3","gravatar_id":"","url":"https://api.github.com/users/coolcrowd","html_url":"https://github.com/coolcrowd","followers_url":"https://api.github.com/users/coolcrowd/followers","following_url":"https://api.github.com/users/coolcrowd/following{/other_user}","gists_url":"https://api.github.com/users/coolcrowd/gists{/gist_id}","starred_url":"https://api.github.com/users/coolcrowd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolcrowd/subscriptions","organizations_url":"https://api.github.com/users/coolcrowd/orgs","repos_url":"https://api.github.com/users/coolcrowd/repos","events_url":"https://api.github.com/users/coolcrowd/events{/privacy}","received_events_url":"https://api.github.com/users/coolcrowd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coolcrowd/object-service","description":"Central API service.","fork":false,"url":"https://api.github.com/repos/coolcrowd/object-service","forks_url":"https://api.github.com/repos/coolcrowd/object-service/forks","keys_url":"https://api.github.com/repos/coolcrowd/object-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coolcrowd/object-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coolcrowd/object-service/teams","hooks_url":"https://api.github.com/repos/coolcrowd/object-service/hooks","issue_events_url":"https://api.github.com/repos/coolcrowd/object-service/issues/events{/number}","events_url":"https://api.github.com/repos/coolcrowd/object-service/events","assignees_url":"https://api.github.com/repos/coolcrowd/object-service/assignees{/user}","branches_url":"https://api.github.com/repos/coolcrowd/object-service/branches{/branch}","tags_url":"https://api.github.com/repos/coolcrowd/object-service/tags","blobs_url":"https://api.github.com/repos/coolcrowd/object-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coolcrowd/object-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coolcrowd/object-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/coolcrowd/object-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coolcrowd/object-service/statuses/{sha}","languages_url":"https://api.github.com/repos/coolcrowd/object-service/languages","stargazers_url":"https://api.github.com/repos/coolcrowd/object-service/stargazers","contributors_url":"https://api.github.com/repos/coolcrowd/object-service/contributors","subscribers_url":"https://api.github.com/repos/coolcrowd/object-service/subscribers","subscription_url":"https://api.github.com/repos/coolcrowd/object-service/subscription","commits_url":"https://api.github.com/repos/coolcrowd/object-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/coolcrowd/object-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/coolcrowd/object-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/coolcrowd/object-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/coolcrowd/object-service/contents/{+path}","compare_url":"https://api.github.com/repos/coolcrowd/object-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coolcrowd/object-service/merges","archive_url":"https://api.github.com/repos/coolcrowd/object-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coolcrowd/object-service/downloads","issues_url":"https://api.github.com/repos/coolcrowd/object-service/issues{/number}","pulls_url":"https://api.github.com/repos/coolcrowd/object-service/pulls{/number}","milestones_url":"https://api.github.com/repos/coolcrowd/object-service/milestones{/number}","notifications_url":"https://api.github.com/repos/coolcrowd/object-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coolcrowd/object-service/labels{/name}","releases_url":"https://api.github.com/repos/coolcrowd/object-service/releases{/id}","deployments_url":"https://api.github.com/repos/coolcrowd/object-service/deployments","created_at":"2015-11-19T17:35:07Z","updated_at":"2016-02-07T10:23:14Z","pushed_at":"2016-03-01T18:55:57Z","git_url":"git://github.com/coolcrowd/object-service.git","ssh_url":"git@github.com:coolcrowd/object-service.git","clone_url":"https://github.com/coolcrowd/object-service.git","svn_url":"https://github.com/coolcrowd/object-service","homepage":"","size":13048,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"coolcrowd:master","ref":"master","sha":"64c2d5859df26ff48e9c27a0bafbba6201ede68e","user":{"login":"coolcrowd","id":15893550,"avatar_url":"https://avatars.githubusercontent.com/u/15893550?v=3","gravatar_id":"","url":"https://api.github.com/users/coolcrowd","html_url":"https://github.com/coolcrowd","followers_url":"https://api.github.com/users/coolcrowd/followers","following_url":"https://api.github.com/users/coolcrowd/following{/other_user}","gists_url":"https://api.github.com/users/coolcrowd/gists{/gist_id}","starred_url":"https://api.github.com/users/coolcrowd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolcrowd/subscriptions","organizations_url":"https://api.github.com/users/coolcrowd/orgs","repos_url":"https://api.github.com/users/coolcrowd/repos","events_url":"https://api.github.com/users/coolcrowd/events{/privacy}","received_events_url":"https://api.github.com/users/coolcrowd/received_events","type":"Organization","site_admin":false},"repo":{"id":46509189,"name":"object-service","full_name":"coolcrowd/object-service","owner":{"login":"coolcrowd","id":15893550,"avatar_url":"https://avatars.githubusercontent.com/u/15893550?v=3","gravatar_id":"","url":"https://api.github.com/users/coolcrowd","html_url":"https://github.com/coolcrowd","followers_url":"https://api.github.com/users/coolcrowd/followers","following_url":"https://api.github.com/users/coolcrowd/following{/other_user}","gists_url":"https://api.github.com/users/coolcrowd/gists{/gist_id}","starred_url":"https://api.github.com/users/coolcrowd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolcrowd/subscriptions","organizations_url":"https://api.github.com/users/coolcrowd/orgs","repos_url":"https://api.github.com/users/coolcrowd/repos","events_url":"https://api.github.com/users/coolcrowd/events{/privacy}","received_events_url":"https://api.github.com/users/coolcrowd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coolcrowd/object-service","description":"Central API service.","fork":false,"url":"https://api.github.com/repos/coolcrowd/object-service","forks_url":"https://api.github.com/repos/coolcrowd/object-service/forks","keys_url":"https://api.github.com/repos/coolcrowd/object-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coolcrowd/object-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coolcrowd/object-service/teams","hooks_url":"https://api.github.com/repos/coolcrowd/object-service/hooks","issue_events_url":"https://api.github.com/repos/coolcrowd/object-service/issues/events{/number}","events_url":"https://api.github.com/repos/coolcrowd/object-service/events","assignees_url":"https://api.github.com/repos/coolcrowd/object-service/assignees{/user}","branches_url":"https://api.github.com/repos/coolcrowd/object-service/branches{/branch}","tags_url":"https://api.github.com/repos/coolcrowd/object-service/tags","blobs_url":"https://api.github.com/repos/coolcrowd/object-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coolcrowd/object-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coolcrowd/object-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/coolcrowd/object-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coolcrowd/object-service/statuses/{sha}","languages_url":"https://api.github.com/repos/coolcrowd/object-service/languages","stargazers_url":"https://api.github.com/repos/coolcrowd/object-service/stargazers","contributors_url":"https://api.github.com/repos/coolcrowd/object-service/contributors","subscribers_url":"https://api.github.com/repos/coolcrowd/object-service/subscribers","subscription_url":"https://api.github.com/repos/coolcrowd/object-service/subscription","commits_url":"https://api.github.com/repos/coolcrowd/object-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/coolcrowd/object-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/coolcrowd/object-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/coolcrowd/object-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/coolcrowd/object-service/contents/{+path}","compare_url":"https://api.github.com/repos/coolcrowd/object-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coolcrowd/object-service/merges","archive_url":"https://api.github.com/repos/coolcrowd/object-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coolcrowd/object-service/downloads","issues_url":"https://api.github.com/repos/coolcrowd/object-service/issues{/number}","pulls_url":"https://api.github.com/repos/coolcrowd/object-service/pulls{/number}","milestones_url":"https://api.github.com/repos/coolcrowd/object-service/milestones{/number}","notifications_url":"https://api.github.com/repos/coolcrowd/object-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coolcrowd/object-service/labels{/name}","releases_url":"https://api.github.com/repos/coolcrowd/object-service/releases{/id}","deployments_url":"https://api.github.com/repos/coolcrowd/object-service/deployments","created_at":"2015-11-19T17:35:07Z","updated_at":"2016-02-07T10:23:14Z","pushed_at":"2016-03-01T18:55:57Z","git_url":"git://github.com/coolcrowd/object-service.git","ssh_url":"git@github.com:coolcrowd/object-service.git","clone_url":"https://github.com/coolcrowd/object-service.git","svn_url":"https://github.com/coolcrowd/object-service","homepage":"","size":13048,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coolcrowd/object-service/pulls/153"},"html":{"href":"https://github.com/coolcrowd/object-service/pull/153"},"issue":{"href":"https://api.github.com/repos/coolcrowd/object-service/issues/153"},"comments":{"href":"https://api.github.com/repos/coolcrowd/object-service/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/coolcrowd/object-service/pulls/153/comments"},"review_comment":{"href":"https://api.github.com/repos/coolcrowd/object-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coolcrowd/object-service/pulls/153/commits"},"statuses":{"href":"https://api.github.com/repos/coolcrowd/object-service/statuses/95b087c7385def38a14ae8957020153aafda13e0"}}}}