Skip to content

Add contest registration and problem management features#34

Merged
SeifMohmmed merged 1 commit into
masterfrom
feature/application-layer-cqrs
May 27, 2026
Merged

Add contest registration and problem management features#34
SeifMohmmed merged 1 commit into
masterfrom
feature/application-layer-cqrs

Conversation

@SeifMohmmed
Copy link
Copy Markdown
Owner

Changes:

  • Introduced endpoints for registering users in contests and adding problems to contests in ContestController, with proper
  • authorization and error handling.
  • Added RegisterInContestCommand and AddContestProblemCommand with their respective handlers to
  • encapsulate the logic.
  • Added ICurrentUserService and IUserContestRepository interfaces with their implementations to manage user-contest relationships and current user retrieval.
  • Refactored CreateContestCommandHandler and GetContestQueryHandler to use the new ICurrentUserService abstraction, replacing IHttpContextAccessor.
  • Enhanced IContestRepository with methods for managing contest problems, including adding problems, checking duplicates, and retrieving problem counts.
  • Updated Result and Result<T> to support nullable Error and Message properties for better flexibility.
  • Improved caching logic in GetContestQueryHandler and fixed a bug in ProblemMappings.
  • Registered new services in DependencyInjection and added validation for RegisterInContestCommand.

These changes improve functionality, usability, and maintainability.

Copilot AI review requested due to automatic review settings May 27, 2026 22:01
@SeifMohmmed SeifMohmmed merged commit 485832e into master May 27, 2026
1 check failed
@SeifMohmmed SeifMohmmed review requested due to automatic review settings May 27, 2026 22:26
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