Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-79295

Fix existing mod_quiz_get_attempt_summary Web Service when sequential navigation is used

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.4
    • 4.3
    • Quiz

      The existing Web Service is not working as expected in some cases such as sequential navigation and when we need to retrieve the submission summary status (regardless the display options settings).

      Required changes are:

      1. Return the state id ignoring the correctness status
      2. Return the number of unanswered questions so we can display the warning.
      3. When sequential navigation is on, currently all questions are ignored and not returned by the WS except the current one. The implementation needs to consider that the user is able to know the number of total questions and previous question statuses. But it should not know future questions content.

      Notes for integrators and reviewers:

      • We are not backporting these changes as we are modifying the Web Services signature
      • I've used "stateid" as field name for the "state class (result of $attempt->get_question_state_class())" as this state identifier is used for both classes and string ids, I can rename it to something more suitable if required.

        1. MDL-79295_errormssg_20231130.png
          253 kB
          Isabel Renedo Rouco
        2. MDL-79295_review_errormssg.png
          158 kB
          Isabel Renedo Rouco
        3. MDL-79295_review.png
          115 kB
          Isabel Renedo Rouco
        4. MDL-79295_summary_previousquestion.png
          128 kB
          Isabel Renedo Rouco
        5. screenshot-1.png
          30 kB
          Noel De Martin

            jleyva Juan Leyva
            jleyva Juan Leyva
            Rodrigo Mady Rodrigo Mady
            Tim Hunt Tim Hunt
            CiBoT CiBoT
            Votes:
            1 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 36 minutes
                3d 36m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.