{"action":"created","comment":{"url":"https://api.github.com/repos/reanahub/reana-workflow-controller/pulls/comments/234955687","pull_request_review_id":176706963,"id":234955687,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDk1NTY4Nw==","diff_hunk":"@@ -740,3 +743,151 @@ def test_start_input_parameters(app, session, default_user,\n             workflow = Workflow.query.filter(\n                 Workflow.id_ == workflow_created_uuid).first()\n             assert workflow.input_parameters == parameters['input_parameters']\n+\n+\n+@pytest.mark.parametrize(\"state\", [WorkflowStatus.created,\n+                                   WorkflowStatus.failed,\n+                                   WorkflowStatus.finished,\n+                                   pytest.param(WorkflowStatus.deleted,\n+                                                marks=pytest.mark.xfail),\n+                                   pytest.param(WorkflowStatus.running,\n+                                                marks=pytest.mark.xfail)])\n+@pytest.mark.parametrize(\"hard_delete\", [True, False])\n+def test_delete_workflow(app,\n+                         session,\n+                         default_user,\n+                         sample_yadage_workflow_in_db,\n+                         state,\n+                         hard_delete):\n+    \"\"\"Test deletion of a workflow in all possible states.\"\"\"\n+    sample_yadage_workflow_in_db.status = state\n+    session.add(sample_yadage_workflow_in_db)\n+    session.commit()\n+\n+    _delete_workflow(sample_yadage_workflow_in_db, hard_delete=hard_delete)","path":"tests/test_views.py","position":null,"original_position":71,"commit_id":"ae29fd6be2a06fb16b41254730dc4d796e38f45d","original_commit_id":"efca3e419311bd5eb2f36c74aa3679a65f3f9e66","user":{"login":"dinosk","id":1566093,"node_id":"MDQ6VXNlcjE1NjYwOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/1566093?v=4","gravatar_id":"","url":"https://api.github.com/users/dinosk","html_url":"https://github.com/dinosk","followers_url":"https://api.github.com/users/dinosk/followers","following_url":"https://api.github.com/users/dinosk/following{/other_user}","gists_url":"https://api.github.com/users/dinosk/gists{/gist_id}","starred_url":"https://api.github.com/users/dinosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinosk/subscriptions","organizations_url":"https://api.github.com/users/dinosk/orgs","repos_url":"https://api.github.com/users/dinosk/repos","events_url":"https://api.github.com/users/dinosk/events{/privacy}","received_events_url":"https://api.github.com/users/dinosk/received_events","type":"User","site_admin":false},"body":"@diegodelemos please take a look","created_at":"2018-11-20T10:55:23Z","updated_at":"2018-11-20T10:55:23Z","html_url":"https://github.com/reanahub/reana-workflow-controller/pull/141#discussion_r234955687","pull_request_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/pulls/141","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/reanahub/reana-workflow-controller/pulls/comments/234955687"},"html":{"href":"https://github.com/reanahub/reana-workflow-controller/pull/141#discussion_r234955687"},"pull_request":{"href":"https://api.github.com/repos/reanahub/reana-workflow-controller/pulls/141"}},"in_reply_to_id":234942202},"pull_request":{"url":"https://api.github.com/repos/reanahub/reana-workflow-controller/pulls/141","id":227582766,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3NTgyNzY2","html_url":"https://github.com/reanahub/reana-workflow-controller/pull/141","diff_url":"https://github.com/reanahub/reana-workflow-controller/pull/141.diff","patch_url":"https://github.com/reanahub/reana-workflow-controller/pull/141.patch","issue_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/issues/141","number":141,"state":"open","locked":false,"title":"api: addition of deleted status","user":{"login":"dinosk","id":1566093,"node_id":"MDQ6VXNlcjE1NjYwOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/1566093?v=4","gravatar_id":"","url":"https://api.github.com/users/dinosk","html_url":"https://github.com/dinosk","followers_url":"https://api.github.com/users/dinosk/followers","following_url":"https://api.github.com/users/dinosk/following{/other_user}","gists_url":"https://api.github.com/users/dinosk/gists{/gist_id}","starred_url":"https://api.github.com/users/dinosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinosk/subscriptions","organizations_url":"https://api.github.com/users/dinosk/orgs","repos_url":"https://api.github.com/users/dinosk/repos","events_url":"https://api.github.com/users/dinosk/events{/privacy}","received_events_url":"https://api.github.com/users/dinosk/received_events","type":"User","site_admin":false},"body":"* ADDS deleted status and handler for\r\n  workflow deletion in set_workflow_status().\r\n\r\nDepends on https://github.com/reanahub/reana-db/pull/15\r\nConnects https://github.com/reanahub/reana-client/issues/192\r\n\r\nSigned-off-by: Dinos Kousidis <dinos.kousidis@cern.ch>","created_at":"2018-11-01T11:01:26Z","updated_at":"2018-11-20T10:55:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9cee6265e0954d7a63ac707689a2e5656794ffc5","assignee":{"login":"dinosk","id":1566093,"node_id":"MDQ6VXNlcjE1NjYwOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/1566093?v=4","gravatar_id":"","url":"https://api.github.com/users/dinosk","html_url":"https://github.com/dinosk","followers_url":"https://api.github.com/users/dinosk/followers","following_url":"https://api.github.com/users/dinosk/following{/other_user}","gists_url":"https://api.github.com/users/dinosk/gists{/gist_id}","starred_url":"https://api.github.com/users/dinosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinosk/subscriptions","organizations_url":"https://api.github.com/users/dinosk/orgs","repos_url":"https://api.github.com/users/dinosk/repos","events_url":"https://api.github.com/users/dinosk/events{/privacy}","received_events_url":"https://api.github.com/users/dinosk/received_events","type":"User","site_admin":false},"assignees":[{"login":"dinosk","id":1566093,"node_id":"MDQ6VXNlcjE1NjYwOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/1566093?v=4","gravatar_id":"","url":"https://api.github.com/users/dinosk","html_url":"https://github.com/dinosk","followers_url":"https://api.github.com/users/dinosk/followers","following_url":"https://api.github.com/users/dinosk/following{/other_user}","gists_url":"https://api.github.com/users/dinosk/gists{/gist_id}","starred_url":"https://api.github.com/users/dinosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinosk/subscriptions","organizations_url":"https://api.github.com/users/dinosk/orgs","repos_url":"https://api.github.com/users/dinosk/repos","events_url":"https://api.github.com/users/dinosk/events{/privacy}","received_events_url":"https://api.github.com/users/dinosk/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":519417520,"node_id":"MDU6TGFiZWw1MTk0MTc1MjA=","url":"https://api.github.com/repos/reanahub/reana-workflow-controller/labels/Status:%20in%20review","name":"Status: in review","color":"3cbc3c","default":false}],"milestone":{"url":"https://api.github.com/repos/reanahub/reana-workflow-controller/milestones/13","html_url":"https://github.com/reanahub/reana-workflow-controller/milestone/13","labels_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/milestones/13/labels","id":3788021,"node_id":"MDk6TWlsZXN0b25lMzc4ODAyMQ==","number":13,"title":"Live-Mode","description":null,"creator":{"login":"tiborsimko","id":517546,"node_id":"MDQ6VXNlcjUxNzU0Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/517546?v=4","gravatar_id":"","url":"https://api.github.com/users/tiborsimko","html_url":"https://github.com/tiborsimko","followers_url":"https://api.github.com/users/tiborsimko/followers","following_url":"https://api.github.com/users/tiborsimko/following{/other_user}","gists_url":"https://api.github.com/users/tiborsimko/gists{/gist_id}","starred_url":"https://api.github.com/users/tiborsimko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiborsimko/subscriptions","organizations_url":"https://api.github.com/users/tiborsimko/orgs","repos_url":"https://api.github.com/users/tiborsimko/repos","events_url":"https://api.github.com/users/tiborsimko/events{/privacy}","received_events_url":"https://api.github.com/users/tiborsimko/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2018-11-01T12:51:21Z","updated_at":"2018-11-20T10:50:23Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/pulls/141/commits","review_comments_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/pulls/141/comments","review_comment_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/issues/141/comments","statuses_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/statuses/ae29fd6be2a06fb16b41254730dc4d796e38f45d","head":{"label":"dinosk:192-workflow-deletion","ref":"192-workflow-deletion","sha":"ae29fd6be2a06fb16b41254730dc4d796e38f45d","user":{"login":"dinosk","id":1566093,"node_id":"MDQ6VXNlcjE1NjYwOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/1566093?v=4","gravatar_id":"","url":"https://api.github.com/users/dinosk","html_url":"https://github.com/dinosk","followers_url":"https://api.github.com/users/dinosk/followers","following_url":"https://api.github.com/users/dinosk/following{/other_user}","gists_url":"https://api.github.com/users/dinosk/gists{/gist_id}","starred_url":"https://api.github.com/users/dinosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinosk/subscriptions","organizations_url":"https://api.github.com/users/dinosk/orgs","repos_url":"https://api.github.com/users/dinosk/repos","events_url":"https://api.github.com/users/dinosk/events{/privacy}","received_events_url":"https://api.github.com/users/dinosk/received_events","type":"User","site_admin":false},"repo":{"id":123432921,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM0MzI5MjE=","name":"reana-workflow-controller","full_name":"dinosk/reana-workflow-controller","private":false,"owner":{"login":"dinosk","id":1566093,"node_id":"MDQ6VXNlcjE1NjYwOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/1566093?v=4","gravatar_id":"","url":"https://api.github.com/users/dinosk","html_url":"https://github.com/dinosk","followers_url":"https://api.github.com/users/dinosk/followers","following_url":"https://api.github.com/users/dinosk/following{/other_user}","gists_url":"https://api.github.com/users/dinosk/gists{/gist_id}","starred_url":"https://api.github.com/users/dinosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinosk/subscriptions","organizations_url":"https://api.github.com/users/dinosk/orgs","repos_url":"https://api.github.com/users/dinosk/repos","events_url":"https://api.github.com/users/dinosk/events{/privacy}","received_events_url":"https://api.github.com/users/dinosk/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dinosk/reana-workflow-controller","description":"REANA Workflow Controller","fork":true,"url":"https://api.github.com/repos/dinosk/reana-workflow-controller","forks_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/forks","keys_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/teams","hooks_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/hooks","issue_events_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/issues/events{/number}","events_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/events","assignees_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/assignees{/user}","branches_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/branches{/branch}","tags_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/tags","blobs_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/git/refs{/sha}","trees_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/statuses/{sha}","languages_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/languages","stargazers_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/stargazers","contributors_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/contributors","subscribers_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/subscribers","subscription_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/subscription","commits_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/commits{/sha}","git_commits_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/git/commits{/sha}","comments_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/comments{/number}","issue_comment_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/issues/comments{/number}","contents_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/contents/{+path}","compare_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/merges","archive_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/downloads","issues_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/issues{/number}","pulls_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/pulls{/number}","milestones_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/milestones{/number}","notifications_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/labels{/name}","releases_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/releases{/id}","deployments_url":"https://api.github.com/repos/dinosk/reana-workflow-controller/deployments","created_at":"2018-03-01T12:37:20Z","updated_at":"2018-03-01T12:37:22Z","pushed_at":"2018-11-20T10:52:29Z","git_url":"git://github.com/dinosk/reana-workflow-controller.git","ssh_url":"git@github.com:dinosk/reana-workflow-controller.git","clone_url":"https://github.com/dinosk/reana-workflow-controller.git","svn_url":"https://github.com/dinosk/reana-workflow-controller","homepage":"http://reana-workflow-controller.readthedocs.io/","size":397,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"reanahub:master","ref":"master","sha":"eb6146ec83308ea62206975b0f2cf272ba194414","user":{"login":"reanahub","id":25082830,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDgyODMw","avatar_url":"https://avatars1.githubusercontent.com/u/25082830?v=4","gravatar_id":"","url":"https://api.github.com/users/reanahub","html_url":"https://github.com/reanahub","followers_url":"https://api.github.com/users/reanahub/followers","following_url":"https://api.github.com/users/reanahub/following{/other_user}","gists_url":"https://api.github.com/users/reanahub/gists{/gist_id}","starred_url":"https://api.github.com/users/reanahub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reanahub/subscriptions","organizations_url":"https://api.github.com/users/reanahub/orgs","repos_url":"https://api.github.com/users/reanahub/repos","events_url":"https://api.github.com/users/reanahub/events{/privacy}","received_events_url":"https://api.github.com/users/reanahub/received_events","type":"Organization","site_admin":false},"repo":{"id":75836368,"node_id":"MDEwOlJlcG9zaXRvcnk3NTgzNjM2OA==","name":"reana-workflow-controller","full_name":"reanahub/reana-workflow-controller","private":false,"owner":{"login":"reanahub","id":25082830,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDgyODMw","avatar_url":"https://avatars1.githubusercontent.com/u/25082830?v=4","gravatar_id":"","url":"https://api.github.com/users/reanahub","html_url":"https://github.com/reanahub","followers_url":"https://api.github.com/users/reanahub/followers","following_url":"https://api.github.com/users/reanahub/following{/other_user}","gists_url":"https://api.github.com/users/reanahub/gists{/gist_id}","starred_url":"https://api.github.com/users/reanahub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reanahub/subscriptions","organizations_url":"https://api.github.com/users/reanahub/orgs","repos_url":"https://api.github.com/users/reanahub/repos","events_url":"https://api.github.com/users/reanahub/events{/privacy}","received_events_url":"https://api.github.com/users/reanahub/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/reanahub/reana-workflow-controller","description":"REANA Workflow Controller","fork":false,"url":"https://api.github.com/repos/reanahub/reana-workflow-controller","forks_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/forks","keys_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/teams","hooks_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/hooks","issue_events_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/issues/events{/number}","events_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/events","assignees_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/assignees{/user}","branches_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/branches{/branch}","tags_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/tags","blobs_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/git/refs{/sha}","trees_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/statuses/{sha}","languages_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/languages","stargazers_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/stargazers","contributors_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/contributors","subscribers_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/subscribers","subscription_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/subscription","commits_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/commits{/sha}","git_commits_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/git/commits{/sha}","comments_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/comments{/number}","issue_comment_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/issues/comments{/number}","contents_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/contents/{+path}","compare_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/merges","archive_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/downloads","issues_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/issues{/number}","pulls_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/pulls{/number}","milestones_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/milestones{/number}","notifications_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/labels{/name}","releases_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/releases{/id}","deployments_url":"https://api.github.com/repos/reanahub/reana-workflow-controller/deployments","created_at":"2016-12-07T13:01:27Z","updated_at":"2018-11-19T15:16:56Z","pushed_at":"2018-11-20T10:52:30Z","git_url":"git://github.com/reanahub/reana-workflow-controller.git","ssh_url":"git@github.com:reanahub/reana-workflow-controller.git","clone_url":"https://github.com/reanahub/reana-workflow-controller.git","svn_url":"https://github.com/reanahub/reana-workflow-controller","homepage":"http://reana-workflow-controller.readthedocs.io/","size":370,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":10,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reanahub/reana-workflow-controller/pulls/141"},"html":{"href":"https://github.com/reanahub/reana-workflow-controller/pull/141"},"issue":{"href":"https://api.github.com/repos/reanahub/reana-workflow-controller/issues/141"},"comments":{"href":"https://api.github.com/repos/reanahub/reana-workflow-controller/issues/141/comments"},"review_comments":{"href":"https://api.github.com/repos/reanahub/reana-workflow-controller/pulls/141/comments"},"review_comment":{"href":"https://api.github.com/repos/reanahub/reana-workflow-controller/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reanahub/reana-workflow-controller/pulls/141/commits"},"statuses":{"href":"https://api.github.com/repos/reanahub/reana-workflow-controller/statuses/ae29fd6be2a06fb16b41254730dc4d796e38f45d"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"dinosk"}}