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

Remove course-sharing functionality

    XMLWordPrintable

Details

    • MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_36_STABLE, MOODLE_37_STABLE
    • MDL-66072-master-3
    • Hide

      Confirm all behat/unit tests execute fine. 

      Prerequisites

      1. A course with some content in it.
      2. DB access required.

      Before patch is applied

      1. Install a moodle site
      2. Enable course sharing(enablecoursepublishing in Site Administration) - For master and 37

      After patch

      For master and 37

      1. As an admin, go to the course created.
      2. Open the 'Course Administration' menu
      3. Confirm you do not see a 'Share' link in the menu.
      4. Go to 'Site Administration' -> 'Advanced features'
      5. Confirm you cannot see the checkbox 'Course sharing on Moodle.net'(enablecoursepublishing)
      6. Confirm you do not see the config 'enablecoursepublishing' in the config table

        SELECT *
        FROM mdl_config
        WHERE name = 'enablecoursepublishing'

      7. Confirm you do not see the moodle/course:publish, moodle/backup:backuptargethub and moodle/restore:restoretargethub capabilities in the capabilities table

        SELECT *
        FROM mdl_capabilities
        WHERE name IN ('moodle/course:publish', 'moodle/backup:backuptargethub',
            'moodle/restore:restoretargethub')

      8. Try to assign capabilities to roles by going to Site administration > Users > Permissions > Define roles, clicking the edit icon opposite the teacher role and searching for the previously mentioned capabilities. Confirm the previously mentioned capabilities cannot be found.
      9. Confirm you can still register your site (go to Site Administration -> Registration)

      For 36

      1. As an admin, go to the course created.
      2. Open the 'Course Administration' menu
      3. Confirm you do not see a 'Share' link in the menu.
      4. Go to 'Site Administration' -> 'Advanced features'
      5. Confirm you do not see the moodle/course:publish, moodle/backup:backuptargethub and moodle/restore:restoretargethub capabilities in the capabilities table

        SELECT *
        FROM mdl_capabilities
        WHERE name IN ('moodle/course:publish', 'moodle/backup:backuptargethub',
            'moodle/restore:restoretargethub')

      6. Try to assign capabilities to roles by going to Site administration > Users > Permissions > Define roles, clicking the edit icon opposite the teacher role and searching for the previously mentioned capabilities. Confirm the previously mentioned capabilities cannot be found.
      7. Confirm you can still register your site (go to Site Administration -> Registration)

      Automated testing

      1. Confirm all automated tests pass.
      Show
      Confirm all behat/unit tests execute fine.  Prerequisites A course with some content in it. DB access required. Before patch is applied Install a moodle site Enable course sharing(enablecoursepublishing in Site Administration) - For master and 37 After patch For master and 37 As an admin, go to the course created. Open the 'Course Administration' menu Confirm you do not see a 'Share' link in the menu. Go to 'Site Administration' -> 'Advanced features' Confirm  you cannot see the checkbox 'Course sharing on Moodle.net'(enablecoursepublishing) Confirm you do not see the config 'enablecoursepublishing' in the config table SELECT * FROM mdl_config WHERE name = 'enablecoursepublishing' Confirm you do not see the moodle/course:publish, moodle/backup:backuptargethub and moodle/restore:restoretargethub capabilities in the capabilities table SELECT * FROM mdl_capabilities WHERE name IN ('moodle/course:publish', 'moodle/backup:backuptargethub', 'moodle/restore:restoretargethub') Try to assign capabilities to roles by going to Site administration > Users > Permissions > Define roles, clicking the edit icon opposite the teacher role and searching for the previously mentioned capabilities.  Confirm  the previously mentioned capabilities cannot be found. Confirm you can still register your site (go to Site Administration -> Registration ) For 36 As an admin, go to the course created. Open the 'Course Administration' menu Confirm you do not see a 'Share' link in the menu. Go to 'Site Administration' -> 'Advanced features' Confirm you do not see the moodle/course:publish, moodle/backup:backuptargethub and moodle/restore:restoretargethub capabilities in the capabilities table SELECT * FROM mdl_capabilities WHERE name IN ('moodle/course:publish', 'moodle/backup:backuptargethub', 'moodle/restore:restoretargethub') Try to assign capabilities to roles by going to Site administration > Users > Permissions > Define roles, clicking the edit icon opposite the teacher role and searching for the previously mentioned capabilities.  Confirm  the previously mentioned capabilities cannot be found. Confirm you can still register your site (go to Site Administration -> Registration ) Automated testing Confirm all automated tests pass.

    Description

      Course sharing on Moodle.net will no longer be possible in Moodle 3.8, so the functionality needs to be removed.

      The functionality includes:

      • Capabilities moodle/course:publish, moodle/backup:backuptargethub and moodle/restore:restoretargethub
      • Course sharing switch in Advanced features in the Site administration.

      Attachments

        1. MDL-66072_02.png
          MDL-66072_02.png
          215 kB
        2. MDL-66072_01.png
          MDL-66072_01.png
          130 kB
        3. git range-diff.pdf
          35 kB

        Issue Links

          Activity

            People

              peterdias Peter Dias
              tsala Helen Foster
              David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Jennifer Bauzon Jennifer Bauzon
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Sep/19

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 52 minutes
                  2d 52m