QuantEcon / Bookshelf

Code for the site QuantEconLib
1 stars 0 forks source link

FEAT: Add account deletion to user Profile page #277

Closed mmcky closed 5 years ago

mmcky commented 6 years ago

We should add the ability for users to delete their own profile as a RED button to their profile page.

AtlasMaxima-zz commented 6 years ago

@DrDrij I added an extra Delete button but can you help reassess if this is where we want the button at ? or should we place it a different location and different styling?

screen shot 2018-10-25 at 1 00 53 pm
AtlasMaxima-zz commented 6 years ago

[Additional Doc]

  1. To remove the comments by the user - db.comments.remove({"author": ObjectId(authorId)}) This will remove the user's comments and after refresh, the comments on client will re-render and display the correct comment count on the the specific notebook page in which the comment(s) was made. Bug - the comment count on the list of notebook page(home page) is still considering the total without the newly deleted ones.
  2. We want to keep replies made by the deleted users to other users' comments. But put a placeholder in for their name so we know the user has been deleted. Trigger a 'delete' variable in db and set it as true.
  3. To remove the submissions by the user - db.submissions.remove({"_id": ObjectId(userId)}
mmcky commented 5 years ago

thanks @AtlasMaxima. The new setup for deletion is looking good. Thanks for adding the modal.