Skip to content

손유진 seminar0 과제#32

Open
SohnEugene wants to merge 3 commits intowafflestudio:masterfrom
SohnEugene:master
Open

손유진 seminar0 과제#32
SohnEugene wants to merge 3 commits intowafflestudio:masterfrom
SohnEugene:master

Conversation

@SohnEugene
Copy link

intellij에서 pr 생성이 권한이 없다는 메세지와 함께 이루어지지 않았기에 부득이하게 현재 버전의 레포지토리를 포크하여서 UserServiceImpl과 UserController 파일만 수정했습니다. 죄송합니다.

Copy link
Member

@davin111 davin111 left a comment

Choose a reason for hiding this comment

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

현재 상태에서 typeerror 가 존재해서 build 가 되지 않네요. 따라서 test 가 동작하지 않습니다. 로컬에서 확인해보시면 좋을 듯 합니다. cc. @PFCJeong

Copy link
Member

@davin111 davin111 left a comment

Choose a reason for hiding this comment

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

val entity = userRepository.findByUsername(accessToken.reversed()) ?: throw AuthenticateException()

return User(entity)
val userList = userRepository.findAll()
Copy link
Member

Choose a reason for hiding this comment

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

이런 식으로 DB 에 있는 유저를 다 찾아오면, 지금처럼 가볍게 테스트하는 수준에서는 동작할 수도 있지만 실제 서비스를 하여 유저가 조금만 많아져도 성능상 문제가 생길 수 있습니다. 애초에 적절한 유저만 찾도록 DB 쿼리를 하는 것이 필요합니다. 업데이트된 세미나장의 과제0 코드를 참고해보세요.

@PFCJeong PFCJeong force-pushed the master branch 2 times, most recently from 1a8e813 to f420cff Compare October 3, 2023 16:41
@PFCJeong PFCJeong force-pushed the master branch 3 times, most recently from 633df04 to 66e14db Compare October 22, 2023 00:28
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