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

Deleting frameworks should delete associated data

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.1
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
    • Testing Instructions:
      Hide
      • Create a framework
      • create some competencies with children
      • add some related competencies
      • link this competency or one of its children to a course
      • Now go to the framework list page and try to delete this framework you will get an error message "The Framework X can not be delete"
      • unlink the competency from the course
      • Now check that you can delete the framework
      • Create a framework
      • create some competencies with children
      • add some related competencies
      • link this competency or one of its children to a template
      • Now go to the framework list page and try to delete this framework you will get an error message "The Framework X can not be delete"
      • unlink the competency from the template
      • Now check that you can delete the framework
      • Create a framework
      • create some competencies with children
      • add some related competencies
      • link this competency or one of its children to a plan
      • Now go to the framework list page and try to delete this framework you will get an error message "The Framework X can not be delete"
      • remove the competency from the plan
      • Now check that you can delete the framework
      • Create a framework
      • create some competencies 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 list page and try to delete this framework you will get an error message "The Framework 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 framework

      Run the unit test:

      mdk phpunit -r -s tool_lp_testsuite
      

      Show
      Create a framework create some competencies with children add some related competencies link this competency or one of its children to a course Now go to the framework list page and try to delete this framework you will get an error message "The Framework X can not be delete" unlink the competency from the course Now check that you can delete the framework Create a framework create some competencies with children add some related competencies link this competency or one of its children to a template Now go to the framework list page and try to delete this framework you will get an error message "The Framework X can not be delete" unlink the competency from the template Now check that you can delete the framework Create a framework create some competencies with children add some related competencies link this competency or one of its children to a plan Now go to the framework list page and try to delete this framework you will get an error message "The Framework X can not be delete" remove the competency from the plan Now check that you can delete the framework Create a framework create some competencies 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 list page and try to delete this framework you will get an error message "The Framework 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 framework Run the unit test: mdk phpunit -r -s tool_lp_testsuite
    • Affected Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-51130_master
    • Story Points:
      1
    • Sprint:
      CBE Sprint 4, CBE Sprint 5

      Description

      Currently deleting a framework leaves orphan competencies behind.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: