convene
convene copied to clipboard
🥔✨ `Marketplace`: Removing `DeliveryAreas`
- https://github.com/zinc-collective/convene/issues/1136
For delivery areas that are associated with an order, we would ideally have a way to "archive" that delivery area, so that it no longer shows up as an option for customers. @anaulin - https://github.com/zinc-collective/convene/issues/2013#issuecomment-1848777191
I think adding adding an Archive (or Deactivate?) feature to DeliveryArea that clears Carts with the DeliveryArea is a great next step; and then if an Archived DeliveryArea has no Orders then we let it be deleted. @zspencer - https://github.com/zinc-collective/convene/issues/2013#issuecomment-1849079376
- [x]
DeliveryArea
withoutOrders
may be Removed - [x]
DeliveryArea
with `Orders may not be Removed - [x] Removing
DeliveryArea
withoutOrders
and withCarts
disassociates theCart
from theDeliveryArea
- [x]
DeliveryArea
may be#archived
, even if they haveOrders
- [x] Archiving
DeliveryAreas
dissaociatesCarts
from theDeliveryArea
- [ ]
:archived
DeliveryAreas
may be#restored
Bugs
- [x] https://github.com/zinc-collective/convene/issues/2013
FWIW, I've not hated using this gem for "archiving" or other soft-deleting: https://github.com/jhawthorn/discard