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

Write upgrade code to replace course overview with my overview

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: General
    • Labels:
    • Testing Instructions:
      Hide
      Test 1
      1. Add an instance of the 'Course overview' block to your Dashboard.
      2. Remove the 'blocks/course_overview' folder.
      3. Checkout this branch.
      4. Run the upgrade.
      5. Ensure the 'Course overview' block has been removed from your dashboard.
      6. Ensure the 'My overview' block is added to your dashboard.
      Test 2
      1. Add an instance of the 'Course overview' block to your Dashboard.
      2. Checkout this branch.
      3. Run the upgrade code added in this issue.
      4. Ensure the 'Course overview' block has not been removed from your dashboard.
      5. Ensure the 'My overview' block is not added to your dashboard.
      Show
      Test 1 Add an instance of the 'Course overview' block to your Dashboard. Remove the 'blocks/course_overview' folder. Checkout this branch. Run the upgrade. Ensure the 'Course overview' block has been removed from your dashboard. Ensure the 'My overview' block is added to your dashboard. Test 2 Add an instance of the 'Course overview' block to your Dashboard. Checkout this branch. Run the upgrade code added in this issue. Ensure the 'Course overview' block has not been removed from your dashboard. Ensure the 'My overview' block is not added to your dashboard.
    • Affected Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57437_master

      Description

      1. If the block_course_overview block is installed then do nothing.
      2. If the block_course_overview block is not installed then replace occurrences of it with block_myoverview.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markn Mark Nelson
              Reporter:
              markn Mark Nelson
              Peer reviewer:
              Frédéric Massart
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: