Quantcast
Channel: BugNET Issue Tracker (Moved to GitHub)
Viewing all articles
Browse latest Browse all 2179

Commented Unassigned: Cannot delete old users from the system [167]

$
0
0
In User Administration I wish to delete users that are no longer part of the company. I have deauthorized them, but it's pretty nasty to still have them around. CRUD of users is important and should never affect database integrity.

As I've said before in a previous post, Bugnet's database tables should have an IsDeleted flag (or similar) such that when deleting a user the system sets the flag on the relevant related tables (i.e. user's issues) on delete such that they disappear. All queries then pull data from all !IsDeleted columns.

Right now I get a lovely: There was an error deleting this user. This is due to the Sql DELETE command breaking due to issues being assigned to the user and breaking referential integrity.
Comments: asp.net membership doesn't support logical deletes, its possible when we migrate to asp.net one identity that we can add a logical delete flag, but for now unauthorized is our logical delete.

Viewing all articles
Browse latest Browse all 2179

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>