Skip to content

Conversation

@ozzing
Copy link
Collaborator

@ozzing ozzing commented Apr 13, 2023

📝 PR Summary

메인 뷰 조회 시 발생하는 문제들에 대해 대응하였습니다.

  • 기존에는 거의 모든 에러가 500으로 status code로 분기 처리를 할 수 없는 상황이었는데, 논의 끝에 대응하기로 해서 존재하던 에러들은 모두 리팩해주었습니다.
  • 위 항목이 진행됨에 따라 플그에 프로필을 미등록한 유저에 한해서 400 에러를 던져주었습니다.
  • 외부 API 조회 시 RestTemplate과 Retry를 통해 5초의 타임아웃과 최대 두번의 요청을 설정했습니다.
  • 플그에서 전달 받은 기수를 한번 더 정렬하는 로직을 추가했습니다.

🌵 Working Branch

feature/mainViewISS

🌴 Works

  • 플그 프로필 미등록 유저 -> 400
  • 기존 에러 전부 처리
  • 비회원 호출 없음
  • 플그, 운영팀 서버 timeout, retry
  • 기수 한번 더 정렬

🌱 Related Issue

#59

@ozzing ozzing added ✨ Feat 새로운 피쳐 생성 🔨 Refactor 코드 개선 labels Apr 13, 2023
@ozzing ozzing self-assigned this Apr 13, 2023
Copy link

@thguss thguss left a comment

Choose a reason for hiding this comment

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

대공사 하셨네용 ㅇ0ㅇ 수고하셨습니다~!

private String getFileExtension(String fileName) {
if (fileName.length() == 0) {
throw new BadRequestException(ResponseCode.INVALID_REQUEST);
throw new BadRequestException("유효하지 않은 파일명입니다.");
Copy link

Choose a reason for hiding this comment

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

ErrorCode 로 빼면 더 통일성 있을 것 같아요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

아 요 코드는 이후에 아예 사라질 코드라서 따로 작업하지는 않았습니다! 꼼꼼한 리뷰 감사해요옹

@ozzing ozzing merged commit f137e33 into dev Apr 14, 2023
@ozzing ozzing deleted the feature/mainViewISS branch April 14, 2023 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feat 새로운 피쳐 생성 🔨 Refactor 코드 개선 size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants