{"action":"created","comment":{"url":"https://api.github.com/repos/arteria-project/arteria-runfolder/pulls/comments/40203576","id":40203576,"diff_hunk":"@@ -164,8 +164,20 @@ def get_runfolder_state(self, runfolder):\n         return state\n \n     @staticmethod\n+    def validate_state(state):\n+        \"\"\"Raises InvalidRunfolderState if the state is not known\"\"\"\n+        if state not in [RunfolderInfo.STATE_NONE,","path":"runfolder/services.py","position":6,"original_position":6,"commit_id":"487e7946bb9b140f56efa2ffd66d3a5998abfe30","original_commit_id":"487e7946bb9b140f56efa2ffd66d3a5998abfe30","user":{"login":"johandahlberg","id":1788862,"avatar_url":"https://avatars.githubusercontent.com/u/1788862?v=3","gravatar_id":"","url":"https://api.github.com/users/johandahlberg","html_url":"https://github.com/johandahlberg","followers_url":"https://api.github.com/users/johandahlberg/followers","following_url":"https://api.github.com/users/johandahlberg/following{/other_user}","gists_url":"https://api.github.com/users/johandahlberg/gists{/gist_id}","starred_url":"https://api.github.com/users/johandahlberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johandahlberg/subscriptions","organizations_url":"https://api.github.com/users/johandahlberg/orgs","repos_url":"https://api.github.com/users/johandahlberg/repos","events_url":"https://api.github.com/users/johandahlberg/events{/privacy}","received_events_url":"https://api.github.com/users/johandahlberg/received_events","type":"User","site_admin":false},"body":"I don't know exactly how to do it, but it would be nice if this did not need to be enumerated here. I thinking that if one adds a new type of state it would be nice if that was automatically valid.","created_at":"2015-09-23T13:40:33Z","updated_at":"2015-09-23T13:40:33Z","html_url":"https://github.com/arteria-project/arteria-runfolder/pull/7#discussion_r40203576","pull_request_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/arteria-project/arteria-runfolder/pulls/comments/40203576"},"html":{"href":"https://github.com/arteria-project/arteria-runfolder/pull/7#discussion_r40203576"},"pull_request":{"href":"https://api.github.com/repos/arteria-project/arteria-runfolder/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/arteria-project/arteria-runfolder/pulls/7","id":45775176,"html_url":"https://github.com/arteria-project/arteria-runfolder/pull/7","diff_url":"https://github.com/arteria-project/arteria-runfolder/pull/7.diff","patch_url":"https://github.com/arteria-project/arteria-runfolder/pull/7.patch","issue_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/issues/7","number":7,"state":"open","locked":false,"title":"Added the implementation for updating runfolder state","user":{"login":"withrocks","id":800390,"avatar_url":"https://avatars.githubusercontent.com/u/800390?v=3","gravatar_id":"","url":"https://api.github.com/users/withrocks","html_url":"https://github.com/withrocks","followers_url":"https://api.github.com/users/withrocks/followers","following_url":"https://api.github.com/users/withrocks/following{/other_user}","gists_url":"https://api.github.com/users/withrocks/gists{/gist_id}","starred_url":"https://api.github.com/users/withrocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withrocks/subscriptions","organizations_url":"https://api.github.com/users/withrocks/orgs","repos_url":"https://api.github.com/users/withrocks/repos","events_url":"https://api.github.com/users/withrocks/events{/privacy}","received_events_url":"https://api.github.com/users/withrocks/received_events","type":"User","site_admin":false},"body":"The implementation was missing from the webservice, only implemented in the service\r\nAlso added filtering when querying for runfolders\r\nIntegration tests updated","created_at":"2015-09-23T12:54:15Z","updated_at":"2015-09-23T13:40:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88e655b355af51fb32bf4142f4ea6a5ae1c45a16","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/pulls/7/commits","review_comments_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/pulls/7/comments","review_comment_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/issues/7/comments","statuses_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/statuses/487e7946bb9b140f56efa2ffd66d3a5998abfe30","head":{"label":"withrocks:runfolder-state","ref":"runfolder-state","sha":"487e7946bb9b140f56efa2ffd66d3a5998abfe30","user":{"login":"withrocks","id":800390,"avatar_url":"https://avatars.githubusercontent.com/u/800390?v=3","gravatar_id":"","url":"https://api.github.com/users/withrocks","html_url":"https://github.com/withrocks","followers_url":"https://api.github.com/users/withrocks/followers","following_url":"https://api.github.com/users/withrocks/following{/other_user}","gists_url":"https://api.github.com/users/withrocks/gists{/gist_id}","starred_url":"https://api.github.com/users/withrocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withrocks/subscriptions","organizations_url":"https://api.github.com/users/withrocks/orgs","repos_url":"https://api.github.com/users/withrocks/repos","events_url":"https://api.github.com/users/withrocks/events{/privacy}","received_events_url":"https://api.github.com/users/withrocks/received_events","type":"User","site_admin":false},"repo":{"id":41739268,"name":"arteria-runfolder","full_name":"withrocks/arteria-runfolder","owner":{"login":"withrocks","id":800390,"avatar_url":"https://avatars.githubusercontent.com/u/800390?v=3","gravatar_id":"","url":"https://api.github.com/users/withrocks","html_url":"https://github.com/withrocks","followers_url":"https://api.github.com/users/withrocks/followers","following_url":"https://api.github.com/users/withrocks/following{/other_user}","gists_url":"https://api.github.com/users/withrocks/gists{/gist_id}","starred_url":"https://api.github.com/users/withrocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withrocks/subscriptions","organizations_url":"https://api.github.com/users/withrocks/orgs","repos_url":"https://api.github.com/users/withrocks/repos","events_url":"https://api.github.com/users/withrocks/events{/privacy}","received_events_url":"https://api.github.com/users/withrocks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/withrocks/arteria-runfolder","description":"A webservice used to monitor runfolders from Illumina instruments and check what state they are in (e.g. ready to process or not).","fork":true,"url":"https://api.github.com/repos/withrocks/arteria-runfolder","forks_url":"https://api.github.com/repos/withrocks/arteria-runfolder/forks","keys_url":"https://api.github.com/repos/withrocks/arteria-runfolder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/withrocks/arteria-runfolder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/withrocks/arteria-runfolder/teams","hooks_url":"https://api.github.com/repos/withrocks/arteria-runfolder/hooks","issue_events_url":"https://api.github.com/repos/withrocks/arteria-runfolder/issues/events{/number}","events_url":"https://api.github.com/repos/withrocks/arteria-runfolder/events","assignees_url":"https://api.github.com/repos/withrocks/arteria-runfolder/assignees{/user}","branches_url":"https://api.github.com/repos/withrocks/arteria-runfolder/branches{/branch}","tags_url":"https://api.github.com/repos/withrocks/arteria-runfolder/tags","blobs_url":"https://api.github.com/repos/withrocks/arteria-runfolder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/withrocks/arteria-runfolder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/withrocks/arteria-runfolder/git/refs{/sha}","trees_url":"https://api.github.com/repos/withrocks/arteria-runfolder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/withrocks/arteria-runfolder/statuses/{sha}","languages_url":"https://api.github.com/repos/withrocks/arteria-runfolder/languages","stargazers_url":"https://api.github.com/repos/withrocks/arteria-runfolder/stargazers","contributors_url":"https://api.github.com/repos/withrocks/arteria-runfolder/contributors","subscribers_url":"https://api.github.com/repos/withrocks/arteria-runfolder/subscribers","subscription_url":"https://api.github.com/repos/withrocks/arteria-runfolder/subscription","commits_url":"https://api.github.com/repos/withrocks/arteria-runfolder/commits{/sha}","git_commits_url":"https://api.github.com/repos/withrocks/arteria-runfolder/git/commits{/sha}","comments_url":"https://api.github.com/repos/withrocks/arteria-runfolder/comments{/number}","issue_comment_url":"https://api.github.com/repos/withrocks/arteria-runfolder/issues/comments{/number}","contents_url":"https://api.github.com/repos/withrocks/arteria-runfolder/contents/{+path}","compare_url":"https://api.github.com/repos/withrocks/arteria-runfolder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/withrocks/arteria-runfolder/merges","archive_url":"https://api.github.com/repos/withrocks/arteria-runfolder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/withrocks/arteria-runfolder/downloads","issues_url":"https://api.github.com/repos/withrocks/arteria-runfolder/issues{/number}","pulls_url":"https://api.github.com/repos/withrocks/arteria-runfolder/pulls{/number}","milestones_url":"https://api.github.com/repos/withrocks/arteria-runfolder/milestones{/number}","notifications_url":"https://api.github.com/repos/withrocks/arteria-runfolder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/withrocks/arteria-runfolder/labels{/name}","releases_url":"https://api.github.com/repos/withrocks/arteria-runfolder/releases{/id}","created_at":"2015-09-01T13:09:54Z","updated_at":"2015-09-01T13:09:54Z","pushed_at":"2015-09-23T12:51:25Z","git_url":"git://github.com/withrocks/arteria-runfolder.git","ssh_url":"git@github.com:withrocks/arteria-runfolder.git","clone_url":"https://github.com/withrocks/arteria-runfolder.git","svn_url":"https://github.com/withrocks/arteria-runfolder","homepage":null,"size":123,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"arteria-project:master","ref":"master","sha":"16405d6ed56dedbfd1ed08938d8e74c288959c5c","user":{"login":"arteria-project","id":13848054,"avatar_url":"https://avatars.githubusercontent.com/u/13848054?v=3","gravatar_id":"","url":"https://api.github.com/users/arteria-project","html_url":"https://github.com/arteria-project","followers_url":"https://api.github.com/users/arteria-project/followers","following_url":"https://api.github.com/users/arteria-project/following{/other_user}","gists_url":"https://api.github.com/users/arteria-project/gists{/gist_id}","starred_url":"https://api.github.com/users/arteria-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arteria-project/subscriptions","organizations_url":"https://api.github.com/users/arteria-project/orgs","repos_url":"https://api.github.com/users/arteria-project/repos","events_url":"https://api.github.com/users/arteria-project/events{/privacy}","received_events_url":"https://api.github.com/users/arteria-project/received_events","type":"Organization","site_admin":false},"repo":{"id":41308290,"name":"arteria-runfolder","full_name":"arteria-project/arteria-runfolder","owner":{"login":"arteria-project","id":13848054,"avatar_url":"https://avatars.githubusercontent.com/u/13848054?v=3","gravatar_id":"","url":"https://api.github.com/users/arteria-project","html_url":"https://github.com/arteria-project","followers_url":"https://api.github.com/users/arteria-project/followers","following_url":"https://api.github.com/users/arteria-project/following{/other_user}","gists_url":"https://api.github.com/users/arteria-project/gists{/gist_id}","starred_url":"https://api.github.com/users/arteria-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arteria-project/subscriptions","organizations_url":"https://api.github.com/users/arteria-project/orgs","repos_url":"https://api.github.com/users/arteria-project/repos","events_url":"https://api.github.com/users/arteria-project/events{/privacy}","received_events_url":"https://api.github.com/users/arteria-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/arteria-project/arteria-runfolder","description":"A webservice used to monitor runfolders from Illumina instruments and check what state they are in (e.g. ready to process or not).","fork":false,"url":"https://api.github.com/repos/arteria-project/arteria-runfolder","forks_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/forks","keys_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/teams","hooks_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/hooks","issue_events_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/issues/events{/number}","events_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/events","assignees_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/assignees{/user}","branches_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/branches{/branch}","tags_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/tags","blobs_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/git/refs{/sha}","trees_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/statuses/{sha}","languages_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/languages","stargazers_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/stargazers","contributors_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/contributors","subscribers_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/subscribers","subscription_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/subscription","commits_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/commits{/sha}","git_commits_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/git/commits{/sha}","comments_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/comments{/number}","issue_comment_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/issues/comments{/number}","contents_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/contents/{+path}","compare_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/merges","archive_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/downloads","issues_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/issues{/number}","pulls_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/pulls{/number}","milestones_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/milestones{/number}","notifications_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/labels{/name}","releases_url":"https://api.github.com/repos/arteria-project/arteria-runfolder/releases{/id}","created_at":"2015-08-24T14:37:00Z","updated_at":"2015-08-24T14:37:32Z","pushed_at":"2015-09-23T12:54:15Z","git_url":"git://github.com/arteria-project/arteria-runfolder.git","ssh_url":"git@github.com:arteria-project/arteria-runfolder.git","clone_url":"https://github.com/arteria-project/arteria-runfolder.git","svn_url":"https://github.com/arteria-project/arteria-runfolder","homepage":null,"size":195,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arteria-project/arteria-runfolder/pulls/7"},"html":{"href":"https://github.com/arteria-project/arteria-runfolder/pull/7"},"issue":{"href":"https://api.github.com/repos/arteria-project/arteria-runfolder/issues/7"},"comments":{"href":"https://api.github.com/repos/arteria-project/arteria-runfolder/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/arteria-project/arteria-runfolder/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/arteria-project/arteria-runfolder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arteria-project/arteria-runfolder/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/arteria-project/arteria-runfolder/statuses/487e7946bb9b140f56efa2ffd66d3a5998abfe30"}}}}