-
Notifications
You must be signed in to change notification settings - Fork 0
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
알림함에서 강의상세 진입 시 강의평 조회실패 수정 #390
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,6 +115,8 @@ fun LectureDetailPage( | |
ModeType.Normal -> { | ||
if (navController.currentDestination?.route == NavigationDestination.LectureDetail) { | ||
navController.popBackStack() | ||
} else if (navController.currentDestination?.route?.contains(NavigationDestination.TimetableLecture) == true) { | ||
onCloseViewMode(scope) // 알림함에서 진입하는 경우 다시 알림함으로 돌아가야 함 | ||
} | ||
Comment on lines
116
to
120
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.
-> 지금은 발생하지 않는 버그거나 발생하더라도 사소한 수준이라면 |
||
} | ||
is ModeType.Editing -> { | ||
|
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.
논의점이 되는 포인트는 여기 하나..! (뭔가 마우스 잘못 찍어서 안나오는데 ModeType.Viewing에서 ModeType.Normal로 바꿨어)
알림함에서 진입한 강의 상세를 ModeType.Normal로 열어도 되느냐 아니냐를 봐야할 것 같아
즉, 알림함에서 진입해서 바로 강의 편집이 가능한데, 이게 괜찮은건지 여부
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.
일단 이렇게 한 이유부터...
에러가 났던 이유는 이 코드 때문
알림함에서 진입한 시점에서, ev에 GET 요청을 보내기 위해 필요한 강의의 id는 lecture_id인데, Viewing으로 열면 id를 보내게 됨
그래서 서버에서는 그런 강의는 없기 때문에 404를 응답으로 보내는 것
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.
여기서 의문점이 하나 있었는데... 그럼 검색 결과에서 자세히를 눌러 강의 상세를 열 때는 왜 같은 문제가 생기지 않았는가?를 보면...
알림함 -> 강의 상세의 경우
getLectureReview()
를 호출해서 ev를 받아야 함검색 결과 -> 자세히의 경우
getLectureReview()
를 아예 호출하지 않음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.
그리고 문제점 두가지...
backstack 처리
플로팅 버튼