feat: enforce attempt limits, time limits and one-way tests
- Service.Start resumes an open test attempt, closes expired ones at their deadline and refuses a start past max_attempts under an advisory lock; StartAttempt stays as a wrapper - answers to a test are accepted until the deadline plus golem15.quizzes.test.grace_seconds; one_way answers are final - a test covers the whole quiz and keeps a stable per-attempt order - 409 bodies carry a code; list and attempt rows carry attempts_left, question_types and seconds_left; import accepts the test keys
This commit is contained in:
@@ -12,6 +12,9 @@ api:
|
||||
single_one_answer: Choose exactly one answer for this question.
|
||||
known_required: The known field is required for this question.
|
||||
unknown_category: The quiz has no questions in this category.
|
||||
attempt_limit_reached: All attempts at this test have been used.
|
||||
answer_locked: An answer in this test cannot be changed.
|
||||
category_not_allowed: A test covers the whole quiz; a category cannot be chosen.
|
||||
permissions:
|
||||
access_quizzes: Manage quizzes, questions and answers
|
||||
access_attempts: View quiz attempts
|
||||
|
||||
@@ -12,6 +12,9 @@ api:
|
||||
single_one_answer: Wybierz dokładnie jedną odpowiedź.
|
||||
known_required: Zaznacz, czy znasz odpowiedź.
|
||||
unknown_category: Quiz nie ma pytań w tej kategorii.
|
||||
attempt_limit_reached: Wykorzystano już wszystkie podejścia do tego testu.
|
||||
answer_locked: W tym teście nie można zmienić udzielonej odpowiedzi.
|
||||
category_not_allowed: Test obejmuje cały quiz; nie można wybrać kategorii.
|
||||
permissions:
|
||||
access_quizzes: Zarządzanie quizami, pytaniami i odpowiedziami
|
||||
access_attempts: Podgląd podejść do quizów
|
||||
|
||||
Reference in New Issue
Block a user