{"push_id":566670994,"size":1,"distinct_size":1,"ref":"refs/heads/safeguard-env-destroy","head":"d020ac434a74cd93e5e90b06f757dfd11f2976bd","before":"ce3e7f1d82dfbfa5953a69d72117272fc508608e","commits":[{"sha":"d020ac434a74cd93e5e90b06f757dfd11f2976bd","author":{"email":"0087ac4c279d997a845b889410660e0ce3a36817@gmail.com","name":"waigani"},"message":"Safeguard destroy state server environment and remove all env docs\n\nOnly allow the state server environment to be destroyed after all other\nenvironments are destroyed.\n\nAdd a new method on State, RemoveAllEnvironDocs, which removes all\ndocuments from all collections in state.multiEnvCollections as well as\nthe environments document associated with the given state. The method\nis intended to be called after a non-state-server environment is\ndestroyed.\n\nCall RemoveAllEnvironDocs at the end of\n\"apiserver/client\".Client.DestroyEnvironment(), when we are sure all\ncleanup steps have been taken and only if the destroyed environment was\nnot the state-server.","distinct":true,"url":"https://api.github.com/repos/waigani/juju/commits/d020ac434a74cd93e5e90b06f757dfd11f2976bd"}]}