feat: Add user ban, activity, batch enroll, and learning path endpoin… - #439
Merged
DeFiVC merged 2 commits intoAug 31, 2026
Merged
Conversation
…ts (ChainLearnOfficial#344, ChainLearnOfficial#345, ChainLearnOfficial#346, ChainLearnOfficial#347) - Add POST /api/v1/admin/users/:id/ban endpoint (ChainLearnOfficial#347): Ban users with reason, invalidates authenticated access - Add GET /api/v1/admin/users/:id/activity endpoint (ChainLearnOfficial#346): Returns chronological activity feed of user actions - Add POST /api/v1/courses/enroll/batch endpoint (ChainLearnOfficial#345): Batch enroll in multiple courses with per-course status - Add GET /api/v1/users/me/learning-path endpoint (ChainLearnOfficial#344): Returns personalized course recommendations based on completed courses Changes: - Added bannedAt and banReason columns to users table (migration 0015) - Updated auth middleware to check for banned users and return 403 - Implemented admin methods for banning users and querying user activity - Implemented batch enrollment with sequential processing and error handling - Implemented learning path recommendations based on difficulty progression
|
@Jayy4rl 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 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.
…ts (#344, #345, #346, #347)
POST /api/v1/admin/users/:id/banendpoint #347): Ban users with reason, invalidates authenticated accessGET /api/v1/admin/users/:id/activityendpoint #346): Returns chronological activity feed of user actionsPOST /api/v1/courses/:id/enroll/batchendpoint #345): Batch enroll in multiple courses with per-course statusGET /api/v1/users/me/learning-pathendpoint #344): Returns personalized course recommendations based on completed coursesChanges: