-
Notifications
You must be signed in to change notification settings - Fork 1
[BE] 질문 데이터를 조회&삭제하는 과정에서 발생하는 문제 해결 #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- 질문 해결 여부를 추가로 검사
- 수업이 종료될 경우 해결된 질문 일괄 삭제 - 수업이 시작될 경우 이전 수업의 질문 전체 삭제
WalkthroughThis pull request updates the course and question management logic within the application. In the course service, it adds calls to delete all or complete questions when a course starts or closes. The question repository is modified by replacing a method to retrieve questions for a student with one that fetches only incomplete ones, and it now provides a method to delete complete questions. The student question service has been updated to use the new repository query. These changes adjust the control flow for handling course lifecycle events and managing associated questions. Changes
Sequence Diagram(s)sequenceDiagram
participant PC as ProfessorCourseService
participant QR as QuestionRepository
Note over PC, QR: Course lifecycle events
PC->>QR: deleteAllByCourse(course) [startCourse]
PC->>QR: deleteCompleteByCourse(course) [closeCourse]
sequenceDiagram
participant SQ as StudentQuestionService
participant QR as QuestionRepository
Note over SQ, QR: Retrieving incomplete student questions
SQ->>QR: findNotCompleteByStudentIdAndCourse(studentId, course)
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (1)back-end/reacton/src/main/java/com/softeer/reacton/domain/course/ProfessorCourseService.java (1)🔇 Additional comments (5)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
uri010
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve!!
[BE] 질문 데이터를 조회&삭제하는 과정에서 발생하는 문제 해결
#️⃣ 연관된 이슈
#205
📝 작업 내용
💬 리뷰 요구사항(선택)
Summary by CodeRabbit