{"action":"created","comment":{"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/pulls/comments/22642507","id":22642507,"diff_hunk":"@@ -23,28 +30,43 @@\n ; policy={{stream.metadata.policy}}\n ; policy_type={{stream.metadata.policy_type}}\n ; members={{stream.metadata.members | join(\", \")}}\n-(let [process-policy-triggers\n-        (process-policy-triggers-stream \"{{ctx.blueprint.id}}\"\n-                                        \"{{ctx.deployment.id}}\"\n-                                        \"{{stream.metadata.group}}\"\n-                                        \"{{stream.metadata.policy}}\"\n-                                        deployment-processing-queue)\n-      publish-policy-event\n-        (publish-policy-event* \"{{ctx.blueprint.id}}\"\n-                               \"{{ctx.deployment.id}}\"\n-                               \"{{stream.metadata.group}}\"\n-                               \"{{stream.metadata.policy}}\")\n-      publish-policy-error\n-        (publish-policy-error* \"{{ctx.blueprint.id}}\"\n-                               \"{{ctx.deployment.id}}\"\n-                               \"{{stream.metadata.group}}\"\n-                               \"{{stream.metadata.policy}}\")\n-      publish-log\n-        (publish-log* \"{{ctx.blueprint.id}}\"\n-                      \"{{ctx.deployment.id}}\"\n-                      \"{{stream.metadata.group}}\"\n-                      \"{{stream.metadata.policy}}\")]\n-(where* (is-node-name-in {%for m in stream.metadata.members%}\"{{m}}\" {%endfor%})\n-(exception-stream publish-policy-error\n-{{stream.data}})))\n-{% endfor %}))\n+(let [ctx {:blueprint-id  \"{{ctx.blueprint.id}}\"\n+           :deployment_id \"{{ctx.deployment.id}}\"\n+           :group         \"{{stream.metadata.group}}\"\n+           :policy        \"{{stream.metadata.policy}}\"}\n+      process-policy-triggers      (process-policy-triggers-stream\n+                                     ctx deployment-processing-queue)\n+      publish-policy-event         (publish-policy-event* ctx)\n+      publish-policy-error         (publish-policy-error* ctx)\n+      publish-log                  (publish-log* ctx)\n+      restraints                   (get-workflow-restraints\n+                                     (parse-boolean \"{{stream.metadata.policy_properties.is_node_started_before_workflow}}\")","path":"plugins/riemann-controller/riemann_controller/resources/deployment.config.template","position":62,"original_position":62,"commit_id":"664e484d5fc837ac9dc3f583e7ef9688438968c9","original_commit_id":"664e484d5fc837ac9dc3f583e7ef9688438968c9","user":{"login":"simon-bar","id":9164446,"avatar_url":"https://avatars.githubusercontent.com/u/9164446?v=3","gravatar_id":"","url":"https://api.github.com/users/simon-bar","html_url":"https://github.com/simon-bar","followers_url":"https://api.github.com/users/simon-bar/followers","following_url":"https://api.github.com/users/simon-bar/following{/other_user}","gists_url":"https://api.github.com/users/simon-bar/gists{/gist_id}","starred_url":"https://api.github.com/users/simon-bar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon-bar/subscriptions","organizations_url":"https://api.github.com/users/simon-bar/orgs","repos_url":"https://api.github.com/users/simon-bar/repos","events_url":"https://api.github.com/users/simon-bar/events{/privacy}","received_events_url":"https://api.github.com/users/simon-bar/received_events","type":"User","site_admin":false},"body":"Leave some clojure comments about unspecified values being handled correctly","created_at":"2015-01-08T09:38:18Z","updated_at":"2015-01-08T09:38:18Z","html_url":"https://github.com/cloudify-cosmo/cloudify-manager/pull/179#discussion_r22642507","pull_request_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/pulls/179","_links":{"self":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/pulls/comments/22642507"},"html":{"href":"https://github.com/cloudify-cosmo/cloudify-manager/pull/179#discussion_r22642507"},"pull_request":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/pulls/179"}}},"pull_request":{"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/pulls/179","id":25744791,"html_url":"https://github.com/cloudify-cosmo/cloudify-manager/pull/179","diff_url":"https://github.com/cloudify-cosmo/cloudify-manager/pull/179.diff","patch_url":"https://github.com/cloudify-cosmo/cloudify-manager/pull/179.patch","issue_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/issues/179","number":179,"state":"open","locked":false,"title":"Failure healing policies","user":{"login":"zofiaOS","id":2772813,"avatar_url":"https://avatars.githubusercontent.com/u/2772813?v=3","gravatar_id":"","url":"https://api.github.com/users/zofiaOS","html_url":"https://github.com/zofiaOS","followers_url":"https://api.github.com/users/zofiaOS/followers","following_url":"https://api.github.com/users/zofiaOS/following{/other_user}","gists_url":"https://api.github.com/users/zofiaOS/gists{/gist_id}","starred_url":"https://api.github.com/users/zofiaOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zofiaOS/subscriptions","organizations_url":"https://api.github.com/users/zofiaOS/orgs","repos_url":"https://api.github.com/users/zofiaOS/repos","events_url":"https://api.github.com/users/zofiaOS/events{/privacy}","received_events_url":"https://api.github.com/users/zofiaOS/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-12-09T14:05:26Z","updated_at":"2015-01-08T09:38:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"929a8296ae1169844663efbbac6a8eb9092202f5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/pulls/179/commits","review_comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/pulls/179/comments","review_comment_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/issues/179/comments","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/statuses/664e484d5fc837ac9dc3f583e7ef9688438968c9","head":{"label":"codilime:failure_healing_policies","ref":"failure_healing_policies","sha":"664e484d5fc837ac9dc3f583e7ef9688438968c9","user":{"login":"codilime","id":2143695,"avatar_url":"https://avatars.githubusercontent.com/u/2143695?v=3","gravatar_id":"","url":"https://api.github.com/users/codilime","html_url":"https://github.com/codilime","followers_url":"https://api.github.com/users/codilime/followers","following_url":"https://api.github.com/users/codilime/following{/other_user}","gists_url":"https://api.github.com/users/codilime/gists{/gist_id}","starred_url":"https://api.github.com/users/codilime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codilime/subscriptions","organizations_url":"https://api.github.com/users/codilime/orgs","repos_url":"https://api.github.com/users/codilime/repos","events_url":"https://api.github.com/users/codilime/events{/privacy}","received_events_url":"https://api.github.com/users/codilime/received_events","type":"Organization","site_admin":false},"repo":{"id":25348437,"name":"cloudify-manager","full_name":"codilime/cloudify-manager","owner":{"login":"codilime","id":2143695,"avatar_url":"https://avatars.githubusercontent.com/u/2143695?v=3","gravatar_id":"","url":"https://api.github.com/users/codilime","html_url":"https://github.com/codilime","followers_url":"https://api.github.com/users/codilime/followers","following_url":"https://api.github.com/users/codilime/following{/other_user}","gists_url":"https://api.github.com/users/codilime/gists{/gist_id}","starred_url":"https://api.github.com/users/codilime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codilime/subscriptions","organizations_url":"https://api.github.com/users/codilime/orgs","repos_url":"https://api.github.com/users/codilime/repos","events_url":"https://api.github.com/users/codilime/events{/privacy}","received_events_url":"https://api.github.com/users/codilime/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codilime/cloudify-manager","description":"Cloudify's manager related code","fork":true,"url":"https://api.github.com/repos/codilime/cloudify-manager","forks_url":"https://api.github.com/repos/codilime/cloudify-manager/forks","keys_url":"https://api.github.com/repos/codilime/cloudify-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codilime/cloudify-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codilime/cloudify-manager/teams","hooks_url":"https://api.github.com/repos/codilime/cloudify-manager/hooks","issue_events_url":"https://api.github.com/repos/codilime/cloudify-manager/issues/events{/number}","events_url":"https://api.github.com/repos/codilime/cloudify-manager/events","assignees_url":"https://api.github.com/repos/codilime/cloudify-manager/assignees{/user}","branches_url":"https://api.github.com/repos/codilime/cloudify-manager/branches{/branch}","tags_url":"https://api.github.com/repos/codilime/cloudify-manager/tags","blobs_url":"https://api.github.com/repos/codilime/cloudify-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codilime/cloudify-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codilime/cloudify-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/codilime/cloudify-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codilime/cloudify-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/codilime/cloudify-manager/languages","stargazers_url":"https://api.github.com/repos/codilime/cloudify-manager/stargazers","contributors_url":"https://api.github.com/repos/codilime/cloudify-manager/contributors","subscribers_url":"https://api.github.com/repos/codilime/cloudify-manager/subscribers","subscription_url":"https://api.github.com/repos/codilime/cloudify-manager/subscription","commits_url":"https://api.github.com/repos/codilime/cloudify-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/codilime/cloudify-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/codilime/cloudify-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/codilime/cloudify-manager/issues/comments/{number}","contents_url":"https://api.github.com/repos/codilime/cloudify-manager/contents/{+path}","compare_url":"https://api.github.com/repos/codilime/cloudify-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codilime/cloudify-manager/merges","archive_url":"https://api.github.com/repos/codilime/cloudify-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codilime/cloudify-manager/downloads","issues_url":"https://api.github.com/repos/codilime/cloudify-manager/issues{/number}","pulls_url":"https://api.github.com/repos/codilime/cloudify-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/codilime/cloudify-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/codilime/cloudify-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codilime/cloudify-manager/labels{/name}","releases_url":"https://api.github.com/repos/codilime/cloudify-manager/releases{/id}","created_at":"2014-10-17T08:50:08Z","updated_at":"2014-12-30T22:27:27Z","pushed_at":"2015-01-07T14:15:55Z","git_url":"git://github.com/codilime/cloudify-manager.git","ssh_url":"git@github.com:codilime/cloudify-manager.git","clone_url":"https://github.com/codilime/cloudify-manager.git","svn_url":"https://github.com/codilime/cloudify-manager","homepage":null,"size":12567,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cloudify-cosmo:failure_healing_policies","ref":"failure_healing_policies","sha":"fe09eff0fce763369ab88d3f7a3c7a5f092db4e4","user":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"repo":{"id":18326574,"name":"cloudify-manager","full_name":"cloudify-cosmo/cloudify-manager","owner":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudify-cosmo/cloudify-manager","description":"Cloudify's manager related code","fork":false,"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager","forks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/forks","keys_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/teams","hooks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/hooks","issue_events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/issues/events{/number}","events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/events","assignees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/assignees{/user}","branches_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/branches{/branch}","tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/tags","blobs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/languages","stargazers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/stargazers","contributors_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/contributors","subscribers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/subscribers","subscription_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/subscription","commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/issues/comments/{number}","contents_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/contents/{+path}","compare_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/merges","archive_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/downloads","issues_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/issues{/number}","pulls_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/labels{/name}","releases_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/releases{/id}","created_at":"2014-04-01T11:06:47Z","updated_at":"2015-01-06T11:06:19Z","pushed_at":"2015-01-08T07:24:38Z","git_url":"git://github.com/cloudify-cosmo/cloudify-manager.git","ssh_url":"git@github.com:cloudify-cosmo/cloudify-manager.git","clone_url":"https://github.com/cloudify-cosmo/cloudify-manager.git","svn_url":"https://github.com/cloudify-cosmo/cloudify-manager","homepage":null,"size":16056,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/pulls/179"},"html":{"href":"https://github.com/cloudify-cosmo/cloudify-manager/pull/179"},"issue":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/issues/179"},"comments":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/issues/179/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/pulls/179/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/pulls/179/commits"},"statuses":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-manager/statuses/664e484d5fc837ac9dc3f583e7ef9688438968c9"}}}}