-
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
Vivek/backend branch #27
Conversation
Sprint 2 changes
PROJECT update GH action names
Development Release Sprint 3
Using up to date branch of development
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.
|
||
@GetMapping("/{courseName}/students") | ||
public List<User> getStudentsByCourseName(@PathVariable String courseName) { | ||
return courseService.findStudentsByCourseName(courseName); | ||
} |
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.
You should not search by course name. Please, use a course.id.
There are scenarios where 2 course objects can have the same name
@@ -14,4 +14,6 @@ public interface CourseRepository extends MongoRepository<Course, String> { | |||
List<Course> findByEnrolledStudent(String studentId); | |||
|
|||
List<Course> findByInstructor(String instructor); | |||
|
|||
List<Course> findByName(String name); |
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.
Use courseId
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.
Fix git history
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.
Fix git history
Getting list of students when opening a course functionality added