feat: verification badge system and profile update history logging#617
Merged
nafiuishaaq merged 1 commit intoMay 30, 2026
Conversation
- Add isVerified, verifiedAt, verifiedBy, verificationNotes fields to User entity (MentoNest#484) - Add migration for verification fields on users table (MentoNest#484) - Create ProfileHistory entity with userId, fieldName, old/new values, changedBy, changeReason, changedAt (MentoNest#485) - Add migration for profile_history table (MentoNest#485) - Create ProfileHistorySubscriber to auto-capture User field changes via TypeORM (MentoNest#485) - Create AdminModule with AdminService and AdminController (MentoNest#484, MentoNest#485) - POST /admin/mentors/:id/verify — set isVerified=true (admin only) - DELETE /admin/mentors/:id/verify — revoke verification (admin only) - GET /admin/users/:userId/profile-history — paginated history (admin only) - Register AdminModule in AppModule - Add unit tests: 9 tests passing (AdminService x7, ProfileHistorySubscriber x4) Closes MentoNest#484 Closes MentoNest#485
|
@Userhorlie Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This was referenced May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements issues #484 and #485.
#484 — Verification badge system
isVerified,verifiedAt,verifiedBy,verificationNotesfields toUserentity1763000000000-AddVerificationFieldsToUsersadds the columns to theuserstablePOST /admin/mentors/:id/verify— admin setsisVerified=truewith optional notesDELETE /admin/mentors/:id/verify— admin revokes verification#485 — Profile update history logging
ProfileHistoryentity:userId,fieldName,oldValue,newValue,changedBy,changeReason,changedAt(ms precision)1764000000000-CreateProfileHistorycreates the append-onlyprofile_historytableProfileHistorySubscriberTypeORM subscriber auto-captures changes to tracked User fields on every updateGET /admin/users/:userId/profile-history— paginated history endpoint (admin only)Tests
AdminService(7) +ProfileHistorySubscriber(4)JwtAuthGuard+RolesGuard+@Roles(ADMIN)Closes #484
Closes #485