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

refactor: 미션 인증 정렬/검증 로직 리팩토링 #78

Merged
merged 21 commits into from
Aug 27, 2024

Conversation

kimyu0218
Copy link
Collaborator

@kimyu0218 kimyu0218 commented Aug 21, 2024

Issue Number

close: #77

작업 개요

미션 인증/정렬 로직 리팩토링

작업 사항

  • MissionVerification의 서비스 단에서 모든 정렬을 수행하면서 서비스 코드가 복잡해짐
    • MissionVerificationResponseSorter를 정의하여 서비스 코드와 정렬 로직을 분리함
  • MissionVerificationValidator 를 정의하여 서비스 코드와 검증 로직을 분리함

고민한 점들(필수 X)

MissionValidator 코드처럼 MissionVerificationValidator도 있으면 좋을 것 같아 같이 리팩토링 진행했습니다..!

+) 참여 로직 잠시 주석 처리하고 e2e 테스트 돌렸을 때 정상적으로 돌아갔습니다! (생성자 새롭게 정의해서 테스트 코드도 작성해보겠습니다..!)

스크린샷(필수 X)

@kimyu0218
Copy link
Collaborator Author

+) 검증 단위 테스트는 작성했는데 정렬 단위 테스트는 아직이에요...! 빠르게 작성해볼게요 💦

Copy link
Member

@songyi00 songyi00 left a comment

Choose a reason for hiding this comment

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

고생했어~~!

@kimyu0218 kimyu0218 merged commit 7323801 into develop Aug 27, 2024
1 check passed
@kimyu0218 kimyu0218 deleted the refactor/#77-mission-verification branch August 27, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

미션 인증 정렬/검증 로직 리팩토링
2 participants