-
Notifications
You must be signed in to change notification settings - Fork 172
Description
Problem
Currently we allow students to view their own questions via the "To Question" button in the AchievementCard
view. Ideally, when the avenger clicks the "To Question" button on a student's completed mission, the avenger should be brought to the student's past attempt, NOT the avenger's own attempt of said mission.
Therefore, the "To Question" button is intentionally disabled for avengers as we have no proper way of fetching the student's submission ID based on what we have in AchievementCard
view, which is essentially just mission ID and the student's course registration ID.
To understand why we need the submission ID to fetch the student's past submission, refer to how GradingOverview
component is implemented.
Possible Solution
Consider adding a new backend route which takes in the course registration ID and mission ID, and then returns to the frontend the relevant submission ID, to be then used by AchievementCard component to link to the correct submission page.
Commented on in PR #2252.