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

Student endpoints #137

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Student endpoints #137

wants to merge 16 commits into from

Conversation

niclasheun
Copy link
Contributor

This PR build up on #135 .
It adjusts all required endpoints for student use and restricts the sidebar phase viewability for students to their active phases .

Course Participation Management:

  • Added CourseParticipation interface and getCourseParticipation query to fetch course participation data. (clients/core/src/managementConsole/shared/interfaces/CourseParticipation.ts, clients/core/src/network/queries/courseParticipation.ts) [1] [2]
  • Implemented getOwnCourseIDs query to retrieve course IDs a user is enrolled in. (clients/core/src/network/queries/ownCourseIDs.ts)
  • Updated the backend to include endpoints and services for fetching own course participation. (server/course/courseParticipation/router.go, server/course/courseParticipation/service.go, server/course/courseParticipation/courseParticipationDTO/get_own_course_participation.go) [1] [2] [3]

Sidebar Component Updates:

  • Modified ApplicationSidebar, InterviewSidebar, MatchingSidebar, and TemplateSidebar to include coursePhaseID as a prop. (clients/core/src/managementConsole/PhaseMapping/ExternalSidebars/ApplicationSidebar.tsx, clients/core/src/managementConsole/PhaseMapping/ExternalSidebars/InterviewSidebar.tsx, clients/core/src/managementConsole/PhaseMapping/ExternalSidebars/MatchingSidebar.tsx, clients/core/src/managementConsole/PhaseMapping/ExternalSidebars/TemplateSidebar.tsx) [1] [2] [3] [4]
  • Updated PhaseSidebarMapping and InsideCourseSidebar to pass coursePhaseID to sidebar components. (clients/core/src/managementConsole/PhaseMapping/PhaseSidebarMapping.tsx, clients/core/src/managementConsole/layout/Sidebar/InsideSidebar/InsideCourseSidebar.tsx) [1] [2]

Validation Improvements:

  • Enhanced validation for course names and semester tags to disallow the use of the "-" character. (clients/core/src/validations/course.ts)

Other Changes:

  • Updated PermissionRestriction component to check student roles and course participation. (clients/core/src/managementConsole/shared/components/PermissionRestriction.tsx) [1] [2]
  • Updated package dependency version for @tumaet/prompt-shared-state. (clients/package.json)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
1 participant