{"action":"created","comment":{"url":"https://api.github.com/repos/Ecpy/ecpy/pulls/comments/88208746","pull_request_review_id":7595836,"id":88208746,"diff_hunk":"@@ -106,11 +106,28 @@ enamldef ExecutionDockItem(DockItem):\n     title = 'Enqueued measures'\n \n     func move_measure(old, new):\n-        workspace.plugin.enqueued_measures.move(old, new)\n+        queue = workspace.plugin.enqueued_measures\n+        status = ('READY', 'COMPLETED', 'SKIPPED', 'INTERRUPTED', 'FAILED')\n+        if (queue.measures[old].status not in status or\n+            queue.measure[new].status not in status):\n+            information(self, title=\"Can't move measure\",\n+                        text=('Can only move measures whose status is one of:'\n+                              '\\n READY, COMPLETED, INTERRUPTED, FAILED,'\n+                              'SKIPPED'))","path":"ecpy/measure/workspace/measure_execution.enaml","position":null,"original_position":21,"commit_id":"4f7ccd8b29cccf94c9b696e5c5480644fed9c252","original_commit_id":"da96877c64c922aeb5c6ad7a696b69bfbd131259","user":{"login":"lcontami","id":11089557,"avatar_url":"https://avatars.githubusercontent.com/u/11089557?v=3","gravatar_id":"","url":"https://api.github.com/users/lcontami","html_url":"https://github.com/lcontami","followers_url":"https://api.github.com/users/lcontami/followers","following_url":"https://api.github.com/users/lcontami/following{/other_user}","gists_url":"https://api.github.com/users/lcontami/gists{/gist_id}","starred_url":"https://api.github.com/users/lcontami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcontami/subscriptions","organizations_url":"https://api.github.com/users/lcontami/orgs","repos_url":"https://api.github.com/users/lcontami/repos","events_url":"https://api.github.com/users/lcontami/events{/privacy}","received_events_url":"https://api.github.com/users/lcontami/received_events","type":"User","site_admin":false},"body":"You could reuse the status variable in the text message","created_at":"2016-11-16T10:31:28Z","updated_at":"2016-11-16T10:31:28Z","html_url":"https://github.com/Ecpy/ecpy/pull/67#discussion_r88208746","pull_request_url":"https://api.github.com/repos/Ecpy/ecpy/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/Ecpy/ecpy/pulls/comments/88208746"},"html":{"href":"https://github.com/Ecpy/ecpy/pull/67#discussion_r88208746"},"pull_request":{"href":"https://api.github.com/repos/Ecpy/ecpy/pulls/67"}}},"pull_request":{"url":"https://api.github.com/repos/Ecpy/ecpy/pulls/67","id":92377364,"html_url":"https://github.com/Ecpy/ecpy/pull/67","diff_url":"https://github.com/Ecpy/ecpy/pull/67.diff","patch_url":"https://github.com/Ecpy/ecpy/pull/67.patch","issue_url":"https://api.github.com/repos/Ecpy/ecpy/issues/67","number":67,"state":"open","locked":false,"title":"Updates for 0.1.0.b4","user":{"login":"MatthieuDartiailh","id":4481740,"avatar_url":"https://avatars.githubusercontent.com/u/4481740?v=3","gravatar_id":"","url":"https://api.github.com/users/MatthieuDartiailh","html_url":"https://github.com/MatthieuDartiailh","followers_url":"https://api.github.com/users/MatthieuDartiailh/followers","following_url":"https://api.github.com/users/MatthieuDartiailh/following{/other_user}","gists_url":"https://api.github.com/users/MatthieuDartiailh/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthieuDartiailh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthieuDartiailh/subscriptions","organizations_url":"https://api.github.com/users/MatthieuDartiailh/orgs","repos_url":"https://api.github.com/users/MatthieuDartiailh/repos","events_url":"https://api.github.com/users/MatthieuDartiailh/events{/privacy}","received_events_url":"https://api.github.com/users/MatthieuDartiailh/received_events","type":"User","site_admin":false},"body":"Bunch of fixes for issues encountered recently","created_at":"2016-11-04T16:56:09Z","updated_at":"2016-11-16T10:36:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c8df9c77b65ee84098314081fca0f30dd7392fa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ecpy/ecpy/pulls/67/commits","review_comments_url":"https://api.github.com/repos/Ecpy/ecpy/pulls/67/comments","review_comment_url":"https://api.github.com/repos/Ecpy/ecpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ecpy/ecpy/issues/67/comments","statuses_url":"https://api.github.com/repos/Ecpy/ecpy/statuses/4f7ccd8b29cccf94c9b696e5c5480644fed9c252","head":{"label":"Ecpy:0.1.0.b4","ref":"0.1.0.b4","sha":"4f7ccd8b29cccf94c9b696e5c5480644fed9c252","user":{"login":"Ecpy","id":11776114,"avatar_url":"https://avatars.githubusercontent.com/u/11776114?v=3","gravatar_id":"","url":"https://api.github.com/users/Ecpy","html_url":"https://github.com/Ecpy","followers_url":"https://api.github.com/users/Ecpy/followers","following_url":"https://api.github.com/users/Ecpy/following{/other_user}","gists_url":"https://api.github.com/users/Ecpy/gists{/gist_id}","starred_url":"https://api.github.com/users/Ecpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ecpy/subscriptions","organizations_url":"https://api.github.com/users/Ecpy/orgs","repos_url":"https://api.github.com/users/Ecpy/repos","events_url":"https://api.github.com/users/Ecpy/events{/privacy}","received_events_url":"https://api.github.com/users/Ecpy/received_events","type":"Organization","site_admin":false},"repo":{"id":33326768,"name":"ecpy","full_name":"Ecpy/ecpy","owner":{"login":"Ecpy","id":11776114,"avatar_url":"https://avatars.githubusercontent.com/u/11776114?v=3","gravatar_id":"","url":"https://api.github.com/users/Ecpy","html_url":"https://github.com/Ecpy","followers_url":"https://api.github.com/users/Ecpy/followers","following_url":"https://api.github.com/users/Ecpy/following{/other_user}","gists_url":"https://api.github.com/users/Ecpy/gists{/gist_id}","starred_url":"https://api.github.com/users/Ecpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ecpy/subscriptions","organizations_url":"https://api.github.com/users/Ecpy/orgs","repos_url":"https://api.github.com/users/Ecpy/repos","events_url":"https://api.github.com/users/Ecpy/events{/privacy}","received_events_url":"https://api.github.com/users/Ecpy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ecpy/ecpy","description":"Ecpy central application repository","fork":false,"url":"https://api.github.com/repos/Ecpy/ecpy","forks_url":"https://api.github.com/repos/Ecpy/ecpy/forks","keys_url":"https://api.github.com/repos/Ecpy/ecpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ecpy/ecpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ecpy/ecpy/teams","hooks_url":"https://api.github.com/repos/Ecpy/ecpy/hooks","issue_events_url":"https://api.github.com/repos/Ecpy/ecpy/issues/events{/number}","events_url":"https://api.github.com/repos/Ecpy/ecpy/events","assignees_url":"https://api.github.com/repos/Ecpy/ecpy/assignees{/user}","branches_url":"https://api.github.com/repos/Ecpy/ecpy/branches{/branch}","tags_url":"https://api.github.com/repos/Ecpy/ecpy/tags","blobs_url":"https://api.github.com/repos/Ecpy/ecpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ecpy/ecpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ecpy/ecpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ecpy/ecpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ecpy/ecpy/statuses/{sha}","languages_url":"https://api.github.com/repos/Ecpy/ecpy/languages","stargazers_url":"https://api.github.com/repos/Ecpy/ecpy/stargazers","contributors_url":"https://api.github.com/repos/Ecpy/ecpy/contributors","subscribers_url":"https://api.github.com/repos/Ecpy/ecpy/subscribers","subscription_url":"https://api.github.com/repos/Ecpy/ecpy/subscription","commits_url":"https://api.github.com/repos/Ecpy/ecpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ecpy/ecpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ecpy/ecpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ecpy/ecpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ecpy/ecpy/contents/{+path}","compare_url":"https://api.github.com/repos/Ecpy/ecpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ecpy/ecpy/merges","archive_url":"https://api.github.com/repos/Ecpy/ecpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ecpy/ecpy/downloads","issues_url":"https://api.github.com/repos/Ecpy/ecpy/issues{/number}","pulls_url":"https://api.github.com/repos/Ecpy/ecpy/pulls{/number}","milestones_url":"https://api.github.com/repos/Ecpy/ecpy/milestones{/number}","notifications_url":"https://api.github.com/repos/Ecpy/ecpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ecpy/ecpy/labels{/name}","releases_url":"https://api.github.com/repos/Ecpy/ecpy/releases{/id}","deployments_url":"https://api.github.com/repos/Ecpy/ecpy/deployments","created_at":"2015-04-02T19:07:19Z","updated_at":"2016-11-08T12:39:59Z","pushed_at":"2016-11-10T11:31:39Z","git_url":"git://github.com/Ecpy/ecpy.git","ssh_url":"git@github.com:Ecpy/ecpy.git","clone_url":"https://github.com/Ecpy/ecpy.git","svn_url":"https://github.com/Ecpy/ecpy","homepage":"http://ecpy.readthedocs.io/","size":1939,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":19,"forks":5,"open_issues":19,"watchers":4,"default_branch":"master"}},"base":{"label":"Ecpy:master","ref":"master","sha":"91ad0c46d014a67d4aa22e159faa2ce101004ea6","user":{"login":"Ecpy","id":11776114,"avatar_url":"https://avatars.githubusercontent.com/u/11776114?v=3","gravatar_id":"","url":"https://api.github.com/users/Ecpy","html_url":"https://github.com/Ecpy","followers_url":"https://api.github.com/users/Ecpy/followers","following_url":"https://api.github.com/users/Ecpy/following{/other_user}","gists_url":"https://api.github.com/users/Ecpy/gists{/gist_id}","starred_url":"https://api.github.com/users/Ecpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ecpy/subscriptions","organizations_url":"https://api.github.com/users/Ecpy/orgs","repos_url":"https://api.github.com/users/Ecpy/repos","events_url":"https://api.github.com/users/Ecpy/events{/privacy}","received_events_url":"https://api.github.com/users/Ecpy/received_events","type":"Organization","site_admin":false},"repo":{"id":33326768,"name":"ecpy","full_name":"Ecpy/ecpy","owner":{"login":"Ecpy","id":11776114,"avatar_url":"https://avatars.githubusercontent.com/u/11776114?v=3","gravatar_id":"","url":"https://api.github.com/users/Ecpy","html_url":"https://github.com/Ecpy","followers_url":"https://api.github.com/users/Ecpy/followers","following_url":"https://api.github.com/users/Ecpy/following{/other_user}","gists_url":"https://api.github.com/users/Ecpy/gists{/gist_id}","starred_url":"https://api.github.com/users/Ecpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ecpy/subscriptions","organizations_url":"https://api.github.com/users/Ecpy/orgs","repos_url":"https://api.github.com/users/Ecpy/repos","events_url":"https://api.github.com/users/Ecpy/events{/privacy}","received_events_url":"https://api.github.com/users/Ecpy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ecpy/ecpy","description":"Ecpy central application repository","fork":false,"url":"https://api.github.com/repos/Ecpy/ecpy","forks_url":"https://api.github.com/repos/Ecpy/ecpy/forks","keys_url":"https://api.github.com/repos/Ecpy/ecpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ecpy/ecpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ecpy/ecpy/teams","hooks_url":"https://api.github.com/repos/Ecpy/ecpy/hooks","issue_events_url":"https://api.github.com/repos/Ecpy/ecpy/issues/events{/number}","events_url":"https://api.github.com/repos/Ecpy/ecpy/events","assignees_url":"https://api.github.com/repos/Ecpy/ecpy/assignees{/user}","branches_url":"https://api.github.com/repos/Ecpy/ecpy/branches{/branch}","tags_url":"https://api.github.com/repos/Ecpy/ecpy/tags","blobs_url":"https://api.github.com/repos/Ecpy/ecpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ecpy/ecpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ecpy/ecpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ecpy/ecpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ecpy/ecpy/statuses/{sha}","languages_url":"https://api.github.com/repos/Ecpy/ecpy/languages","stargazers_url":"https://api.github.com/repos/Ecpy/ecpy/stargazers","contributors_url":"https://api.github.com/repos/Ecpy/ecpy/contributors","subscribers_url":"https://api.github.com/repos/Ecpy/ecpy/subscribers","subscription_url":"https://api.github.com/repos/Ecpy/ecpy/subscription","commits_url":"https://api.github.com/repos/Ecpy/ecpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ecpy/ecpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ecpy/ecpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ecpy/ecpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ecpy/ecpy/contents/{+path}","compare_url":"https://api.github.com/repos/Ecpy/ecpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ecpy/ecpy/merges","archive_url":"https://api.github.com/repos/Ecpy/ecpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ecpy/ecpy/downloads","issues_url":"https://api.github.com/repos/Ecpy/ecpy/issues{/number}","pulls_url":"https://api.github.com/repos/Ecpy/ecpy/pulls{/number}","milestones_url":"https://api.github.com/repos/Ecpy/ecpy/milestones{/number}","notifications_url":"https://api.github.com/repos/Ecpy/ecpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ecpy/ecpy/labels{/name}","releases_url":"https://api.github.com/repos/Ecpy/ecpy/releases{/id}","deployments_url":"https://api.github.com/repos/Ecpy/ecpy/deployments","created_at":"2015-04-02T19:07:19Z","updated_at":"2016-11-08T12:39:59Z","pushed_at":"2016-11-10T11:31:39Z","git_url":"git://github.com/Ecpy/ecpy.git","ssh_url":"git@github.com:Ecpy/ecpy.git","clone_url":"https://github.com/Ecpy/ecpy.git","svn_url":"https://github.com/Ecpy/ecpy","homepage":"http://ecpy.readthedocs.io/","size":1939,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":19,"forks":5,"open_issues":19,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ecpy/ecpy/pulls/67"},"html":{"href":"https://github.com/Ecpy/ecpy/pull/67"},"issue":{"href":"https://api.github.com/repos/Ecpy/ecpy/issues/67"},"comments":{"href":"https://api.github.com/repos/Ecpy/ecpy/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/Ecpy/ecpy/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/Ecpy/ecpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ecpy/ecpy/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/Ecpy/ecpy/statuses/4f7ccd8b29cccf94c9b696e5c5480644fed9c252"}}}}
{"actor":{"display_login":"lcontami"}}