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

Restore feedback responses deleted in upgrade script in March 2017 (Moodle 3.1.6, 3.2.3)

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.1.8, 3.2.5, 3.3.2
    • None
    • Feedback
    • MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE

    Description

      MDL-58227 introduced upgrade script that was executed when upgrading to 3.1.6 and 3.2.3 , it was supposed to remove duplicate feedback submissions but accidentally removed valid anonymous completions

      MDL-60366 fixed this upgrade srcript (3.1.9, 3.2.6, 3.3.3) but if the sites were upgraded between these releases they have data loss.

      We can restore almost all information about completion from other database tables but there are some situations when we can "restore too much" so I am not confident to include this script as part of unconditional upgrade.

      This is a suggestion to create a CLI script that would allow to restore missed data and also allow to restore it partially (only in selected feedbacks), specify whether to use or not use log table, etc.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              marina Marina Glancy
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: