From d28bc1cafd621d153e68fee6dca171f64a8529a3 Mon Sep 17 00:00:00 2001 From: Steven Lageveen Date: Sun, 24 Nov 2024 16:33:09 +0100 Subject: [PATCH] Updated logging to debug submissions not being found in production --- .../components/pages/admin/studentoverview/common-table.tsx | 3 +++ IguideME.Web/Frontend/src/helpers/general.tsx | 1 - IguideME.Web/Services/Workers/AssignmentWorker.cs | 1 + charts/iguideme/Chart.yaml | 4 ++-- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/IguideME.Web/Frontend/src/components/pages/admin/studentoverview/common-table.tsx b/IguideME.Web/Frontend/src/components/pages/admin/studentoverview/common-table.tsx index a1028b0a..8bba40af 100644 --- a/IguideME.Web/Frontend/src/components/pages/admin/studentoverview/common-table.tsx +++ b/IguideME.Web/Frontend/src/components/pages/admin/studentoverview/common-table.tsx @@ -33,6 +33,7 @@ const CommonTable: FC = ({ type }): ReactElement => { queryKey: ['students', 'settings'], queryFn: getStudentsWithSettings, }); + console.log('Students', students); const { data: notifications, @@ -63,6 +64,7 @@ const CommonTable: FC = ({ type }): ReactElement => { queryFn: async () => await getAllUserTileGrades(), enabled: type === GradeTableType.tile, }); + console.log('Tile grades', tileGrades); const { data: entryGrades, @@ -73,6 +75,7 @@ const CommonTable: FC = ({ type }): ReactElement => { queryFn: async () => await getAllEntryGrades(), enabled: type === GradeTableType.entry, }); + console.log('Entry grades', entryGrades); const columns = [ { diff --git a/IguideME.Web/Frontend/src/helpers/general.tsx b/IguideME.Web/Frontend/src/helpers/general.tsx index 99704af8..d50448ee 100644 --- a/IguideME.Web/Frontend/src/helpers/general.tsx +++ b/IguideME.Web/Frontend/src/helpers/general.tsx @@ -1,4 +1,3 @@ export function objectExists(object: T | null | undefined): object is T { - console.log(object); return object !== null && object !== undefined; } diff --git a/IguideME.Web/Services/Workers/AssignmentWorker.cs b/IguideME.Web/Services/Workers/AssignmentWorker.cs index 920a9d7e..51677700 100644 --- a/IguideME.Web/Services/Workers/AssignmentWorker.cs +++ b/IguideME.Web/Services/Workers/AssignmentWorker.cs @@ -109,6 +109,7 @@ public void Start() // We register the internal assignmentID in the submission entity, this is to support external data foreach (AssignmentSubmission sub in submissions) { + _logger.LogInformation("submission: {} {}", sub.UserID, sub.RawGrade); if (sub.AssignmentID == assignment.ExternalID) { sub.AssignmentID = assignment.ID; diff --git a/charts/iguideme/Chart.yaml b/charts/iguideme/Chart.yaml index 70d5fd18..ac204af3 100644 --- a/charts/iguideme/Chart.yaml +++ b/charts/iguideme/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: iguideme description: IguideME type: application -version: 0.3.241 -appVersion: "0.3.241" +version: 0.3.242 +appVersion: "0.3.242"