Skip to content

Conversation

@jack0928
Copy link
Member

#️⃣ Related Issues

연관된 모든 Issue를 작성해주세요.
closes 나 resolves prefix를 붙여서 자동으로 Issue가 Close 될 수 있도록 해주세요.

🧑‍💻 작업 내용 및 결과

  • 이벤트 목록 조회 API에 검색 필드 추가
    • GetEventsQueryDto에 search 필드 추가 (제목 기준 검색)
    • EventsQueryService에서 Prisma where 조건에 제목 검색 조건 추가
    • 거리순(DISTANCE) Raw SQL 쿼리에도 제목 LIKE 조건 반영
    • 검색 시 단일/다중 조건 모두 기존 필터와 함께 정상 동작하도록 처리

📝 Checklist

  • Reviewer를 추가했나요?
  • Convention을 준수했나요?

⚠️ 이 PR은 레포지토리 초기화로 인해 기존 PR(#118)을 복구하기 위해 다시 생성한 것입니다.
기존 변경사항과 동일합니다.

jack0928 and others added 4 commits November 13, 2025 21:19
* ♻️ refactor: 이벤트 seeding 병렬 처리(p-limit) 적용

- p-limit(3.1.0) 적용으로 최대 10개 동시 요청 병렬 처리(CJS 사용 위해 버전 낮춤)
- seedSeoulRun4050, seedSeoul50Plus 함수에 Promise.all + 제한 병렬 구조 도입
- 전체 시딩 소요 시간 약 30분으로 단축 (테스트 완료)
- 주의: pnpm 설치 중 postinstall 옵션이 자동으로 true로 변경됨

* ♻️ Refactor: Prisma generated 파일의 postinstall 옵션 복구

- pnpm 설치 시 자동으로 postinstall 옵션이 true로 변경된 부분을 false로 수동 복구
- Docker 및 CI 환경에서 Prisma generate 중복 실행을 방지하기 위함

---------

Co-authored-by: IAN <[email protected]>
♻️ Refactor: 이벤트 상세 응답 DTO에 isScrapped 필드 추가

- GetEventDetailResponseDto에 isScrapped 필드 추가
- EventsQueryService에서 로그인 사용자 기준 찜 여부 확인 로직 추가
- 이벤트 상세 조회 컨트롤러에서 userId를 전달하도록 수정
- 로그인 여부와 무관하게 상세 조회 가능 (비로그인 시 기본값 false)

- Resolves #115

Co-authored-by: IAN <[email protected]>
- GetEventsQueryDto에 search 필드 추가 (제목 기준 검색)
- EventsQueryService에서 Prisma where 조건에 제목 검색 조건 추가
- 거리순(DISTANCE) Raw SQL 쿼리에도 제목 LIKE 조건 반영
- 검색 시 단일/다중 조건 모두 기존 필터와 함께 정상 동작하도록 처리

resolves #117
- GetEventsQueryDto.search 필드에 누락된 @IsString() 데코레이터 추가
- DB 스키마(Event.title: VARCHAR(50))와 일관성을 맞추기 위해 @maxlength(50) 적용
@jack0928 jack0928 self-assigned this Nov 30, 2025
@jack0928 jack0928 merged commit dd1abc3 into develop Nov 30, 2025
2 checks passed
@jack0928 jack0928 deleted the feature/#117-event-search-query branch November 30, 2025 06:44
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.

[Feat] 이벤트 목록 조회에 search query(검색 기능) 추가

2 participants