{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy/issues/708","repository_url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy","labels_url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy/issues/708/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy/issues/708/comments","events_url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy/issues/708/events","html_url":"https://github.com/apache/incubator-openwhisk-wskdeploy/issues/708","id":294458807,"number":708,"title":"redeploy manifest with rule leaves as disables","user":{"login":"ScottChapman","id":1517892,"avatar_url":"https://avatars2.githubusercontent.com/u/1517892?v=4","gravatar_id":"","url":"https://api.github.com/users/ScottChapman","html_url":"https://github.com/ScottChapman","followers_url":"https://api.github.com/users/ScottChapman/followers","following_url":"https://api.github.com/users/ScottChapman/following{/other_user}","gists_url":"https://api.github.com/users/ScottChapman/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottChapman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottChapman/subscriptions","organizations_url":"https://api.github.com/users/ScottChapman/orgs","repos_url":"https://api.github.com/users/ScottChapman/repos","events_url":"https://api.github.com/users/ScottChapman/events{/privacy}","received_events_url":"https://api.github.com/users/ScottChapman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-02-05T16:36:25Z","updated_at":"2018-02-12T18:35:10Z","closed_at":null,"author_association":"NONE","body":"When I first deployed my app (which included a rule) it was enabled.\r\n\r\nDoing another deploy (possibly an undeploy first) left the rule as disabled/"},"comment":{"url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy/issues/comments/365018487","html_url":"https://github.com/apache/incubator-openwhisk-wskdeploy/issues/708#issuecomment-365018487","issue_url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy/issues/708","id":365018487,"user":{"login":"pritidesai","id":206285,"avatar_url":"https://avatars1.githubusercontent.com/u/206285?v=4","gravatar_id":"","url":"https://api.github.com/users/pritidesai","html_url":"https://github.com/pritidesai","followers_url":"https://api.github.com/users/pritidesai/followers","following_url":"https://api.github.com/users/pritidesai/following{/other_user}","gists_url":"https://api.github.com/users/pritidesai/gists{/gist_id}","starred_url":"https://api.github.com/users/pritidesai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pritidesai/subscriptions","organizations_url":"https://api.github.com/users/pritidesai/orgs","repos_url":"https://api.github.com/users/pritidesai/repos","events_url":"https://api.github.com/users/pritidesai/events{/privacy}","received_events_url":"https://api.github.com/users/pritidesai/received_events","type":"User","site_admin":false},"created_at":"2018-02-12T18:35:10Z","updated_at":"2018-02-12T18:35:10Z","author_association":"CONTRIBUTOR","body":":( @csantanapr I didn't check your comment here, ended up debugging it :(\r\n\r\nyup, indeed its a backend issue:\r\n\r\n`r1` doesn't exist:\r\n\r\n```\r\ncurl --user user:password -X GET http://192.168.33.13:10001/api/v1/namespaces/guest/rules/r1\r\n{\"error\":\"The requested resource does not exist.\",\"code\":1430}\r\n```\r\n\r\nCreating `r1` using `PUT`:\r\n\r\n```\r\ncurl --user user:password -X PUT http://192.168.33.13:10001/api/v1/namespaces/guest/rules/r1 -H \"Content-Type: application/json\" -d '{\"name\":\"r1\",\"status\":\"active\",\"trigger\":\"/guest/trigger1\",\"action\":\"/guest/action1\",\"publish\":false}'\r\n{\"name\":\"r1\",\"publish\":false,\"annotations\":[],\"version\":\"0.0.1\",\"status\":\"active\",\"action\":{\"path\":\"guest/\",\"name\":\"action1\"},\"namespace\":\"guest\",\"trigger\":{\"path\":\"guest/\",\"name\":\"trigger1\"}}\r\n```\r\n\r\nGetting `r1`:\r\n\r\n```\r\n curl --user user:password -X GET http://192.168.33.13:10001/api/v1/namespaces/guest/rules/r1\r\n{\"name\":\"r1\",\"publish\":false,\"annotations\":[],\"version\":\"0.0.1\",\"status\":\"active\",\"action\":{\"path\":\"guest/\",\"name\":\"action1\"},\"namespace\":\"guest\",\"trigger\":{\"path\":\"guest\",\"name\":\"trigger1\"}}\r\n```\r\n\r\nUpdate rule `PUT r1`: \r\n\r\n```\r\ncurl --user user:password -X PUT http://192.168.33.13:10001/api/v1/namespaces/guest/rules/r1?overwrite=true -H \"Content-Type: application/json\" -d '{\"name\":\"r1\",\"status\":\"active\",\"trigger\":\"/guest/trigger1\",\"action\":\"/guest/action1\",\"publish\":false}'\r\n{\"name\":\"r1\",\"publish\":false,\"annotations\":[],\"version\":\"0.0.2\",\"status\":\"active\",\"action\":{\"path\":\"guest\",\"name\":\"action1\"},\"namespace\":\"guest\",\"trigger\":{\"path\":\"guest\",\"name\":\"trigger1\"}}\r\n```\r\n\r\nGet `r1`:\r\n\r\n```\r\ncurl --user user:password -X GET http://192.168.33.13:10001/api/v1/namespaces/guest/rules/r1\r\n{\"name\":\"r1\",\"publish\":false,\"annotations\":[],\"version\":\"0.0.2\",\"status\":\"inactive\",\"action\":{\"path\":\"guest\",\"name\":\"action1\"},\"namespace\":\"guest\",\"trigger\":{\"path\":\"guest\",\"name\":\"trigger1\"}}\r\n```"}}
{"actor":{"display_login":"pritidesai"}}