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

Remove course-sharing functionality

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6.6, 3.7.2, 3.8
    • Fix Version/s: 3.6.6, 3.7.2
    • Component/s: Hub
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull from Repository:
    • Pull 3.6 Branch:
      MDL-66072-36-3
    • Pull 3.7 Branch:
      MDL-66072-37-2
    • Pull Master Branch:
      MDL-66072-master-3

      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. git range-diff.pdf
          35 kB
        2. MDL-66072_01.png
          MDL-66072_01.png
          130 kB
        3. MDL-66072_02.png
          MDL-66072_02.png
          215 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  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