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

커서 기반 페이지네이션, refresh token 구현 #91

Merged
merged 13 commits into from
Oct 14, 2023

Conversation

seokwns
Copy link
Contributor

@seokwns seokwns commented Oct 14, 2023

작업 내용

  • 포트폴리오 조회 시 커서 기반으로 페이지네이션 하도록 수정
  • refresh token 구현

주의 사항(Optional)

  • 자세하게는 테스트를 안해봤지만 .. 간단히 해본 결과는 잘 작동합니다 ..!!!
  • 혹시 오류 발생하면 말씀해주세요!

이슈 번호

close #86
close #87

- 추가 쿼리를 방지하기 위해 엔티티 그래프 추가
- 리팩토링 : DTO 이름 변경, 중복 메서드 제거
- 견적서에서 match 필드에 lazy loading 적용
- 견적서 업데이트 흐름 수정
- ImageItem 에서 중복 join되는 오류 수정
- 포트폴리오 리스트 조회를 커서 기반 페이지네이션으로 구현
- 기능에 따라 코드 분리
- 테스트용 데이터 추가
# Conflicts:
#	sunsu-wedding/src/main/java/com/kakao/sunsuwedding/match/Quotation/QuotationService.java
#	sunsu-wedding/src/main/java/com/kakao/sunsuwedding/portfolio/image/ImageEncoder.java
- 토큰을 위한 엔티티, 저장소, 서비스 로직 생성
- refresh token 구현
- refresh token 추가로 변경된 로직 반영
@seokwns seokwns added enhancement New feature or request Done 진행 완료 user 유저와 관련된 기능 portfolio 포트폴리오 관련 기능 labels Oct 14, 2023
@seokwns seokwns self-assigned this Oct 14, 2023
- 커서가 끝을 가리킬 경우 -2 를 가리키기 때문에 컨트롤러의 커서 값의 최소 값을 -2로 변경
- access token 만 가지고 갱신 요청 시 발생하는 데이터베이스 오류 해결
- 코드 리팩토링
Copy link
Contributor

@chaee813 chaee813 left a comment

Choose a reason for hiding this comment

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

바꿀 게 많아서 복잡하셨을텐데 고생 많으셨습니다!!!
완전 실력자시네요 , , , 👍

@chaee813 chaee813 merged commit e1454b1 into Step3-kakao-tech-campus:weekly Oct 14, 2023
1 check passed
}

// transcation 을 열어야 할 것 같은데
// 접근 제한자를 protected 에서 public 으로 바꿔야 합니다...!!
// 바꿔도 괜찮을까요 ..???
Copy link
Contributor

Choose a reason for hiding this comment

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

@1jeongg 머지하긴 했는데 이 부분은 원정님이 답변해주시면 좋을 것 같아요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Done 진행 완료 enhancement New feature or request portfolio 포트폴리오 관련 기능 user 유저와 관련된 기능
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refresh-token 구현 포트폴리오 조회 구현 방식 변경
2 participants