{"action":"created","comment":{"url":"https://api.github.com/repos/qiime2/qiime-studio/pulls/comments/67559902","id":67559902,"diff_hunk":"@@ -25,6 +33,7 @@ def hello():\n \n def start_server():\n     studio.debug = True\n+    studio.before_request(flush_stdio)","path":"qiime_studio/server.py","position":19,"original_position":19,"commit_id":"02b8aaf5d249869d4c7c923577d05751bdaf8bd1","original_commit_id":"02b8aaf5d249869d4c7c923577d05751bdaf8bd1","user":{"login":"jakereps","id":2638727,"avatar_url":"https://avatars.githubusercontent.com/u/2638727?v=3","gravatar_id":"","url":"https://api.github.com/users/jakereps","html_url":"https://github.com/jakereps","followers_url":"https://api.github.com/users/jakereps/followers","following_url":"https://api.github.com/users/jakereps/following{/other_user}","gists_url":"https://api.github.com/users/jakereps/gists{/gist_id}","starred_url":"https://api.github.com/users/jakereps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakereps/subscriptions","organizations_url":"https://api.github.com/users/jakereps/orgs","repos_url":"https://api.github.com/users/jakereps/repos","events_url":"https://api.github.com/users/jakereps/events{/privacy}","received_events_url":"https://api.github.com/users/jakereps/received_events","type":"User","site_admin":false},"body":"Yeah, `after_request` seems to be working better, just have to pass the response through it.","created_at":"2016-06-17T19:03:01Z","updated_at":"2016-06-17T19:03:01Z","html_url":"https://github.com/qiime2/qiime-studio/pull/32#discussion_r67559902","pull_request_url":"https://api.github.com/repos/qiime2/qiime-studio/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/qiime2/qiime-studio/pulls/comments/67559902"},"html":{"href":"https://github.com/qiime2/qiime-studio/pull/32#discussion_r67559902"},"pull_request":{"href":"https://api.github.com/repos/qiime2/qiime-studio/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/qiime2/qiime-studio/pulls/32","id":73301661,"html_url":"https://github.com/qiime2/qiime-studio/pull/32","diff_url":"https://github.com/qiime2/qiime-studio/pull/32.diff","patch_url":"https://github.com/qiime2/qiime-studio/pull/32.patch","issue_url":"https://api.github.com/repos/qiime2/qiime-studio/issues/32","number":32,"state":"open","locked":false,"title":"Adds backend job execution with artifact refresh","user":{"login":"jakereps","id":2638727,"avatar_url":"https://avatars.githubusercontent.com/u/2638727?v=3","gravatar_id":"","url":"https://api.github.com/users/jakereps","html_url":"https://github.com/jakereps","followers_url":"https://api.github.com/users/jakereps/followers","following_url":"https://api.github.com/users/jakereps/following{/other_user}","gists_url":"https://api.github.com/users/jakereps/gists{/gist_id}","starred_url":"https://api.github.com/users/jakereps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakereps/subscriptions","organizations_url":"https://api.github.com/users/jakereps/orgs","repos_url":"https://api.github.com/users/jakereps/repos","events_url":"https://api.github.com/users/jakereps/events{/privacy}","received_events_url":"https://api.github.com/users/jakereps/received_events","type":"User","site_admin":false},"body":"~~Because it uses `Future.result()` it is blocking.~~ It is now non-blocking.\r\n\r\nWe might have to tweak something in the config as the server doesn't output anything to the command line unless you spam `Go`, or the process executes, making it extremely difficult to tell if it is working. Workaround is to send json back to the UI with the info you want and log it to console to see if it worked server-side.\r\n\r\n- [x] Execute jobs dispatched by UI\r\n- [x] Non-blocking (Confirmed via [q2-test-plugin.blocking_test_function](/jakereps/q2-test-plugin))\r\n- [x] Send any process errors back to UI for handling\r\n    - TODO (Seperate PR?): Add some kind of universal alert that will display the traceback being sent to the UI, bootstrap has some nice looking alert banners, AND allow code, so might just need a new Alert component or something?\r\n- [x] Disallow empty fields\r\n- [x] ~~Disallow empty dropdowns~~\r\n    - TODO (Separate PR): Disable Workflows that don't have all needed inputs #33 \r\n- [x] Refresh artifacts list once completed using promises\r\n\r\nResolves #29\r\nResolves #31","created_at":"2016-06-09T23:18:08Z","updated_at":"2016-06-17T19:03:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"877c64f32a534229d9c5ccda3023202d95df3a9a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/qiime2/qiime-studio/pulls/32/commits","review_comments_url":"https://api.github.com/repos/qiime2/qiime-studio/pulls/32/comments","review_comment_url":"https://api.github.com/repos/qiime2/qiime-studio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qiime2/qiime-studio/issues/32/comments","statuses_url":"https://api.github.com/repos/qiime2/qiime-studio/statuses/02b8aaf5d249869d4c7c923577d05751bdaf8bd1","head":{"label":"jakereps:job-execution","ref":"job-execution","sha":"02b8aaf5d249869d4c7c923577d05751bdaf8bd1","user":{"login":"jakereps","id":2638727,"avatar_url":"https://avatars.githubusercontent.com/u/2638727?v=3","gravatar_id":"","url":"https://api.github.com/users/jakereps","html_url":"https://github.com/jakereps","followers_url":"https://api.github.com/users/jakereps/followers","following_url":"https://api.github.com/users/jakereps/following{/other_user}","gists_url":"https://api.github.com/users/jakereps/gists{/gist_id}","starred_url":"https://api.github.com/users/jakereps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakereps/subscriptions","organizations_url":"https://api.github.com/users/jakereps/orgs","repos_url":"https://api.github.com/users/jakereps/repos","events_url":"https://api.github.com/users/jakereps/events{/privacy}","received_events_url":"https://api.github.com/users/jakereps/received_events","type":"User","site_admin":false},"repo":{"id":55560692,"name":"qiime-studio","full_name":"jakereps/qiime-studio","owner":{"login":"jakereps","id":2638727,"avatar_url":"https://avatars.githubusercontent.com/u/2638727?v=3","gravatar_id":"","url":"https://api.github.com/users/jakereps","html_url":"https://github.com/jakereps","followers_url":"https://api.github.com/users/jakereps/followers","following_url":"https://api.github.com/users/jakereps/following{/other_user}","gists_url":"https://api.github.com/users/jakereps/gists{/gist_id}","starred_url":"https://api.github.com/users/jakereps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakereps/subscriptions","organizations_url":"https://api.github.com/users/jakereps/orgs","repos_url":"https://api.github.com/users/jakereps/repos","events_url":"https://api.github.com/users/jakereps/events{/privacy}","received_events_url":"https://api.github.com/users/jakereps/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jakereps/qiime-studio","description":"A web interface for QIIME 2","fork":true,"url":"https://api.github.com/repos/jakereps/qiime-studio","forks_url":"https://api.github.com/repos/jakereps/qiime-studio/forks","keys_url":"https://api.github.com/repos/jakereps/qiime-studio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jakereps/qiime-studio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jakereps/qiime-studio/teams","hooks_url":"https://api.github.com/repos/jakereps/qiime-studio/hooks","issue_events_url":"https://api.github.com/repos/jakereps/qiime-studio/issues/events{/number}","events_url":"https://api.github.com/repos/jakereps/qiime-studio/events","assignees_url":"https://api.github.com/repos/jakereps/qiime-studio/assignees{/user}","branches_url":"https://api.github.com/repos/jakereps/qiime-studio/branches{/branch}","tags_url":"https://api.github.com/repos/jakereps/qiime-studio/tags","blobs_url":"https://api.github.com/repos/jakereps/qiime-studio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jakereps/qiime-studio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jakereps/qiime-studio/git/refs{/sha}","trees_url":"https://api.github.com/repos/jakereps/qiime-studio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jakereps/qiime-studio/statuses/{sha}","languages_url":"https://api.github.com/repos/jakereps/qiime-studio/languages","stargazers_url":"https://api.github.com/repos/jakereps/qiime-studio/stargazers","contributors_url":"https://api.github.com/repos/jakereps/qiime-studio/contributors","subscribers_url":"https://api.github.com/repos/jakereps/qiime-studio/subscribers","subscription_url":"https://api.github.com/repos/jakereps/qiime-studio/subscription","commits_url":"https://api.github.com/repos/jakereps/qiime-studio/commits{/sha}","git_commits_url":"https://api.github.com/repos/jakereps/qiime-studio/git/commits{/sha}","comments_url":"https://api.github.com/repos/jakereps/qiime-studio/comments{/number}","issue_comment_url":"https://api.github.com/repos/jakereps/qiime-studio/issues/comments{/number}","contents_url":"https://api.github.com/repos/jakereps/qiime-studio/contents/{+path}","compare_url":"https://api.github.com/repos/jakereps/qiime-studio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jakereps/qiime-studio/merges","archive_url":"https://api.github.com/repos/jakereps/qiime-studio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jakereps/qiime-studio/downloads","issues_url":"https://api.github.com/repos/jakereps/qiime-studio/issues{/number}","pulls_url":"https://api.github.com/repos/jakereps/qiime-studio/pulls{/number}","milestones_url":"https://api.github.com/repos/jakereps/qiime-studio/milestones{/number}","notifications_url":"https://api.github.com/repos/jakereps/qiime-studio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jakereps/qiime-studio/labels{/name}","releases_url":"https://api.github.com/repos/jakereps/qiime-studio/releases{/id}","deployments_url":"https://api.github.com/repos/jakereps/qiime-studio/deployments","created_at":"2016-04-05T23:24:05Z","updated_at":"2016-05-25T21:40:05Z","pushed_at":"2016-06-16T21:50:37Z","git_url":"git://github.com/jakereps/qiime-studio.git","ssh_url":"git@github.com:jakereps/qiime-studio.git","clone_url":"https://github.com/jakereps/qiime-studio.git","svn_url":"https://github.com/jakereps/qiime-studio","homepage":null,"size":140,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"qiime2:master","ref":"master","sha":"7a612e8f295124e6076bbc6999b1121ab5d66565","user":{"login":"qiime2","id":18176583,"avatar_url":"https://avatars.githubusercontent.com/u/18176583?v=3","gravatar_id":"","url":"https://api.github.com/users/qiime2","html_url":"https://github.com/qiime2","followers_url":"https://api.github.com/users/qiime2/followers","following_url":"https://api.github.com/users/qiime2/following{/other_user}","gists_url":"https://api.github.com/users/qiime2/gists{/gist_id}","starred_url":"https://api.github.com/users/qiime2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiime2/subscriptions","organizations_url":"https://api.github.com/users/qiime2/orgs","repos_url":"https://api.github.com/users/qiime2/repos","events_url":"https://api.github.com/users/qiime2/events{/privacy}","received_events_url":"https://api.github.com/users/qiime2/received_events","type":"Organization","site_admin":false},"repo":{"id":55105614,"name":"qiime-studio","full_name":"qiime2/qiime-studio","owner":{"login":"qiime2","id":18176583,"avatar_url":"https://avatars.githubusercontent.com/u/18176583?v=3","gravatar_id":"","url":"https://api.github.com/users/qiime2","html_url":"https://github.com/qiime2","followers_url":"https://api.github.com/users/qiime2/followers","following_url":"https://api.github.com/users/qiime2/following{/other_user}","gists_url":"https://api.github.com/users/qiime2/gists{/gist_id}","starred_url":"https://api.github.com/users/qiime2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiime2/subscriptions","organizations_url":"https://api.github.com/users/qiime2/orgs","repos_url":"https://api.github.com/users/qiime2/repos","events_url":"https://api.github.com/users/qiime2/events{/privacy}","received_events_url":"https://api.github.com/users/qiime2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qiime2/qiime-studio","description":"A web interface for QIIME 2","fork":false,"url":"https://api.github.com/repos/qiime2/qiime-studio","forks_url":"https://api.github.com/repos/qiime2/qiime-studio/forks","keys_url":"https://api.github.com/repos/qiime2/qiime-studio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qiime2/qiime-studio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qiime2/qiime-studio/teams","hooks_url":"https://api.github.com/repos/qiime2/qiime-studio/hooks","issue_events_url":"https://api.github.com/repos/qiime2/qiime-studio/issues/events{/number}","events_url":"https://api.github.com/repos/qiime2/qiime-studio/events","assignees_url":"https://api.github.com/repos/qiime2/qiime-studio/assignees{/user}","branches_url":"https://api.github.com/repos/qiime2/qiime-studio/branches{/branch}","tags_url":"https://api.github.com/repos/qiime2/qiime-studio/tags","blobs_url":"https://api.github.com/repos/qiime2/qiime-studio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qiime2/qiime-studio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qiime2/qiime-studio/git/refs{/sha}","trees_url":"https://api.github.com/repos/qiime2/qiime-studio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qiime2/qiime-studio/statuses/{sha}","languages_url":"https://api.github.com/repos/qiime2/qiime-studio/languages","stargazers_url":"https://api.github.com/repos/qiime2/qiime-studio/stargazers","contributors_url":"https://api.github.com/repos/qiime2/qiime-studio/contributors","subscribers_url":"https://api.github.com/repos/qiime2/qiime-studio/subscribers","subscription_url":"https://api.github.com/repos/qiime2/qiime-studio/subscription","commits_url":"https://api.github.com/repos/qiime2/qiime-studio/commits{/sha}","git_commits_url":"https://api.github.com/repos/qiime2/qiime-studio/git/commits{/sha}","comments_url":"https://api.github.com/repos/qiime2/qiime-studio/comments{/number}","issue_comment_url":"https://api.github.com/repos/qiime2/qiime-studio/issues/comments{/number}","contents_url":"https://api.github.com/repos/qiime2/qiime-studio/contents/{+path}","compare_url":"https://api.github.com/repos/qiime2/qiime-studio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qiime2/qiime-studio/merges","archive_url":"https://api.github.com/repos/qiime2/qiime-studio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qiime2/qiime-studio/downloads","issues_url":"https://api.github.com/repos/qiime2/qiime-studio/issues{/number}","pulls_url":"https://api.github.com/repos/qiime2/qiime-studio/pulls{/number}","milestones_url":"https://api.github.com/repos/qiime2/qiime-studio/milestones{/number}","notifications_url":"https://api.github.com/repos/qiime2/qiime-studio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qiime2/qiime-studio/labels{/name}","releases_url":"https://api.github.com/repos/qiime2/qiime-studio/releases{/id}","deployments_url":"https://api.github.com/repos/qiime2/qiime-studio/deployments","created_at":"2016-03-30T23:45:08Z","updated_at":"2016-06-02T01:22:14Z","pushed_at":"2016-06-16T21:50:37Z","git_url":"git://github.com/qiime2/qiime-studio.git","ssh_url":"git@github.com:qiime2/qiime-studio.git","clone_url":"https://github.com/qiime2/qiime-studio.git","svn_url":"https://github.com/qiime2/qiime-studio","homepage":null,"size":143,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":10,"forks":3,"open_issues":10,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qiime2/qiime-studio/pulls/32"},"html":{"href":"https://github.com/qiime2/qiime-studio/pull/32"},"issue":{"href":"https://api.github.com/repos/qiime2/qiime-studio/issues/32"},"comments":{"href":"https://api.github.com/repos/qiime2/qiime-studio/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/qiime2/qiime-studio/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/qiime2/qiime-studio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qiime2/qiime-studio/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/qiime2/qiime-studio/statuses/02b8aaf5d249869d4c7c923577d05751bdaf8bd1"}}}}
{"actor":{"display_login":"jakereps"}}