Skip to content

Conversation

@leesewon00
Copy link
Member

@leesewon00 leesewon00 commented Aug 24, 2024

관련 이슈

작업 내용

  • application에 term 추가

  • 지원서 추가시 현재 term으로 삽입하게 변경

  • 성적 공유 목록 확인시 현재 term의 목록만 조회하게 변경

  • 테스트코드 작성하였습니다.

image

특이 사항

Application 필드 추가로 배포시 운영DB에 필드를 반영해줘야 합니다.

리뷰 요구사항 (선택)

@leesewon00 leesewon00 requested review from wibaek and removed request for nayonsoso August 25, 2024 04:31
@leesewon00
Copy link
Member Author

추가 작업내용입니다.

  • (term, siteuser)가 application 테이블의 기본키로 사용되도록 변경하여 이전학기 데이터 보존
  • 다른 지원자 성적 조회 가능 기준을 '금학기' 지원자로 한정 (기존에는 지원이력만 존재하면 모두 조회 가능)

주의사항

지원 프로세스가 변경되었습니다.

성적 제출

  1. 성적 제출 이력이 전혀 없다 || 성적 제출한 이력이 있지만 금학기 제출 이력이 없다 -> 금학기에 해당 성적을 등록한다. (PENDING)
  2. 금학기 성적 제출 이력이 있다 -> 금학기 성적을 수정한다. (PENDING)

지망대학 제출

  1. 성적 제출 이력이 전혀 없다 -> 예외응답 반환한다.
  2. 성적 제출한 이력이 있지만 금학기 제출 이력이 없다 -> 최근 성적 기준으로 application 객체 생성하여 지망대학을 등록한다. (PENDING)
  3. 금학기 성적 제출 이력이 있다 -> 기존 객체 재사용하여 지망대학 수정한다. (상태유지)

추후 디벨롭 방안

  • 성적 테이블 분리

확실히 테이블을 분리해야 flow가 자연스러워질 수 있을 것 같습니다.

Copy link
Member

@wibaek wibaek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기존 성적있을시에 지망대학 제출하면 성적 가져오는 로직 좋은 것 같습니다.

테스트 문제없으면 머지해도 될 것 같습니다. 수고하셨습니다 👍

필요하시면 영서님에게 리뷰 요청 드려도 될 것 같습니다.

VerifyStatus verifyStatus = applicationRepository.getApplicationBySiteUser(siteUser).getVerifyStatus();
if (verifyStatus != VerifyStatus.APPROVED) {
throw new CustomException(APPLICATION_NOT_APPROVED);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

validateSiteUserCanViewApplicants() 에서 applicationRepository.getApplicationBySiteUserAndTerm(siteUser, term) 이런식으로 변경해서 현재 term에 인증되었는지 확인해야할 것 같습니다.

아니면 2024-2 인증자가 2025-1 성적 지원도 확인할 수 있는 문제가 발생할 수 있습니다.

Gpa gpa = scoreRequest.toGpa();
LanguageTest languageTest = scoreRequest.toLanguageTest();

applicationRepository.findBySiteUser_Email(email)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

applicationRepository.findByTermAndSiteUser_Email(term, email)로 체크해야 2024-2 기록을 유지한 채로 2025-1 기록을 새롭게 등록할 수 있을 것 같습니다

현재 상황에서는 2024-2 기록을 등록한 채로 새롭게 학점과 영어 성적만을 제출한 유저가 있을 때, 현재 성적 공유 조회 로직 상으로는 자신의 지원 대학을 2025-1 대학으로 업데이트 하지 않고도 2025-1 성적 공유 페이지를 조회할 수 있게 됩니다

마찬가지로 79번째 줄 submitUniversityChoice()에서도 applicationRepository.findByTermAndSiteUser_Email(term, email)로 체크해야할 것 같습니다

@leesewon00 leesewon00 merged commit bf27f61 into solid-connection:main Aug 25, 2024
leesewon00 added a commit that referenced this pull request Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

지원서 지원 학기 필드 추가

2 participants