Closed publicqi closed 1 year ago
The only extra thing I would bring up is that this has to work with the chat feature. So when a user is "deleted", we need to deal with their messages as well.
The only extra thing I would bring up is that this has to work with the chat feature. So when a user is "deleted", we need to deal with their messages as well.
I think there're two points worth noting:
Once the Chat backend is ready for merge, I can add the checks to that
I'll fix the conflict when all other approved PRs get merged into main
Close this after #106 has been merged
Closing because has many merge conflicts, and the feature was not implemented in the way the user wanted.
Overview
This PR adds code to allow an admin to delete (actually hide) a user. After hiding, the user does not have access to any api endpoints it previously had.
The added apis are endpoint "/api/admin/user/unhide" and "/api/admin/user/hide". The implementation is done via adding a field to the User class.
Other changes are to adapt tests.
Screenshots (Optional)
Feedback Request (Optional)
Future Possibilities (Optional)
Validation (Optional)
Tests
mvn test
) passmvn test jacoco:report
) 100%mvn test pitest:mutationCoverage
) 100%Linked Issues
Closes #84