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

invalid grade fraction import should display the faulty question name

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.4
    • 4.0.5, 4.2, 4.3.3
    • Questions
    • MOODLE_400_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_404_STABLE
    • 76317-questions-improve-import-error-messages-master
    • Hide

      Setup:

      1. create a course
      2. go to the question bank, then import page
      3. check Moodle XML format
      4. use and upload the file stored in the following path /question/format/xml/tests/fixtures/error_invalid_grades.xml

      Current result:

      You have an error message that shows only the value of the invalid grade.

      Expected result:

      You should have an error message that show the value of the invalid grade and the question name.

      The question name must be "Question with invalid grades : x > 1 & x < 2" without formatting. "Invalid grades" must not be bold.

      Show
      Setup: create a course go to the question bank, then import page check Moodle XML format use and upload the file stored in the following path /question/format/xml/tests/fixtures/error_invalid_grades.xml Current result: You have an error message that shows only the value of the invalid grade. Expected result: You should have an error message that show the value of the invalid grade and the question name. The question name must be "Question with invalid grades : x > 1 & x < 2" without formatting. "Invalid grades" must not be bold.

      When trying to import questions with invalid grade fraction, the user gets an exception with only the faulty value.

      This is not always helpful when you have a lot of questions in your import file (eg: you set 33 instead of 33.33333).

      It would be great to show also which question is faulty.

            jboulen Julien Boulen
            jboulen Julien Boulen
            Luca Bösch Luca Bösch
            Ilya Tregubov Ilya Tregubov
            Meirza Meirza
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 36 minutes
                36m

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