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.
관련 이슈
문제 상황
대학 추천 로직이 허술했습니다...
기존 추천 로직은 이렇게 구현되어있습니다.
그런데 놀랍게도, 기존의 GeneralRecommendUniversities 클래스에서 선언해둔 18개 학교와
2025-1-a 에 열린 37개의 학교들이 단 하나도 일치하지 않아서
'공통 추천 대학교' 중에서 이번 term 에 열리는 학교들이 0개가 되는 상황이 발생했습니다.. 💀
그 결과, 로그인 하지 않은 사용자가 호출하면 빈 배열이 반환되었고
로그인한 사용자가 호출하니 사이즈가 6보다 작은 배열에 대해 subList 해서 out of bound 예외가 발생했습니다.
해결한 방법
2025-1-a 에 열린 대학 중 6개를 추천 대학 후보에 추가해서 해결했습니다.
아주 임시방편입니다 ㅠ.ㅜ
더 근본적으로 이를 해결하기 위해서, 대학 추천로직을 바꾸는게 좋겠습니다.
디스커션 파뒀습니다~ #160
특이사항
이 PR은 hot fix이므로 main과 release에 각각 머지합니다!
리뷰 요구사항 (선택)
디스커션에 의견 남겨주세요🥹