Skip to content

Resolves #15: "Add teacher management view to the admin management page"

Closes #15 (closed)

Notes:

Adds in REST API for retrieving info about teachers, only accessible to admins. Adds tests for new API.

Expands on existing user/milestones/ API by allowing Admins to retrieve information on specific teacher's teams (returned in the same shape as the Teacher requests) specified by a teacher=XXX query argument in the URL.

Adds new frontend view for the Teacher management to the Admin's side bar. Abstracts out the Team Table from the TeamsView and reuses it in the toggleable dropdowns in the teacher view.

PR currently pulls from #16 (closed)'s PR: https://stgit.dcs.gla.ac.uk/team-project-h/2021/cs11/cs11-main/-/merge_requests/37 - due to some overlap with API.

Relies on associated core-fe PR https://stgit.dcs.gla.ac.uk/team-project-h/2021/cs11/ybc-core-fe/-/merge_requests/24 and core-be PR https://stgit.dcs.gla.ac.uk/team-project-h/2021/csp4/yes_project_core_be/-/merge_requests/13

Demo:

Screen_Recording_2022-03-10_at_15.54.51

Screenshot_2022-03-10_at_15.59.14 AWS showing submissions having been correctly removed.

Manual Testing TBC:

  • Admin can access Teachers page
  • Admin can reset teacher's passwords
  • Admin can toggle a view for the teacher's teams
  • Admin can delete teacher, which also deletes all of the teachers secret keys, teams, and the teams associated submission, votes, and judge submissions
Edited by YE Scotland Admin

Merge request reports