Skip to content

Refactor: 캐릭터 가치관 분석 #122

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

Closed
wants to merge 6 commits into from

Conversation

kimyu0218
Copy link
Collaborator

@kimyu0218 kimyu0218 commented Feb 19, 2025

작업 개요

가치관 분석 리포트 로직 리팩토링

작업 사항

  • 더 이상 사용하지 않는 로직 삭제
  • 로직 수정에 따른 문서화 반영

+) ScoreEvaluator 테스트도 작성하려다가 ValueReports 값을 단순 반환하는 느낌이라 작성하지 않았습니다!

final Map<Keyword, BigDecimal> weightMap = calculateKeywordWeights(metricsMap);

return ValueReports.report(weightMap, metricsMap, submissions);
return ValueReports.report(metricsMap, submissions);
Copy link
Member

Choose a reason for hiding this comment

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

  • weightMap 제거해도 괜찮은 건가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

처음에는 필요하다고 생각해서 추가했는데 생각해보니 키워드별로 점수를 따로 계산하니까 필요가 없더라구요 😅

Copy link
Member

Choose a reason for hiding this comment

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

기능 동작은 확인된 거겠죠..?

Copy link

github-actions bot commented Feb 19, 2025

Test Results

106 tests   104 ✅  4s ⏱️
 69 suites    2 💤
 69 files      0 ❌

Results for commit 78b5823.

♻️ This comment has been updated with latest results.

- 온보딩 게임 같은 단계별 선택지가 존재하는 설문의 경우, 키워드는 같지만 점수만 다른 옵션들이 존재함
- 옵션을 점수 내림차순하여 전달하면 해당 설문에서 나올 수 있는 최대, 최소 점수를 계산하여 반환
@kimyu0218
Copy link
Collaborator Author

기획과 조금 맞지 않고, 서브 점수를 효과적으로 사용할 수 없어 다른 방법을 채택했습니다.

@kimyu0218 kimyu0218 closed this Feb 20, 2025
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