Feat: 요청글 수동 마감 기능 추가 #172
Merged
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.




close #169
☑️ 완료 태스크
🔎 PR 내용
PR 리뷰 요청글 등록 시 설정한 마감 시각이 되기 전에 미리 수동 마감할 수 있도록 하는 기능 추가했습니다.
나중에 자동 마감 배치가 추가될 텐데
이때 만약 서로 근소한 차이를 두고 자동 마감 배치와 수동 마감 작업이 들어와 경합이 발생할 수 있으므로,
이미 (자동 마감 배치로) 마감 상태인 요청글에 수동 마감 요청이 후속으로 들어오면
수동 마감 요청이 들어온 시각이 마감 시각보다 이르면 수동 마감 시각을 우선하여 갱신하는 쪽으로 했습니다.
요약: 수동 · 자동 경합 시, 수동 마감 시각을 우선한다.
이런 상황을 고려해서, 이미 마감된 글에 수동 마감 API 호출이 되더라도 예외 처리되진 않습니다.
자동 마감 배치에서 예외가 발생하면 곤란하기 때문에, 예외 대신 아무 작업도 하지 않는 방향으로 했습니다.