-
Notifications
You must be signed in to change notification settings - Fork 2
Redesign/semesters #309
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
Redesign/semesters #309
Changes from all commits
8359dfe
cbc6a09
d99b1e1
dd3c78b
082b760
a59dc8f
1db2d87
3ce46c1
dfcc08c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,13 +31,16 @@ import { JwtCookieGuard } from './modules/auth/guard/jwt-cookie.guard' | |
| import { MockAuthGuard } from './modules/auth/guard/mock-auth-guard' | ||
| import { CoursesModule } from './modules/courses/courses.module' | ||
| import { DepartmentsModule } from './modules/departments/departments.module' | ||
| import { DepartmentsModuleV2 } from './modules/departments/v2/departments.v2.module' | ||
| import { FeedsModule } from './modules/feeds/feeds.module' | ||
| import { LecturesModule } from './modules/lectures/lectures.module' | ||
| import { NoticesModule } from './modules/notices/notices.module' | ||
| import { PlannersModule } from './modules/planners/planners.module' | ||
| import { RatesModule } from './modules/rates/rates.module' | ||
| import { ReviewsModule } from './modules/reviews/reviews.module' | ||
| import { SchedulesModule } from './modules/schedules/schedules.module' | ||
| import { SemestersModule } from './modules/semesters/semesters.module' | ||
| import { SemestersModuleV2 } from './modules/semesters/v2/semesters.v2.module' | ||
| import { SessionModule } from './modules/session/session.module' | ||
| import { ShareModule } from './modules/share/share.module' | ||
| import { StatusModule } from './modules/status/status.module' | ||
|
|
@@ -83,7 +86,9 @@ async function createCacheStoreWithFallback(): Promise<Keyv> { | |
| LecturesModule, | ||
| ReviewsModule, | ||
| UserModule, | ||
| SchedulesModule, | ||
| SemestersModule, | ||
| SemestersModuleV2, | ||
| TimetablesModule, | ||
| TimetablesModuleV2, | ||
| RatesModule, | ||
|
|
@@ -93,6 +98,7 @@ async function createCacheStoreWithFallback(): Promise<Keyv> { | |
| NoticesModule, | ||
| SessionModule, | ||
| DepartmentsModule, | ||
| DepartmentsModuleV2, | ||
| PlannersModule, | ||
| TracksModule, | ||
| ShareModule, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 코드 리뷰 요약
이러한 문제점들이 해결된 후에 코드를 병합하는 것이 바람직합니다. |
||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| export namespace ISchedules { | ||
| export interface Basic { | ||
| year: number | ||
| from: Date | ||
| to: Date | ||
| name: string | ||
| } | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이 코드 패치는 다음과 같은 문제점과 개선사항을 포함하고 있습니다:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 코드 패치에서 몇 가지 개선사항 및 잠재적인 버그가 발견되었습니다. 첫째, |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,14 @@ | ||
| export * from './IAuth' | ||
| export * from './ICourse' | ||
| export * from './ICourseV2' | ||
| export * from './IDepartment' | ||
| export * from './IDepartmentV2' | ||
| export * from './IFeed' | ||
| export * from './ILecture' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 변경 사항을 보면, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 코드 패치는 새로운 인터페이스인
이러한 사항들을 고려한 후, 제안된 패치를 재검토해야 합니다. |
||
| export * from './ILectureV2' | ||
| export * from './INotice' | ||
| export * from './IPlanner' | ||
| export * from './IProfessor' | ||
| export * from './IProfessorV2' | ||
| export * from './IRate' | ||
| export * from './IReview' | ||
| export * from './ISchedules' | ||
| export * from './ISemester' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이 코드 패치는 여러 모듈을 내보내는 부분에서 'V2' 버전의 모듈을 제거하였습니다. 여기에는 몇 가지 잠재적인 문제가 있습니다. 첫째, V2 버전을 사용하는 다른 코드가 있을 수 있으며, 이들 코드에서 오류가 발생할 수 있습니다. 둘째, 코드의 의도가 불명확합니다. 왜 V2 버전을 제거했는지 명시적인 주석이나 커밋 메시지가 없습니다. 따라서 코드 변경의 이유를 문서화해 추가적인 혼란을 피하는 것이 좋습니다. 마지막으로, V2와 V1 버전 간의 주요 차이점을 문서화하여 새로운 코드가 이전 버전의 기능을 얼마나 유지하는지 유의해야 합니다. 이러한 사항을 고려하여 패치를 더 면밀히 검토하는 것이 좋습니다. |
||
| export * from './ISession' | ||
| export * from './IShare' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,4 +3,10 @@ export namespace IDepartmentV2 { | |
| id: number | ||
| name: string | ||
| } | ||
|
|
||
| export interface Detail { | ||
| id: number | ||
| name: string | ||
| code: string | ||
| } | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 리뷰 코멘트:
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드에서
SchedulesModule을 추가하는 것은 적절해 보입니다. 하지만 몇 가지 주의할 사항이 있습니다:모듈 의존성 확인:
SchedulesModule이 다른 모듈과의 의존성을 가지고 있는지 확인해야 합니다. 만약 의존성이 있다면, 이를 적절하게 처리해야 합니다.테스트 누락 가능성: 새로운 모듈을 추가하면 기존 기능에 영향을 줄 수 있습니다. 따라서, 새로운 모듈과 관련된 테스트가 누락되지 않았는지 확인해야 합니다.
주석 추가:
SchedulesModule의 목적과 기능을 코드 주석으로 명확히 설명하는 것이 좋습니다. 이렇게 하면 코드 유지보수 시 더 이해하기 쉬워질 것입니다.모듈 통합 체크: 전체 모듈을 통합하여 최종 빌드 또는 배포 전에 해당 모듈이 정상 작동하는지 확인해야 합니다. 이를 위해 CI/CD 파이프라인에서 적절한 빌드 및 테스트 단계를 설정하는 것이 중요합니다.
결론적으로, 코드는 잘 작성된 것 같지만 추가적인 확인과 테스트가 필요합니다.