open-learning-exchange / planet

🌍 Planet Learning - Angular application
https://hub.docker.com/r/treehouses/planet
GNU Affero General Public License v3.0
62 stars 39 forks source link

User : on click of delete, archive the user rather than deleting its complete infromtaion from DB #3516

Open singharpita opened 5 years ago

singharpita commented 5 years ago

because right now deleted user still shows on reference.

paulbert commented 5 years ago

More ideal, but more difficult solution we discussed: When deleting a user we will first copy that profile to a new user with just a hash as a name. We would modify the documents that reference that user to reference the hash. Then in the views we could still show the user but label them as deleted

If we decide to implement the above, we'll also have to make sure syncing works.

paulbert commented 5 years ago

Also to note only 1 user has been deleted out of ~1000 in the field. That is why this is low priority.