Skip to content

feat(backend): modération des personnages par les employés#117

Merged
pierrick-fonquerne merged 2 commits intodevelopfrom
70-modération-des-personnages
Feb 16, 2026

Hidden character warning

The head ref may contain hidden characters: "70-mod\u00e9ration-des-personnages"
Merged

feat(backend): modération des personnages par les employés#117
pierrick-fonquerne merged 2 commits intodevelopfrom
70-modération-des-personnages

Conversation

@pierrick-fonquerne
Copy link
Copy Markdown
Owner

Summary

  • Add ModerationController with 3 endpoints: list pending, approve, reject (api/moderation/characters)
  • Add ModerationService with email notifications (approval/rejection) and resilient error handling
  • Extract shared CharacterMapper to eliminate DRY violation between CharacterService and ModerationService
  • Add validation constraints on RejectCharacterRequest (10-500 chars)
  • Add pagination upper bound (page <= 1000) consistent with gallery endpoint

Tests

  • 13 unit tests (ModerationServiceTests)
  • 8 integration tests (ModerationControllerIntegrationTests)
  • 271 total tests passing (183 unit + 88 integration), 0 regressions

Endpoints

Method Route Auth Description
GET /api/moderation/characters Employee Liste paginée des personnages en attente
PATCH /api/moderation/characters/{id}/approve Employee Approuver un personnage
PATCH /api/moderation/characters/{id}/reject Employee Rejeter avec motif obligatoire

Closes #70

🔗 Related: #69 (frontend moderation page - next step)

Add ModerationController with approve/reject/list-pending workflows,
ModerationService with email notifications, shared CharacterMapper,
and 13 unit + 8 integration tests covering the full moderation flow.
Use collection expressions, char overload for Contains, and
AddAuthorizationBuilder fluent API.
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
fantasyrealm-character-manager Ready Ready Preview, Comment Feb 16, 2026 8:16pm

@pierrick-fonquerne pierrick-fonquerne merged commit c3ae9c4 into develop Feb 16, 2026
6 checks passed
@pierrick-fonquerne pierrick-fonquerne deleted the 70-modération-des-personnages branch February 16, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant