Skip to content

Commit

Permalink
Updated logging to debug submissions not being found in production
Browse files Browse the repository at this point in the history
  • Loading branch information
allomanta committed Nov 24, 2024
1 parent 8ee5abb commit d28bc1c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const CommonTable: FC<Props> = ({ type }): ReactElement => {
queryKey: ['students', 'settings'],
queryFn: getStudentsWithSettings,
});
console.log('Students', students);

const {
data: notifications,
Expand Down Expand Up @@ -63,6 +64,7 @@ const CommonTable: FC<Props> = ({ type }): ReactElement => {
queryFn: async () => await getAllUserTileGrades(),
enabled: type === GradeTableType.tile,
});
console.log('Tile grades', tileGrades);

const {
data: entryGrades,
Expand All @@ -73,6 +75,7 @@ const CommonTable: FC<Props> = ({ type }): ReactElement => {
queryFn: async () => await getAllEntryGrades(),
enabled: type === GradeTableType.entry,
});
console.log('Entry grades', entryGrades);

const columns = [
{
Expand Down
1 change: 0 additions & 1 deletion IguideME.Web/Frontend/src/helpers/general.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export function objectExists<T>(object: T | null | undefined): object is T {
console.log(object);
return object !== null && object !== undefined;
}
1 change: 1 addition & 0 deletions IguideME.Web/Services/Workers/AssignmentWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions charts/iguideme/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit d28bc1c

Please sign in to comment.