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
[jinyoungchoi95-issue60] Post Article 기능 구현 #61
Conversation
Codecov Report
@@ Coverage Diff @@
## jinyoungchoi95 #61 +/- ##
====================================================
- Coverage 93.64% 90.57% -3.08%
- Complexity 211 289 +78
====================================================
Files 35 47 +12
Lines 535 753 +218
Branches 13 29 +16
====================================================
+ Hits 501 682 +181
- Misses 16 33 +17
- Partials 18 38 +20
Continue to review full report at Codecov.
|
오늘 코드리뷰 하나 올리고 보겠습니다 🔥 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Issue: #60
작업 내용
POST /api/articles
생성/변경 로직
개인 코멘트
생각보다 오래걸렸던 부분인 것 같네요 🤣 Tag를 그냥 저장하게 될 경우에 기존 db에 있는 Tag를 무시하고 unique를 반하게 되어 문제가 생겨서 이를 어떻게하면 깔끔하게 처리할 수 있을까를 고민하게 되었던 것 같아요. 조금 더 나은 방법이 있을 것 같기는한데 지금 상황에서는 현재 구조가 가장 최선으로 보이네요 :)
vo 를 효과적으로 사용하기 위해서 계속해서 단위를 쪼개고, 같은 단위를 묶으면서 사용하다보니 vo를 타고가는 vo가 계속해서 생겨나는 것 같아요. 이게 과연 나중에 갔을 때 좋은 구조인지는 다 구현하고 성능 테스트를 진행하면서 확인해보아야할 것 같아요 :)
뭔가 file change가 많기는 한데 사실상 domain이 추가되면서 vo를 많이 쪼개다보니 이렇게 된거같은데, change된 것에 비해 로직 자체는 단순하니 너그럽게 용서해주세요 ㅜㅜ 🙇♂️