Skip to content

Refactor/timetable#136

Merged
Devheun merged 5 commits into
developfrom
refactor/timetable
Jun 3, 2025
Merged

Refactor/timetable#136
Devheun merged 5 commits into
developfrom
refactor/timetable

Conversation

@Devheun

@Devheun Devheun commented Apr 29, 2025

Copy link
Copy Markdown
Contributor

📝 Description

학기 상관없이 keyword만 입력해서 강의검색하는 엔드포인트를 만들었습니다.

🧪 Test

관련 정보들 제대로 잘 반환하는 지 테스트 해주시면 됩니다.

Devheun added 5 commits April 29, 2025 22:18
- 새로 만든 api가 course 테이블의 정보 뿐만 아니라 course-review 테이블에 접근해서 특정 강의(학수번호, 교수명)에 달린 강의평의 개수까지 반환해줘야해서 공통모듈 만들었습니다
- 까먹을까봐 커밋으로 남겨둡니다...ㅎ
@Devheun Devheun requested review from JeongYeonSeung, KimSeongHyeonn and Copilot and removed request for Copilot April 29, 2025 14:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the course search functionality to allow keyword‐based searches without requiring semester input while cleaning up redundant DTOs. Key changes include adding a new endpoint and associated DTOs for “all-time” course searches, removing several outdated search DTOs, and integrating review count logic via a new CommonCourseModule.

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/decorators/docs/course.decorator.ts Added API documentation for the new searchAllTimeCourses endpoint.
src/course/dto/search-all-time-courses-request.dto.ts & response DTO Introduced new request/response DTOs for all-time course search.
src/course/course.service.ts Added searchAllTimeCourses method with integrated review count lookup.
src/course/course.controller.ts Exposed the new GET /all-time endpoint.
Other DTO files Removed outdated search DTOs.
src/common-course Added new module and service for handling common course operations.
src/course-review Minor adjustments and TODO comments regarding module dependencies.
Comments suppressed due to low confidence (2)

src/course/course.service.ts:253

  • [nitpick] Consider extracting the course code prefix extraction into a well-named variable or helper to avoid repeated string splitting.
courseCode: course.courseCode.split('-')[0],

src/course/dto/search-all-time-courses-response.dto.ts:25

  • [nitpick] Replace the hard-coded index '19' with a named constant for clarity and to better indicate its relationship to the pagination limit.
const nextCursorId = hasNextPage ? courses[19].id : null;

@KimSeongHyeonn KimSeongHyeonn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

동작 확인했씁니다

@JeongYeonSeung JeongYeonSeung left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Devheun Devheun merged commit ebb9d80 into develop Jun 3, 2025
@Devheun Devheun deleted the refactor/timetable branch June 3, 2025 12:43
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.

4 participants