{"action":"created","issue":{"url":"https://api.github.com/repos/OctopusDeploy/Issues/issues/3900","repository_url":"https://api.github.com/repos/OctopusDeploy/Issues","labels_url":"https://api.github.com/repos/OctopusDeploy/Issues/issues/3900/labels{/name}","comments_url":"https://api.github.com/repos/OctopusDeploy/Issues/issues/3900/comments","events_url":"https://api.github.com/repos/OctopusDeploy/Issues/issues/3900/events","html_url":"https://github.com/OctopusDeploy/Issues/issues/3900","id":270868077,"node_id":"MDU6SXNzdWUyNzA4NjgwNzc=","number":3900,"title":"Cascade delete of variable when deleting environment is not audited","user":{"login":"alexrolleyoctopus","id":29847178,"node_id":"MDQ6VXNlcjI5ODQ3MTc4","avatar_url":"https://avatars2.githubusercontent.com/u/29847178?v=4","gravatar_id":"","url":"https://api.github.com/users/alexrolleyoctopus","html_url":"https://github.com/alexrolleyoctopus","followers_url":"https://api.github.com/users/alexrolleyoctopus/followers","following_url":"https://api.github.com/users/alexrolleyoctopus/following{/other_user}","gists_url":"https://api.github.com/users/alexrolleyoctopus/gists{/gist_id}","starred_url":"https://api.github.com/users/alexrolleyoctopus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexrolleyoctopus/subscriptions","organizations_url":"https://api.github.com/users/alexrolleyoctopus/orgs","repos_url":"https://api.github.com/users/alexrolleyoctopus/repos","events_url":"https://api.github.com/users/alexrolleyoctopus/events{/privacy}","received_events_url":"https://api.github.com/users/alexrolleyoctopus/received_events","type":"User","site_admin":false},"labels":[{"id":509292211,"node_id":"MDU6TGFiZWw1MDkyOTIyMTE=","url":"https://api.github.com/repos/OctopusDeploy/Issues/labels/area/modelling","name":"area/modelling","color":"006b75","default":false},{"id":62440875,"node_id":"MDU6TGFiZWw2MjQ0MDg3NQ==","url":"https://api.github.com/repos/OctopusDeploy/Issues/labels/kind/bug","name":"kind/bug","color":"eb6420","default":false}],"state":"closed","locked":false,"assignee":{"login":"NickJosevski","id":119096,"node_id":"MDQ6VXNlcjExOTA5Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/119096?v=4","gravatar_id":"","url":"https://api.github.com/users/NickJosevski","html_url":"https://github.com/NickJosevski","followers_url":"https://api.github.com/users/NickJosevski/followers","following_url":"https://api.github.com/users/NickJosevski/following{/other_user}","gists_url":"https://api.github.com/users/NickJosevski/gists{/gist_id}","starred_url":"https://api.github.com/users/NickJosevski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickJosevski/subscriptions","organizations_url":"https://api.github.com/users/NickJosevski/orgs","repos_url":"https://api.github.com/users/NickJosevski/repos","events_url":"https://api.github.com/users/NickJosevski/events{/privacy}","received_events_url":"https://api.github.com/users/NickJosevski/received_events","type":"User","site_admin":false},"assignees":[{"login":"NickJosevski","id":119096,"node_id":"MDQ6VXNlcjExOTA5Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/119096?v=4","gravatar_id":"","url":"https://api.github.com/users/NickJosevski","html_url":"https://github.com/NickJosevski","followers_url":"https://api.github.com/users/NickJosevski/followers","following_url":"https://api.github.com/users/NickJosevski/following{/other_user}","gists_url":"https://api.github.com/users/NickJosevski/gists{/gist_id}","starred_url":"https://api.github.com/users/NickJosevski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickJosevski/subscriptions","organizations_url":"https://api.github.com/users/NickJosevski/orgs","repos_url":"https://api.github.com/users/NickJosevski/repos","events_url":"https://api.github.com/users/NickJosevski/events{/privacy}","received_events_url":"https://api.github.com/users/NickJosevski/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/OctopusDeploy/Issues/milestones/325","html_url":"https://github.com/OctopusDeploy/Issues/milestone/325","labels_url":"https://api.github.com/repos/OctopusDeploy/Issues/milestones/325/labels","id":3059610,"node_id":"MDk6TWlsZXN0b25lMzA1OTYxMA==","number":325,"title":"2018.2.0","description":"http://octopusdeploy.com/downloads/2018.2.0","creator":{"login":"NickJosevski","id":119096,"node_id":"MDQ6VXNlcjExOTA5Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/119096?v=4","gravatar_id":"","url":"https://api.github.com/users/NickJosevski","html_url":"https://github.com/NickJosevski","followers_url":"https://api.github.com/users/NickJosevski/followers","following_url":"https://api.github.com/users/NickJosevski/following{/other_user}","gists_url":"https://api.github.com/users/NickJosevski/gists{/gist_id}","starred_url":"https://api.github.com/users/NickJosevski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickJosevski/subscriptions","organizations_url":"https://api.github.com/users/NickJosevski/orgs","repos_url":"https://api.github.com/users/NickJosevski/repos","events_url":"https://api.github.com/users/NickJosevski/events{/privacy}","received_events_url":"https://api.github.com/users/NickJosevski/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":13,"state":"closed","created_at":"2018-01-24T02:02:54Z","updated_at":"2018-02-08T02:52:20Z","due_on":null,"closed_at":"2018-02-08T02:52:20Z"},"comments":3,"created_at":"2017-11-03T03:08:07Z","updated_at":"2018-11-23T21:09:49Z","closed_at":"2018-02-07T05:54:33Z","author_association":"NONE","body":"**Issue**\r\n\r\nWhen a variable is scoped to a single environment and that environment is removed, the variable is deleted (as expected). However the fact the variable was deleted is not recorded in the audit log.\r\n\r\n**BEFORE**\r\n\r\n![image](https://user-images.githubusercontent.com/1627582/32359587-d1dfbe64-c09a-11e7-8560-c8fc79235e64.png)\r\n\r\n**AFTER**\r\n\r\n![image](https://user-images.githubusercontent.com/1627582/32359495-3d9a54f8-c09a-11e7-9c9a-88c63ae9ac4d.png)\r\n\r\n![image](https://user-images.githubusercontent.com/1627582/32359501-46b36818-c09a-11e7-94c5-c20a4e697341.png)\r\n\r\n**Replication**\r\n\r\nTesting performed in 3.17.6\r\n\r\n1. Create a testing environment [and add machines], project and lifecycle.\r\n2. Create a variable that is scoped to the environment and deploy a release.\r\n3. Remove the environment [which is audited as expected] and note that the variable has been removed from the project [not audited - but should have been]."},"comment":{"url":"https://api.github.com/repos/OctopusDeploy/Issues/issues/comments/441318141","html_url":"https://github.com/OctopusDeploy/Issues/issues/3900#issuecomment-441318141","issue_url":"https://api.github.com/repos/OctopusDeploy/Issues/issues/3900","id":441318141,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTMxODE0MQ==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-11-23T21:09:49Z","updated_at":"2018-11-23T21:09:49Z","author_association":"NONE","body":"This thread has been automatically locked since there has not been any recent activity after it was closed. If you think you've found a related issue, please contact our [support team](https://octopus.com/support) so we can triage your issue, and make sure it's handled appropriately.\n"}}
{"actor":{"display_login":"lock"}}