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

Decide when to delete gradebook data...

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Backup, Gradebook
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      While playing with restore I've deteted that gradebook is deleted from delete_course() but it's left without change by remove_course_contents(), that is used when restoring to a existing course.

      Because of this some gradebook pieces aren't restored properly (course_outcomes...). I'm going to prevent duplicates in restore of outcomes right now (MDL-13301) but...

      the question is... where is the correct place to delete those gradebook parts? Perhaps some of them should happen when removing contents and others when removing course completely. Is split necessary? Or is it safe to move de deletion to remove_course_contents() ?

      Just exposing the problem... ciao

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08