Skip to content

Conversation

@anselmo228
Copy link
Collaborator

📌 요약

  • 리뷰 생성시 사용되는 자동완성 API V2 추가

📝 상세 내용

  • 기존 자동완성은 공연중, 공연 예정만 보여줌
  • 리뷰애서 사용되는 자동완성은 공연종료만 보여줌

🗣️ 질문 및 이외 사항

  • 프론트 개발의 변동을 줄이고자 API V1 V2로 분리

☑️ 누구에게 리뷰를 요청할까요?

@anselmo228 anselmo228 added the requirements change code due to requirements label Nov 28, 2024
@anselmo228 anselmo228 requested a review from devkeon November 28, 2024 16:04
@anselmo228 anselmo228 self-assigned this Nov 28, 2024
public List<ConcertAutoCompleteResponse> getAutoCompleteV2(String query) {

List<Long> concertIds = concertRepository.findConcertIdsBySearchQueryV2(query);
List<Long> topConcertIds = concertIds.size() > 10 ? concertIds.subList(0, 10) : concertIds;
Copy link
Member

Choose a reason for hiding this comment

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

최대 10개만 가져올 수 있는 거면 쿼리에서 limit 10을 거는 것도 좋아보입니다!

@anselmo228 anselmo228 merged commit 97eab93 into main Nov 29, 2024
2 checks passed
@anselmo228 anselmo228 deleted the requirements/ticket-concerts-view branch November 29, 2024 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

requirements change code due to requirements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants