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

refactor : 마이페이지 내 예매목록조회 슬라이스 적용 #278

Merged
merged 3 commits into from
Feb 3, 2023

Conversation

ImNM
Copy link
Member

@ImNM ImNM commented Feb 2, 2023

개요

작업사항

  • 내용을 적어주세요.

변경로직

  • 내용을 적어주세요.

@ImNM ImNM added For: API [이슈 대상] 외부 API Type: Refactor [이슈 목적] 프로덕션 코드 리팩토링 labels Feb 2, 2023
@ImNM ImNM self-assigned this Feb 2, 2023
Copy link
Member

@gengminy gengminy left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Comment on lines 117 to 123
@Operation(summary = "마이페이지 내 예매목록 조회")
@GetMapping
public PageResponse<OrderBriefElement> getMyOrders(
public SliceResponse<OrderBriefElement> getMyOrders(
@ParameterObject @RequestParam Boolean showing,
@ParameterObject @PageableDefault(size = 10) Pageable pageable) {
@ParameterObject @PageableDefault Pageable pageable) {
return readOrderUseCase.getMyOrders(showing, pageable);
}
Copy link
Member

Choose a reason for hiding this comment

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

@PageableDefault 사이즈 지정 안하면 20인가로 되던데 괜찮나유

Copy link
Member Author

Choose a reason for hiding this comment

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

@PageableDefault 사이즈 지정 안하면 20인가로 되던데 괜찮나유

디폴트가 10 이라고 회색글자 적히더라구요

Comment on lines 31 to 32
// OrderSpecifier[] orderBy = QueryDslUtil.getOrderSpecifiers(Order.class, pageable);
// 오류남
Copy link
Member

@gengminy gengminy Feb 3, 2023

Choose a reason for hiding this comment

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

요거 나중에 더 개선해볼게요 일단 정렬조건 id.desc() 로 다 고정합시다

Copy link
Member

@sanbonai06 sanbonai06 left a comment

Choose a reason for hiding this comment

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

LGTM

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 296 Code Smells

15.5% 15.5% Coverage
0.0% 0.0% Duplication

@ImNM ImNM merged commit d21ed11 into dev Feb 3, 2023
@ImNM ImNM deleted the refactor/277-my-order-list-scroll branch February 3, 2023 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For: API [이슈 대상] 외부 API Type: Refactor [이슈 목적] 프로덕션 코드 리팩토링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🔨[refactor] 내주문 내역조회 무한스크롤로 변경
3 participants