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

Add ability to duplicate a competency framework

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
    • Testing Instructions:
      Hide
      • login with user with managecompetency capability
      • create a framework
      • add some competencies to the framework
      • add some related competencies
      • in the competency frameworks page click on Edit->Duplicate of the framework recently added
      • check that the duplicated framework has the prefix (copy) in the shortname and the prefix _1 in the idnumber
      • check that the duplicated framework has the same competencies of the old one
      • check that the related competencies in the duplicated framework has the same in the old one
      • run unittest
      Show
      login with user with managecompetency capability create a framework add some competencies to the framework add some related competencies in the competency frameworks page click on Edit->Duplicate of the framework recently added check that the duplicated framework has the prefix (copy) in the shortname and the prefix _1 in the idnumber check that the duplicated framework has the same competencies of the old one check that the related competencies in the duplicated framework has the same in the old one run unittest
    • Affected Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-51602_master
    • Story Points:
      5
    • Sprint:
      CBE Sprint 0

      Description

      The docs say "A competency framework can be duplicated," but currently this behaviour does not exist.

      A framework can be duplicated. When duplicating a framework all the competencies linked must be duplicated as well. However, the new framework and competencies must not be linked to any course or template. The idnumber of the new framework will be updated following the same process than the one used for updating course shortnames upon restore, basically adding n where n is the first unique number found. See restore_dbops::calculate_course_names().

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: