-
Notifications
You must be signed in to change notification settings - Fork 1
refactor: 주석처리 및 시간 변경 #383
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,5 @@ | ||||||
| package life.mosu.mosuserver.application.application; | ||||||
|
|
||||||
| import java.util.List; | ||||||
| import java.util.Set; | ||||||
| import life.mosu.mosuserver.application.application.dto.RegisterApplicationCommand; | ||||||
| import life.mosu.mosuserver.application.application.processor.GetApplicationsStepProcessor; | ||||||
| import life.mosu.mosuserver.application.application.processor.RegisterApplicationStepProcessor; | ||||||
|
|
@@ -14,19 +12,17 @@ | |||||
| import life.mosu.mosuserver.domain.application.repository.ApplicationJpaRepository; | ||||||
| import life.mosu.mosuserver.domain.exam.entity.ExamJpaEntity; | ||||||
| import life.mosu.mosuserver.domain.exam.entity.ExamJpaRepository; | ||||||
| import life.mosu.mosuserver.presentation.application.dto.ApplicationGuestRequest; | ||||||
| import life.mosu.mosuserver.presentation.application.dto.ApplicationRequest; | ||||||
| import life.mosu.mosuserver.presentation.application.dto.ApplicationResponse; | ||||||
| import life.mosu.mosuserver.presentation.application.dto.CreateApplicationResponse; | ||||||
| import life.mosu.mosuserver.presentation.application.dto.ExamApplicationRequest; | ||||||
| import life.mosu.mosuserver.presentation.application.dto.SchoolApplicationCountResponse; | ||||||
| import life.mosu.mosuserver.presentation.application.dto.*; | ||||||
| import life.mosu.mosuserver.presentation.common.FileRequest; | ||||||
| import lombok.RequiredArgsConstructor; | ||||||
| import lombok.extern.slf4j.Slf4j; | ||||||
| import org.springframework.stereotype.Service; | ||||||
| import org.springframework.transaction.annotation.Propagation; | ||||||
| import org.springframework.transaction.annotation.Transactional; | ||||||
|
|
||||||
| import java.util.List; | ||||||
| import java.util.Set; | ||||||
|
|
||||||
| @Service | ||||||
| @RequiredArgsConstructor | ||||||
| @Slf4j | ||||||
|
|
@@ -83,7 +79,7 @@ private CreateApplicationResponse handleApplication( | |||||
| FileRequest admissionTicket | ||||||
| ) { | ||||||
| List<ExamJpaEntity> exams = examJpaRepository.findAllById(examIds); | ||||||
| validator.examDateNotPassed(exams); | ||||||
| // validator.examDateNotPassed(exams); | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 시험 마감 기한을 검증하는 이 변경으로 인해 이미 마감된 시험에 원서가 접수될 수 있는 잠재적인 위험이 있습니다. PR 설명에 이 변경에 대한 이유가 없어 의도를 파악하기 어렵습니다. 만약 의도된 변경이 아니라면, 해당 라인의 주석을 해제하는 것이 좋겠습니다. 의도된 변경이라면, 그 이유를 코드 주석이나 PR 설명에 추가해주시면 좋겠습니다.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainCritical: Validation bypass allows applications to expired exams. Commenting out
While Verify the following before merging: Please clarify:
🏁 Script executed: #!/bin/bash
# Check if exam closure is handled elsewhere (e.g., scheduled jobs, other validators)
# Search for other invocations of examDateNotPassed
rg -nP '\bexamDateNotPassed\b' --type=java
# Search for other mechanisms that close exams or check deadlines
rg -nP '(exam\.(close|setExamStatus)|ExamStatus\.CLOSED|getDeadlineTime)' --type=java -C3
# Search for scheduled jobs or cron tasks related to exam lifecycle
rg -nP '(@Scheduled|@CronJob|deadline|close.*exam)' --type=java -C3Length of output: 22895 Critical: restore exam expiration enforcement Commenting out 🤖 Prompt for AI Agents |
||||||
| validator.examNotFull(exams); | ||||||
| validator.examIdsAndLunchSelection(examApplications); | ||||||
| validator.noDuplicateApplication(userId, examIds); | ||||||
|
|
||||||
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.
와일드카드(
*) import를 사용하여 여러 클래스를 한 번에 가져오도록 변경하셨네요. 하지만 명시적으로 개별 클래스를 import하는 것이 코드의 가독성을 높이고, 어떤 클래스가 사용되는지 명확하게 파악하는 데 도움이 됩니다. 또한, 잠재적인 이름 충돌을 방지할 수 있습니다.다른 파일들과의 일관성을 위해, 그리고 더 나은 유지보수성을 위해 이전처럼 명시적 import를 사용하는 것을 권장합니다.