@@ -32,15 +40,23 @@ const { summary } = useLearningMentees(courseSession.value.id);
{{ participant.email }}
-
- {{ $t("cockpit.profileLink") }}
-
+
+
+ {{ $t("cockpit.profileLink") }}
+
+
+
diff --git a/client/src/services/learningMentees.ts b/client/src/services/learningMentees.ts
index 21fd5d8a..7dcee7d8 100644
--- a/client/src/services/learningMentees.ts
+++ b/client/src/services/learningMentees.ts
@@ -41,6 +41,7 @@ export interface Assignment {
}
export interface Summary {
+ mentor_id: string;
participants: Participant[];
circles: Circle[];
assignments: Assignment[];
diff --git a/server/vbv_lernwelt/learning_mentor/tests/test_mentor.py b/server/vbv_lernwelt/learning_mentor/tests/test_mentor.py
index 88f83e68..41ce64b6 100644
--- a/server/vbv_lernwelt/learning_mentor/tests/test_mentor.py
+++ b/server/vbv_lernwelt/learning_mentor/tests/test_mentor.py
@@ -113,6 +113,11 @@ class LearningMentorAPITest(APITestCase):
self.assertEqual(participant_1["first_name"], "Test")
self.assertEqual(participant_1["last_name"], "Participant_1")
+ self.assertEqual(
+ response.data["mentor_id"],
+ mentor.id,
+ )
+
def test_api_self_evaluation_feedback(self) -> None:
# GIVEN
participants = [self.participant_1, self.participant_2, self.participant_3]
diff --git a/server/vbv_lernwelt/learning_mentor/views.py b/server/vbv_lernwelt/learning_mentor/views.py
index 8ce99f2e..e736a3a2 100644
--- a/server/vbv_lernwelt/learning_mentor/views.py
+++ b/server/vbv_lernwelt/learning_mentor/views.py
@@ -71,6 +71,7 @@ def mentor_summary(request, course_session_id: int):
)
return Response(
{
+ "mentor_id": mentor.id,
"participants": [UserSerializer(user).data for user in users],
"circles": list(
Circle.objects.filter(id__in=circle_ids).values("id", "title")