deleting org in UI does not delete corresponding lifecycle environments causing rake katello:reindex to fail
After deleting ACME_Corporation from my server through the UI, apparently successfully, a later call to 'rake katello:reindex' failed. Looking at the psql database I see there was still a Library environment in katello_environments table for ACME.
Unclear if other org-dependent objects are also orphaned.
#4 Updated by David Davis over 6 years ago
Found the problem. The good news is that other records like product are not getting orphaned. I have not looked at all records but at least there are some that aren't getting orphaned.
The bad news is that the organization destroy code (https://github.com/Katello/katello/blob/master/app/models/katello/organization_destroyer.rb) was never reimplemented for the engine. That's probably going to have to be implemented at some point (hopefully with dynflow). I may have to implement that here.