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

Properly delete a competency

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.2
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
    • Testing Instructions:
      Hide
      • create a competency with children
      • add some related competencies
      • link this competency or one of its children to a course
      • Now go to the framework competency page and try to delete this competency you will get an error message "The competency X can not be delete"
      • unlink the competency from the course
      • Now check that you can delete the competency and check if children and the relations are also deleted
      • create a competency with children
      • add some related competencies
      • link this competency or one of its children to a template
      • Now go to the framework competency page and try to delete this competency you will get an error message "The competency X can not be delete"
      • unlink the competency from the template
      • Now check that you can delete the competency and check if children and the relations are also deleted
      • create a competency with children
      • add some related competencies
      • link this competency or one of its children to a plan
      • Now go to the framework competency page and try to delete this competency you will get an error message "The competency X can not be delete"
      • remove the competency from the plan
      • Now check that you can delete the competency and check if children and the relations are also deleted
      • create a competency with children
      • add some related competencies
      • link this competency or one of its children to a plan
      • add evidence of prior learning
      • Now go to the framework competency page and try to delete this competency you will get an error message "The competency X can not be delete"
      • remove the competency from the plan
      • delete the evidence (and probably from database manually)
      • Now check that you can delete the competency and check if children and the relations are also deleted

      Run the unit test:

      mdk phpunit -r -s tool_lp_testsuite
      

      Show
      create a competency with children add some related competencies link this competency or one of its children to a course Now go to the framework competency page and try to delete this competency you will get an error message "The competency X can not be delete" unlink the competency from the course Now check that you can delete the competency and check if children and the relations are also deleted create a competency with children add some related competencies link this competency or one of its children to a template Now go to the framework competency page and try to delete this competency you will get an error message "The competency X can not be delete" unlink the competency from the template Now check that you can delete the competency and check if children and the relations are also deleted create a competency with children add some related competencies link this competency or one of its children to a plan Now go to the framework competency page and try to delete this competency you will get an error message "The competency X can not be delete" remove the competency from the plan Now check that you can delete the competency and check if children and the relations are also deleted create a competency with children add some related competencies link this competency or one of its children to a plan add evidence of prior learning Now go to the framework competency page and try to delete this competency you will get an error message "The competency X can not be delete" remove the competency from the plan delete the evidence (and probably from database manually) Now check that you can delete the competency and check if children and the relations are also deleted Run the unit test: mdk phpunit -r -s tool_lp_testsuite
    • Affected Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-51513_master
    • Story Points:
      2
    • Sprint:
      CBE Sprint 4, CBE Sprint 5

      Description

      When doing task MDL-51130, we realized that we had to first properly complete the deletion of competency before working on deleting the entire framework.

      The tech spec are, at the moment, not completed and must be before starting the development. See some possible spec scenarios in the comments of MDL-51130.

      To be determined: can we allow the deletion of competencies when some students are already marked as proficient in those? We could ask a user to confirm, or create a special permission for deletion of such competencies.

      Note: competency::delete() removes the course competencies, that shouldn't be done there.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: