-
Notifications
You must be signed in to change notification settings - Fork 0
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
merge: (#798) 모범학생 후보 리스트 조회 기능 추가 #803
base: develop
Are you sure you want to change the base?
Conversation
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.
모범학생 후보의 기준이 뭔지 알수있을까요?
이달에 벌점을 받지 않은 학생입니다 |
dms-core/src/main/kotlin/team/aliens/dms/domain/vote/dto/response/ModelStudentListResponse.kt
Outdated
Show resolved
Hide resolved
dms-core/src/main/kotlin/team/aliens/dms/domain/vote/usecase/GetModelStudentsUseCase.kt
Outdated
Show resolved
Hide resolved
dms-presentation/src/main/kotlin/team/aliens/dms/domain/vote/VoteWebAdapter.kt
Outdated
Show resolved
Hide resolved
dms-presentation/src/main/kotlin/team/aliens/dms/domain/vote/VoteWebAdapter.kt
Outdated
Show resolved
Hide resolved
dms-presentation/src/main/kotlin/team/aliens/dms/domain/vote/VoteWebAdapter.kt
Outdated
Show resolved
Hide resolved
음 상황을 제가 자세히 알지는 못하지만 코드만 봤을 땐 조회할때마다 말씀하신 조건으로 필터링을 하는거같은데 "이달의" 모범학생이라면 한달에 한번만 계산되도 될거같은데요, 모범학생이라는 정보를 다른 테이블에 분리하거나 student에 model이라는 boolean필드를 만들어서 저장해둔다면 조회할떄 이렇게 무거운 쿼리를 계속 날리지 않아도 될거같습니다...
|
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.
컨벤션좀 이상한게 보이는데 제 기억상으로 아마 ktlint돌리면 코드 컨벤션은 자동으로 다 고쳐졌던걸로 기억합니다
투표 구현하는 부분은 제가 담당하고 있는 부분이 아니라서 한번 얘기해보고 답변 드리겠습니다 |
얘기해본 결과 사감선생님께서 모범학생 투표를 실행하시면 클라이언트에서 모범학생 리스트를 요청하게 됩니다 이 요청이 투표를 진행하는 API로 전달되고 해당 API에서는 투표를 처리하여 모범학생을 선정하게 된다고 합니다! |
음 그렇군요 저는 그냥 달마다 자동으로 생기는 걸로 생각했는데.. 아니였군요.. 일단 저는 이 API가 student도메인에서 제공하는 모범학생 조회 API로 느껴지는데요 근데 앞서 말했듯 모범 학생이라는게 꼭 투표 도메인 안에 있나? 라고 생각해보면.. 지금은 이 모범학생 조회가 투표할때만 사용되는 API라면 어느정도 납득이 되는데 만약 나중에 이 API가 투표페이지 말고 다른곳에서 쓰인다고 했을때를 생각해보면 갑자기 뜬금없이 votes/로 시작하는 API를 찌르게되기때문에... API가 직관적이게되지 않을거같은데요, /students/models/YYYY-MM-DD 뭐 이런식으로 students안에 두는 방법을 쓴다면 위 케이스에선 딱히 어색한 부분은 없을거같네요. 선택은 한번 다른분들이랑 상의해보고 지금 상황에서 가장 옳다고 생각하시는거 아무거나 하셔도 될거같습니다.
|
한번 상의 해보겠습니다! 피드백 감사합니다~ |
students 도메인 안에 두는 방법으로 진행하게 될 것 같습니다 감사합니다 |
dms-core/src/main/kotlin/team/aliens/dms/domain/vote/spi/ModelStudentListPort.kt
Outdated
Show resolved
Hide resolved
넵 알겠습니다 감사합니다~ |
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.
살짝 코드 리뷰를 해봤는데 전체적으로 프로젝트에 대한 이해도, 코틀린 언어 이해도 전부 미흡해 보입니다.
DMS 코드랑 DMS 노션에 있는 프로젝트 설계 문서 전부 복습하시는 걸 적극적으로 추천합니다.
아니면 코틀린으로 토이프로젝트를 만들어 DMS 설계를 따라해보며 개발하시는 것도 프로젝트 구조 이해에 매우 도움이 될 것이라 생각합니다.
작업 내용 설명
주요 변경 사항
결과물
체크리스트
관련 이슈