From 30109f4012e0223380f4acf2b1949ec50c4b6a46 Mon Sep 17 00:00:00 2001 From: Alex Mickelson Date: Tue, 10 Oct 2023 10:47:36 -0600 Subject: [PATCH] new syncronization for quizzes, add only --- Management.Test/Markdown/QuizMarkdownTests.cs | 6 +- .../AssignmentDescriptionEditor.razor | 4 +- .../Shared/Components/Quiz/QuizForm.razor | 12 ++++ .../Features/Configuration/CoursePlanner.cs | 10 ++-- .../Configuration/QuizEditorContext.cs | 60 +++++++++++++++++-- .../ModuleSyncronizationExtensions.cs | 42 ++++++------- .../QuizSyncronizationExtensions.cs | 48 +++++++-------- .../CanvasModels/Modules/CanvasModuleItem.cs | 10 +++- .../Services/Canvas/CanvasModuleService.cs | 2 +- .../Services/Canvas/CanvasQuizService.cs | 14 ++--- 10 files changed, 139 insertions(+), 69 deletions(-) diff --git a/Management.Test/Markdown/QuizMarkdownTests.cs b/Management.Test/Markdown/QuizMarkdownTests.cs index d0336f8..187e6e7 100644 --- a/Management.Test/Markdown/QuizMarkdownTests.cs +++ b/Management.Test/Markdown/QuizMarkdownTests.cs @@ -23,7 +23,7 @@ this is my description in markdown DueAt = DateTime.MaxValue, ShuffleAnswers = true, OneQuestionAtATime = false, - LocalAssignmentGroupId = "someId", + LocalAssignmentGroupName = "someId", AllowedAttempts = -1, Questions = new LocalQuizQuestion[] { } }; @@ -54,7 +54,7 @@ this is my description in markdown DueAt = DateTime.MaxValue, ShuffleAnswers = true, OneQuestionAtATime = false, - LocalAssignmentGroupId = "someId", + LocalAssignmentGroupName = "someId", AllowedAttempts = -1, Questions = new LocalQuizQuestion[] { @@ -114,7 +114,7 @@ b) false DueAt = DateTime.MaxValue, ShuffleAnswers = true, OneQuestionAtATime = false, - LocalAssignmentGroupId = "someId", + LocalAssignmentGroupName = "someId", AllowedAttempts = -1, Questions = new LocalQuizQuestion[] { diff --git a/Management.Web/Shared/Components/AssignmentForm/AssignmentDescriptionEditor.razor b/Management.Web/Shared/Components/AssignmentForm/AssignmentDescriptionEditor.razor index 1f918c8..6c03c12 100644 --- a/Management.Web/Shared/Components/AssignmentForm/AssignmentDescriptionEditor.razor +++ b/Management.Web/Shared/Components/AssignmentForm/AssignmentDescriptionEditor.razor @@ -188,7 +188,7 @@
-
+