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

A way for question export formats to report errors during export

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.5
    • DEV backlog
    • Questions
    • MOODLE_25_STABLE

    Description

      This is something that got screwed up as part of the conversion to the new file API in 2.0.

      In Moodle 1.x we used to write the export file to a temporary folder while outputting a HTML page with warning messages. Then we would trigger the download of the temporary file.

      Now, we have to generate the export file as it is being downloaded. Therefore, we have no channel to use for errors.

      It is not easy to go back to the old way of doing things while still using the file API. The only option would be to run through the expoort process twice. Once to generat the warnings as part of the question/export.php script and display them; and a second time when the export files is being downloaded. That is not good for performance

      So, we need to find some way to communicate problems (like unsupported question types) to the user during or after export, without greatly increasing the amount of processing that is done.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              timhunt Tim Hunt
              Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: