Skip to content
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

시험 여러 번 풀 수 있게 할 수 있다. #3

Merged
merged 5 commits into from
Dec 31, 2024
Merged

시험 여러 번 풀 수 있게 할 수 있다. #3

merged 5 commits into from
Dec 31, 2024

Conversation

alstn113
Copy link
Owner

@alstn113 alstn113 commented Dec 31, 2024

구현 요약

원래 시험 하나 당 한 번의 제출만 할 수 있었다.
IsSingleAttempt 컬럼을 추가하고, 제출 시 시험 조건에 따라 분기 처리 했다.

한 번의 제출만 가능할 경우 분산 락을 이용해서 동시 제출을 막았다.

참고로, 같은 클래스에서 트랜잭션 메서드를 사용할 수 없어서 SubmissionLockService로 분리해 적용했다.

연관 이슈

@alstn113 alstn113 merged commit b7f5684 into dev Dec 31, 2024
1 of 2 checks passed
@alstn113 alstn113 linked an issue Dec 31, 2024 that may be closed by this pull request
1 task
@alstn113 alstn113 deleted the feat/#1 branch December 31, 2024 02:22
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