From 8d2d08365a9232766c98dcc58e538d44fe70f1df Mon Sep 17 00:00:00 2001 From: Phillip Wirth Date: Tue, 5 Dec 2023 17:16:45 +0100 Subject: [PATCH 1/2] BC-4209 improve logging to identify teachers without firstnames in tsp --- src/services/sync/strategies/TSP/TSPSchoolSyncer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/sync/strategies/TSP/TSPSchoolSyncer.js b/src/services/sync/strategies/TSP/TSPSchoolSyncer.js index ba2c7c94e41..49691a1c18e 100644 --- a/src/services/sync/strategies/TSP/TSPSchoolSyncer.js +++ b/src/services/sync/strategies/TSP/TSPSchoolSyncer.js @@ -402,7 +402,7 @@ class TSPSchoolSyncer extends mix(Syncer).with(ClassImporter) { this.stats.errors.push({ type: 'update-teacher', entity: tspTeacher.lehrerUid, - message: `Lehrer "${tspTeacher.lehrerVorname} ${tspTeacher.lehrerNachname}" konnte nicht aktualisiert werden.`, + message: `teacher "${tspTeacher.lehrerVorname} ${tspTeacher.lehrerNachname}" with tsp id ${tspTeacher.lehrerUid} and user id ${user._id} could not be updated.`, }); return null; @@ -542,8 +542,8 @@ class TSPSchoolSyncer extends mix(Syncer).with(ClassImporter) { type: 'update-student', entity: tspStudent.schuelerUid, message: - `Schüler "${tspStudent.schuelerVorname} ${tspStudent.schuelerNachname}"` + - ' konnte nicht aktualisiert werden.', + `student "${tspStudent.schuelerVorname} ${tspStudent.schuelerNachname}"` + + ` with tsp id ${tspStudent.lehrerUid} and user id ${user._id} could not be updated.`, }); return null; From 9061b577ae67a8aab40872d2bdcd88b8eb54316b Mon Sep 17 00:00:00 2001 From: Phillip Wirth Date: Wed, 6 Dec 2023 08:52:32 +0100 Subject: [PATCH 2/2] fixed logging --- src/services/sync/strategies/TSP/TSPSchoolSyncer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/sync/strategies/TSP/TSPSchoolSyncer.js b/src/services/sync/strategies/TSP/TSPSchoolSyncer.js index 49691a1c18e..9484bcf0b44 100644 --- a/src/services/sync/strategies/TSP/TSPSchoolSyncer.js +++ b/src/services/sync/strategies/TSP/TSPSchoolSyncer.js @@ -543,7 +543,7 @@ class TSPSchoolSyncer extends mix(Syncer).with(ClassImporter) { entity: tspStudent.schuelerUid, message: `student "${tspStudent.schuelerVorname} ${tspStudent.schuelerNachname}"` + - ` with tsp id ${tspStudent.lehrerUid} and user id ${user._id} could not be updated.`, + ` with tsp id ${tspStudent.schuelerUid} and user id ${user._id} could not be updated.`, }); return null;