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

Use Moodle's Competency subsystem into the badge competencies for OBv2

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Tested by behat.

      QA Test

      Complete the QA test https://tracker.moodle.org/browse/MDLQA-7641

      Manual testing

      Testing scenario 1: Site badge

      1. Add a competency framework (you can download and import it from https://moodle.net/mod/data/view.php?d=12).
      2. Add a site badge
      3. Add a "Competencies" criteria to the site badge. Select 2 competencies for the criteria.
      4. Add the 2 competencies to a course.
      5. Make sure the course competency setting is set to "Competency ratings in this course are updated immediately in learning plans." 
      6. Login as a teacher and go to the "Competencies" page in the course.
      7. Click on one of the competencies
      8. Select the student and one of the competencies
      9. Click the "Rate" button and rate the student as "Competent" for the competency.
      10. Repeat steps 8 and 9 for the other competency.
      11. Login as the student and see they were awarded the badge.

       

      Testing scenario 2: Course badge

      1. Add a competency framework (you can download and import it from https://moodle.net/mod/data/view.php?d=12).
      2. Add the 2 competencies to a course.
      3. Add a badge to the course
      4. Add a "Competencies" criteria to the course badge. Select the 2 competencies for the criteria (you should only see the course competencies to choose from).
      5. Login as a teacher and go to the "Competencies" page in the course.
      6. Change the course competency settings (the cog icon at the top of the competencies page) so that "Rating a competency only updates the competency in this course"
      7. Click on one of the competencies
      8. Select the student and one of the competencies
      9. Click the "Rate" button and rate the student as "Competent" for the competency.
      10. Repeat steps 8 and 9 for the other competency.
      11. Login as the student and see they were awarded the course badge.
      12. Copy the URL to the badge.
      13. Open an incognito tab or another browser session.
      14. Paste the URL of badge that was awarded to the user
      15. Confirm that you can see the badge that was awarded to the user and it indicates the user's name and the competency criteria for the badge.

       Testing scenario 3: Competencies not enabled

      1. Turn the admin setting "Enable competencies" off
      2. Add a site badge
      3. Verify you cannot add competencies as criteria for the site badge

       Testing scenario 4: Competencies turned off

      1. Turn the admin setting "Enable competencies" on
      2. Add a competency framework (you can download and import it from https://moodle.net/mod/data/view.php?d=12).
      3. Add a site badge
      4. Add a "Competencies" criteria to the site badge. Select 2 competencies for the criteria.
      5. Turn the admin setting "Enable competencies" off
      6. View the site badge. Verify each of the competencies displays but should not contain links.
      7. Verify you can delete the badge.

       Testing scenario 5: Trying to delete a competency linked to a badge

      1. Enable competencies.
      2. Go to the competency framework and select one of the competencies that you have set as criteria for the badge.
      3. Attempt to delete the competency.
      4. Confirm that you get an error message that the competency cannot be deleted.

       

      Show
      Tested by behat. QA Test Complete the QA test  https://tracker.moodle.org/browse/MDLQA-7641 Manual testing Testing scenario 1: Site badge Add a competency framework (you can download and import it from https://moodle.net/mod/data/view.php?d=12 ). Add a site badge Add a "Competencies" criteria to the site badge. Select 2 competencies for the criteria. Add the 2 competencies to a course. Make sure the course competency setting is set to "Competency ratings in this course are updated immediately in learning plans."  Login as a teacher and go to the "Competencies" page in the course. Click on one of the competencies Select the student and one of the competencies Click the "Rate" button and rate the student as "Competent" for the competency. Repeat steps 8 and 9 for the other competency. Login as the student and see they were awarded the badge.   Testing scenario 2: Course badge Add a competency framework (you can download and import it from https://moodle.net/mod/data/view.php?d=12 ). Add the 2 competencies to a course. Add a badge to the course Add a "Competencies" criteria to the course badge. Select the 2 competencies for the criteria (you should only see the course competencies to choose from). Login as a teacher and go to the "Competencies" page in the course. Change the course competency settings (the cog icon at the top of the competencies page) so that "Rating a competency only updates the competency in this course" Click on one of the competencies Select the student and one of the competencies Click the "Rate" button and rate the student as "Competent" for the competency. Repeat steps 8 and 9 for the other competency. Login as the student and see they were awarded the course badge. Copy the URL to the badge. Open an incognito tab or another browser session. Paste the URL of badge that was awarded to the user Confirm that you can see the badge that was awarded to the user and it indicates the user's name and the competency criteria for the badge.   Testing scenario 3: Competencies not enabled Turn the admin setting "Enable competencies" off Add a site badge Verify you cannot add competencies as criteria for the site badge   Testing scenario 4: Competencies turned off Turn the admin setting "Enable competencies" on Add a competency framework (you can download and import it from https://moodle.net/mod/data/view.php?d=12 ). Add a site badge Add a "Competencies" criteria to the site badge. Select 2 competencies for the criteria. Turn the admin setting "Enable competencies" off View the site badge. Verify each of the competencies displays but should not contain links. Verify you can delete the badge.   Testing scenario 5: Trying to delete a competency linked to a badge Enable competencies. Go to the competency framework and select one of the competencies that you have set as criteria for the badge. Attempt to delete the competency. Confirm that you get an error message that the competency cannot be deleted.  
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-63876-master

      Description

      During MDL-58454 integration review, Jun has raised this issue: "Probably for future work, just noting for now, but it might be worth looking into trying Moodle's Competency subsystem to badge competencies as well."

      That basically includes:

      • Renaming the new OBv2.0 "Competencies" tab (and all the classes and tables) to Alignments.
      • Add a new criterion based on the Competencies.

        Attachments

        1. badges_competencies1.png
          badges_competencies1.png
          82 kB
        2. CCSS.Math-httpcorestandards.orgMath-20170106_0445-comma_separated.csv
          269 kB
        3. compentencies_proficient.png
          compentencies_proficient.png
          27 kB
        4. competencies_badges1.png
          competencies_badges1.png
          20 kB
        5. competencies_badges2.png
          competencies_badges2.png
          74 kB
        6. manage-badges-competency-deleted.png
          manage-badges-competency-deleted.png
          140 kB
        7. MDL-63876.jpg
          MDL-63876.jpg
          56 kB
        8. MDL-63876.jpg
          MDL-63876.jpg
          56 kB
        9. MDLQA-7641.jpg
          MDLQA-7641.jpg
          54 kB
        10. MDLQA-7641.jpg
          MDLQA-7641.jpg
          54 kB
        11. MDLQA-7641 (2).jpg
          MDLQA-7641 (2).jpg
          44 kB
        12. MDLQA-7641 (2).jpg
          MDLQA-7641 (2).jpg
          44 kB
        13. non-loggedin-user.png
          non-loggedin-user.png
          90 kB
        14. screenshot-1.png
          screenshot-1.png
          20 kB

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  20/May/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 3 days
                  1w 3d