Skip to content
This repository has been archived by the owner on Feb 10, 2018. It is now read-only.

As an admin unmarking a group as a band, I want to delete Band info as well #54

Open
kitsuta opened this issue Aug 4, 2016 · 4 comments

Comments

@kitsuta
Copy link
Contributor

kitsuta commented Aug 4, 2016

Although we can unmark groups as bands, doing so doesn't delete the Band object. I would like the system to:

  1. Check to see if a group has had its Band object changed or any Band sub-objects added, and warn me before unmarking a group as a band, so I don't accidentally dissociate a group from a 'real' band.
  2. Upon confirmation, delete the Band object and cascade-delete all associated objects, so that the band doesn't show up later in. e.g., exports of all bands.
@thaeli
Copy link

thaeli commented Aug 4, 2016

Can you mark invalid instead of deleting? Deleting data in the system always scares me a little.

@kitsuta
Copy link
Contributor Author

kitsuta commented Aug 4, 2016

Sure, I mean, the goal is really to leave out the data from various reports. Now that I'm thinking through it, that would mean we can even let you 'restore' group's bands by simply setting the band to invalid and not setting group.band_id to None. The group would still have a band in the database, we just wouldn't show the data. That way, admins can change their minds.

@EliAndrewC
Copy link
Contributor

I would personally much rather delete than mark invalid UNLESS part of this ticket is to refactor all of the relevant code throughout the plugin to implement utility methods to distinguish between deleted and invalidated records. For example, right now we send out emails to bands, so we'd need to refactor those emails to only be sent out to non-invalidated bands. Admins will see records for all bands, so we'll need to refactor to account for that. Etc.

I'm fine with someone doing all of that work, but until such time as that's done, doing real deletes is far preferable.

@RobRuana
Copy link
Contributor

We've added a rudimentary "Undo Delete" feature to the Feed of Database Changes, so deleting is a little less scary than it used to be.

So, for this issue, we're going with "delete" instead of "mark invalid".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants