SEBSERV-417 add rollback of exam import on partial import
This commit is contained in:
parent
4dc8064f88
commit
fbe7781be1
2 changed files with 1 additions and 2 deletions
|
@ -315,7 +315,6 @@ public class FullLmsIntegrationServiceImpl implements FullLmsIntegrationService
|
||||||
.getLmsSetupIdByConnectionId(lmsUUID)
|
.getLmsSetupIdByConnectionId(lmsUUID)
|
||||||
.flatMap(lmsAPITemplateCacheService::getLmsAPITemplate)
|
.flatMap(lmsAPITemplateCacheService::getLmsAPITemplate)
|
||||||
.map(template -> getQuizData(template, courseId, quizId, examData))
|
.map(template -> getQuizData(template, courseId, quizId, examData))
|
||||||
//.map(findQuizData(courseId, quizId))
|
|
||||||
.map(createExam(examTemplateId, quitPassword))
|
.map(createExam(examTemplateId, quitPassword))
|
||||||
.map(exam -> applyExamData(exam, false))
|
.map(exam -> applyExamData(exam, false))
|
||||||
.map(this::applyConnectionConfiguration);
|
.map(this::applyConnectionConfiguration);
|
||||||
|
|
|
@ -167,7 +167,7 @@ public class SEBRestrictionServiceImpl implements SEBRestrictionService {
|
||||||
return this.applySEBClientRestriction(exam)
|
return this.applySEBClientRestriction(exam)
|
||||||
.flatMap(e -> this.examDAO.setSEBRestriction(e.id, true))
|
.flatMap(e -> this.examDAO.setSEBRestriction(e.id, true))
|
||||||
.onError(t -> log.error("Failed to update SEB Client restriction for Exam: {}", exam, t))
|
.onError(t -> log.error("Failed to update SEB Client restriction for Exam: {}", exam, t))
|
||||||
.getOr(exam);
|
.getOrThrow();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue