added CURD for comment#3
Open
Yoinami wants to merge 3 commits into
Open
Conversation
Collaborator
Author
|
there are some github workflow error in the in CI / docker-build |
4494e45 to
1e5e7ff
Compare
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.
This pull request implements a complete comment system backend, including controller, service, repository, validation, and error handling. The main focus is on enabling CRUD operations for comments, supporting nested replies, and improving error responses for validation and database errors.
Comment System Implementation:
Added full CRUD operations for comments, including support for nested replies and validation using Zod in
comment.controller.ts,comment.service.ts, andcomment.repository.ts. This includes creating, fetching (single and by post), updating, and deleting comments, with proper authentication and authorization checks. [1] [2] [3] [4] [5] [6] [7] [8]Introduced Zod-based DTO schemas for validating comment operations, ensuring request data integrity for create, update, and delete actions.
Error Handling Improvements:
CastError, returning clear error messages for invalid input and malformed IDs. [1] [2]Database Model Update:
ICommentinterface to include an optionalrepliesfield, supporting nested comment structures.Configuration:
.env.examplefile with environment variable templates for app, database, authentication, Cloudinary, Facebook integration, and rate limiting.