Open bhaugen opened 5 years ago
I think for now we should remove the buttons that can delete plans from the Demand and Open Orders pages and anywhere else they exist. If somebody created a plan by mistake and nothing has happened on it, a FC Admin could delete it for them.
Actually, it is very helpful for people to be able to create plans and delete them easily when they are first creating recipes, to "debug" the recipe. So alternatively, we could tighten up the isDeletable method to only delete the plan/commitments when there are no events reported.
@fosterlynn
we could tighten up the isDeletable method to only delete the plan/commitments when there are no events reported.
Ok with me.
Plans can now be deleted, even if related events have been reported. The events do not get deleted, but th plan can be deleted.
I think for now we should remove the buttons that can delete plans from the Demand and Open Orders pages and anywhere else they exist. If somebody created a plan by mistake and nothing has happened on it, a FC Admin could delete it for them. Until we figure out better what the rules should be.
I'm labeling this as a bug.