Skip to content

Allow students to choose a course that already exists in the database when creating a new course for their profile #13

@huonggiangbui

Description

@huonggiangbui

Is your feature request related to a problem? Please describe.
Now, a user can create whatever courses they want. But chances are some other uses may already create such course. Because of that, our database now stores many redundant courses created by different users.

Describe the solution you'd like
When students create a new course (see UI below), we want to change the text input of the course code to a search bar so that students can browse all the courses available in the database. This should involve making an API call to get all courses available (see #9). If there is a course that students want, they can choose that course and get all information (e.g. assessments, offering) populated to their UI (see #11 for API call). If there is no course match, they can go ahead and create a new course.

After a student adds the course to their profile (regardless of whether the course is new or not), you should make an API call to update the student's profile (so the database can reflect what courses such student has in their list now)

Additional context
This issue should be the extension of #9 and #11 (so you want to do this issue after figuring out the API call to get the information you want)

This is what the UI look like for now when student adds a course
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendmediumMedium issues. Should take around 5-24 hours

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions