convene icon indicating copy to clipboard operation
convene copied to clipboard

🥔✨ `Marketplace`: Removing `DeliveryAreas`

Open zspencer opened this issue 1 year ago • 1 comments

  • 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 without Orders may be Removed
  • [x] DeliveryArea with `Orders may not be Removed
  • [x] Removing DeliveryArea without Orders and with Carts disassociates the Cart from the DeliveryArea
  • [x] DeliveryArea may be #archived, even if they have Orders
  • [x] Archiving DeliveryAreas dissaociates Carts from the DeliveryArea
  • [ ] :archived DeliveryAreas may be #restored

Bugs

  • [x] https://github.com/zinc-collective/convene/issues/2013

zspencer avatar Dec 10 '23 20:12 zspencer

FWIW, I've not hated using this gem for "archiving" or other soft-deleting: https://github.com/jhawthorn/discard

anaulin avatar Dec 11 '23 01:12 anaulin