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

[fix] 체크리스트 변경에 따른 일치율 계산 로직 수정 #48

Merged
merged 9 commits into from
Jan 15, 2024

Conversation

RyuKwanKon
Copy link
Contributor

Related Issue 🪢

Summary 🌿

  • 잠자리 유형에 대한 중복처리를 진행하였습니다.
  • 추가 enum을 추가하여, 추후 checklist 내용이 수정될 경우 데이터베이스를 통일성 문제가 발생할 수 있는 경우를 보완했습니다.
  • 일치율을 계산하는 enum일 경우 일치 여부를 판단할 수 있는 책임을 묶었고 이에 대한 공통 로직은 service util을 만들어 공유가 가능하고 service 코드의 가독성을 올렸습니다.
  • 게시글 정렬의 경우 enum에 대한 분기 처리를 관리하는 객체를 util로 만들어 관리하였습니다.(해당 경우 sort라는 추상화를 통해 다른 sort 알고리즘을 사용할 경우 하나의 interface에 의존하게 해야 하지만, post이외에 다른 곳에서 정렬 알고리즘을 사용할 일이 없을 것 같아 일단은 이렇게 개발했습니다.)

Before i request PR review 🧤

  • 오타 찾아 주세요.

@RyuKwanKon RyuKwanKon added FEAT 새로운 기능을 추가 FIX 코드 버그 수정 labels Jan 13, 2024
@RyuKwanKon RyuKwanKon self-assigned this Jan 13, 2024
Copy link
Member

@ziiyouth ziiyouth left a comment

Choose a reason for hiding this comment

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

MatchRateCalculator 빼니까 훨씬 깔끔하고 좋네요!! 고생하셨습니다 짱짱 ✨👍

Copy link
Contributor

@OJOJIN OJOJIN left a comment

Choose a reason for hiding this comment

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

수고하셨습니다! 딱히 오타도 없고 야무진 것 같아요👍👍

@RyuKwanKon RyuKwanKon merged commit e11ca3a into develop Jan 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEAT 새로운 기능을 추가 FIX 코드 버그 수정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[fix] 체크리스트 변경에 따른 일치율 계산 로직 수정
3 participants