Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting a user doesn't remove all associations (such as payment modules) #344

Open
mjgardes opened this issue Jan 5, 2015 · 9 comments
Milestone

Comments

@mjgardes
Copy link

mjgardes commented Jan 5, 2015

A couple months ago, a user was added to the i3Detroit CRM with the incorrect email address. That account was deleted and recreated with the correct information, however the delete operation left the database polluted with references to the same name and the old CID. It appears that the CID was only deleted from one table and still showed up in the reports and caused a great deal of extra work for the treasurer as he had to manually enter every payment for this user since then.

@chris18890
Copy link
Collaborator

what version are you using? I've tidied some of the stuff up with some pull requests, waiting for @elplatt to merge them.

I'll take another look ASAP :)

@mjgardes
Copy link
Author

mjgardes commented Jan 5, 2015

I'm on @elplatt's latest production version.

@chris18890
Copy link
Collaborator

so the dev branch then?

@mjgardes
Copy link
Author

mjgardes commented Jan 5, 2015

Looks like we last pulled from master.

On Mon, Jan 5, 2015 at 4:01 PM, Chris Murray notifications@github.com
wrote:

so the dev branch then?


Reply to this email directly or view it on GitHub
#344 (comment).

@chris18890
Copy link
Collaborator

ok, cause on dev when a contact is deleted, everything but the stuff in the payment table is removed.

Also, surely you could've just changed the email address?

@mjgardes
Copy link
Author

mjgardes commented Jan 5, 2015

Of course. If I had been the one doing member administration at the time,
I probably would have.

On Mon, Jan 5, 2015 at 5:29 PM, Chris Murray notifications@github.com
wrote:

ok, cause on dev when a contact is deleted, everything but the stuff in
the payment table is removed.

Also, surely you could've just changed the email address?


Reply to this email directly or view it on GitHub
#344 (comment).

@chris18890
Copy link
Collaborator

well, being on the latest dev release might solve some of the issues.

However, removing payments when deleting a user would require a fair bit of new code in the payment module.

There is also the question, for audit/bookkeeping purposes, should you be deleting payment info?

thoughts @elplatt @mattoehrlein @andrewbolster @Dylan1312 ?

@mjgardes
Copy link
Author

mjgardes commented Jan 5, 2015

I wouldn't want to remove any payments from the database. Missing payments
are a nightmare to track down. The important thing is to make sure that
payments can be associated with the correct CID not sent to a deleted user,
and I don't think editing the database manually is the right way to do that.

On Mon, Jan 5, 2015 at 5:45 PM, Chris Murray notifications@github.com
wrote:

well, being on the latest dev release might solve some of the issues.

However, removing payments when deleting a user would require a fair bit
of new code in the payment module.

There is also the question, for audit/bookkeeping purposes, should you be
deleting payment info?

thoughts @elplatt https://github.com/elplatt @mattoehrlein
https://github.com/mattoehrlein @andrewbolster
https://github.com/andrewbolster @Dylan1312
https://github.com/dylan1312 ?


Reply to this email directly or view it on GitHub
#344 (comment).

@chris18890
Copy link
Collaborator

from what I can see, that is the case - the payments remain in the database, & the CID is still saved in the "credit" & "debit" columns, but because the member has been deleted it no longer resolves. Personally, I'd say that in order to preserve records member should not be deleted but rather just set to have no active membership

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

No branches or pull requests

2 participants