Skip to content

feat: Add user ban, activity, batch enroll, and learning path endpoin… - #439

Merged
DeFiVC merged 2 commits into
ChainLearnOfficial:mainfrom
Jayy4rl:feat/issues-344-345-346-347
Aug 31, 2026
Merged

feat: Add user ban, activity, batch enroll, and learning path endpoin…#439
DeFiVC merged 2 commits into
ChainLearnOfficial:mainfrom
Jayy4rl:feat/issues-344-345-346-347

Conversation

@Jayy4rl

@Jayy4rl Jayy4rl commented Aug 31, 2026

Copy link
Copy Markdown

…ts (#344, #345, #346, #347)

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

…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
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

@DeFiVC
DeFiVC merged commit 5bc3ad8 into ChainLearnOfficial:main Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants