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

feat: 과목 생성 api 구현 #26

Merged
merged 21 commits into from
Feb 5, 2025
Merged

feat: 과목 생성 api 구현 #26

merged 21 commits into from
Feb 5, 2025

Conversation

chaeyeon0130
Copy link
Collaborator

@chaeyeon0130 chaeyeon0130 commented Feb 5, 2025

Key changes

  • 과목 생성 api 구현
  • course 테이블에서 course_code 컬럼 삭제
  • prod.yml 작성

To Reviewers

  • 테스트코드도 없고 코드도 좀 더러운데, 우선 로컬에서 테스트 케이스 설정 후 수동 테스트는 진행했습니다. 1차 배포 후, 테스트 코드 작성 & 리팩토링 진행하겠습니다.

@chaeyeon0130 chaeyeon0130 requested a review from DWL21 February 5, 2025 10:10
@chaeyeon0130 chaeyeon0130 self-assigned this Feb 5, 2025
Copy link
Collaborator

@DWL21 DWL21 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다. 스크럼에서 피드백 드릴게요.

Comment on lines +21 to +27
val classification = when (classificationStr) {
"전필", "전기" -> Classification.MAJOR_REQUIRED
"전선" -> Classification.MAJOR_ELECTIVE
"교필" -> Classification.GENERAL_REQUIRED
"교선" -> Classification.GENERAL_ELECTIVE
"채플" -> Classification.CHAPEL
else -> continue
Copy link
Collaborator

Choose a reason for hiding this comment

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

Classification 클래스에서 companion object로 valueOf 정의해서 구현하는건 어떨까요?

Comment on lines +159 to +170
private fun parseWeek(day: String): Week {
return when(day) {
"월" -> Week.MONDAY
"화" -> Week.TUESDAY
"수" -> Week.WEDNESDAY
"목" -> Week.THURSDAY
"금" -> Week.FRIDAY
"토" -> Week.SATURDAY
"일" -> Week.SUNDAY
else -> throw IllegalArgumentException("알 수 없는 요일 : $day")
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기도요!!

connectTimeout: 5000
loggerLevel: full
defaultRequestHeaders:
Authorization: Bearer accessToken
Copy link
Collaborator

Choose a reason for hiding this comment

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

슬랙 엑세스 토큰을 넣어야해서 환경변수로 만들어주세요.

@chaeyeon0130 chaeyeon0130 merged commit dda4217 into main Feb 5, 2025
1 check passed
@chaeyeon0130 chaeyeon0130 deleted the feat/create-course branch February 5, 2025 15:01
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.

2 participants