feat: add community question and answer models, schemas, and routes#1183
Open
Black-fox17 wants to merge 20 commits intohngprojects:devfrom
Open
feat: add community question and answer models, schemas, and routes#1183Black-fox17 wants to merge 20 commits intohngprojects:devfrom
Black-fox17 wants to merge 20 commits intohngprojects:devfrom
Conversation
Signed-off-by: AbdulSalam Ayeleru <93570850+Black-fox17@users.noreply.github.com>
Contributor
|
Commit messages are not compliant |
samuelogboye
previously approved these changes
Mar 1, 2025
Contributor
samuelogboye
left a comment
There was a problem hiding this comment.
LGTM
The code is well-written and follows best practices
…uring testing and also fixed a minor spelling mistake
Author
@joboy-dev |
…`BaseService` to encapsulate common CRUD operations. - Refactored `CommunityQuestionService` and `CommunityAnswerService` to inherit from `BaseService`. - Improved code maintainability by following the DRY principle.
Author
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.
Community Feature - User Q&A System
Description
This feature introduces a Community Q&A System, allowing users to ask and answer questions within the platform. It enhances user engagement by enabling knowledge-sharing and structured discussions, similar to platforms like the Microsoft Community Center.
Features
Service Implementation
CommunityQuestionService
create_question: Users can create new questions.fetch_all: Retrieve all questions, with optional filters.fetch_by_id: Fetch a specific question by ID.mark_as_resolved: Mark a question as resolved/unresolved.delete_question: Remove a question from the database.CommunityAnswerService
create_answer: Users can provide answers to questions.mark_as_accepted: The question author can accept an answer.Motivation and Context
Currently, the platform lacks a dedicated Q&A system. This feature addresses that gap by:
Testing
Types of Changes
Checklist
Additional Context
The implementation leverages FastAPI and SQLAlchemy for efficient database operations, ensuring performance and security. This feature significantly enhances user engagement by providing an interactive space for discussions.