Uploaded image for project: 'Moodle'

Remove Assignment 2.2 (mod_assignment) from core

Icon: Improvement

  • Resolution: Fixed
  • Fix Version/s: 4.2
  • Affects Version/s: 4.0 , 4.2
  • Component/s: Assignment (2.2)
  • hqteam_hedgehog
  • release_notes
  • Affected Branches: MOODLE_400_STABLE, MOODLE_402_STABLE
  • Fixed Branches: MOODLE_402_STABLE
  • Epic Link: Remove support to 1.9 backups
  • Pull from Repository: https://github.com/stevandoMoodle/moodle.git
  • Pull Main Branch: MDL-72350 -master
  • Pull Main Diff URL: https://github.com/stevandoMoodle/moodle/compare/f7a8df253b...MDL-72350-master

The following steps should be run on a Moodle site without the patch.

  • Login as admin
  • Go to Site admin > Plugins > Plugins overview and search for "Assignment 2.2 (Disabled)"
  • Verify that you see 2 results.
* from mdl_assignment;
* from mdl_config_plugins where plugin = 'mod_assignment';
INTO mdl_assignment (name, intro) VALUES ('Assginment 2.2', 'Assignment 2.2 intro');
  • Apply the patch and run the site upgrade.
  • Verify that you cannot continue the site upgrade due the environment check being failed with Assignment 2.2 is in use .

Test scenario for upgrade

  • Stand up a fresh site from master branch
  • Apply the patch
  • Perform the upgrade
  • Login as an admin
  • Go to "Site administration > Plugins > Plugins overview".
  • Verify  there is no longer a mention of 'Assignment 2.2'.

Test scenario for fresh install

  • Create a new freshly install site
  • Verify that there is no longer a mention of 'Assignment 2.2' in Site admin > Plugins > Plugins overview

Test scenario for backup and restore (Post mod_assginment removal)

  • Access to "Site administration > Courses > Restore course".
  • Restore as a new course
  • Verify that you see an error saying "Invalid get_string() identifier: 'pluginname' or component 'assignment'. Perhaps you are missing $string ['pluginname'] = ''; in mod/assignment/lang/en/assignment.php?"
  • Finish the restore process as a new course
  • Access to the restored course.
  • Verify that the "Preparation" section has only 2 activities ("Assignment 2: Join our discussion forum" and "Assignment 3: Give your vote"). The assignment activities "Assignment 1: Create your personal profile" and "Assignment 4: Create and submit a paper" shouldn't be created.

Test scenario for backup and restore (Reinstall the mod_assignment)

  • Get the mod_assignment plugin from here
  • Put all the plugin files in mod/assignment
  • Run the the site upgrade
  • Follow the steps from Test scenario for backup and restore (Post mod_assginment removal)
  • Verify that you don't see any errors and you should also see what you did not see in step 8 in Test scenario for backup and restore (Post mod_assginment removal)
  • Story Points: 6
  • Sprint: Team Hedgehog Sprint 1.2, Team Hedgehog Sprint 1.3, Team Hedgehog Sprint 1 review, Team Hedgehog Sprint 2.1, Team Hedgehog Sprint 2.2, Team Hedgehog 2023 Sprint 1.3

Description

The Assignment 2.2 activity module has been disabled by default since 2012 but was kept to enable pre-2.2 backups to be restored and have the assignments auto-converted to new assignments.

Let's remove it from Moodle 4.2 and add it to the git repository for anyone who still needs to restore pre-2.2 backups.

Link to the plugin: https://github.com/moodlehq/moodle-mod_assignment

Attachments

  • Sort By Name
  • Sort By Date
  • Download All

(I) 3 Passed -- (Master)MDL-72350.png

  • mootieuk12.mbz 198 kB 20/Sep/21 5:37 PM

Issue Links

Bug - A problem which impairs or prevents Moodle from functioning correctly.

Time Tracking

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

Documentation

Assignment activity.

  • Managing activities
  • BigBlueButton
  • External tool

What is the Assignment activity?

Assignments allow students to submit work to their teacher for grading. The work may be text typed online or uploaded files of any type the teacher’s device can read. Grading may be by simple percentages or custom scales, or more complex rubrics may be used. Students may submit as individuals or in groups.

--> Continue Dismiss