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

Remove community finder block

XMLWordPrintable

    • MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_36_STABLE, MOODLE_37_STABLE
    • MDL-66120-master
    • Hide

      Prerequisites

      1. DB access required.
      2. Able to perform before patch and after patch steps.

      Before patch

      1. Install a moodle site
      2. Add community finder block to the site admin page (Site Admin -> Blocks editing ON -> Add a block -> Community finder).

      After patch

      For master
      1. As an admin, go to the 'Site administration' page. Upgrade will happen.
      2. Confirm you do not see the community finder block anymore.
      3. Confirm the community block entry is removed from the block table in the DB (no records)

        SELECT *
        FROM mdl_block
        WHERE name = 'community'

      4. Confirm you do not see the moodle/community:add, moodle/community:download , block/community:addinstance and block/community:myaddinstance capabilities in the capabilities table

        SELECT *
        FROM mdl_capabilities
        WHERE name IN ('moodle/community:add', 'moodle/community:download',
            'block/community:addinstance', 'block/community:myaddinstance')

      5. 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.
      For stables
      1. As an admin, go to the 'Site administration' page. Upgrade will happen.
      2. Confirm you still see the community finder block.
      3. Confirm you see the message You are trying to access functionality that has been removed. in the block's content

        Automated testing

      1. That's all. Automated testing will detect any other regression.
      Show
      Prerequisites DB access required. Able to perform before patch and after patch steps. Before patch Install a moodle site Add community finder block to the site admin page (Site Admin -> Blocks editing ON -> Add a block -> Community finder). After patch For master As an admin, go to the 'Site administration' page. Upgrade will happen. Confirm you do not see the community finder block anymore. Confirm the community block entry is removed from the block table in the DB (no records) SELECT * FROM mdl_block WHERE name = 'community' Confirm you do not see the moodle/community:add, moodle/community:download , block/community:addinstance and block/community:myaddinstance capabilities in the capabilities table SELECT * FROM mdl_capabilities WHERE name IN ('moodle/community:add', 'moodle/community:download', 'block/community:addinstance', 'block/community:myaddinstance') 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. For stables As an admin, go to the 'Site administration' page. Upgrade will happen. Confirm you still see the community finder block. Confirm you see the message You are trying to access functionality that has been removed. in the block's content Automated testing That's all. Automated testing will detect any other regression.

      When moodle.net is closed down in September 2019, the community finder block will no longer be needed.

      In addition to the community finder block, the capabilities moodle/community:add, moodle/community:download and block/community:addinstance should be removed.

      It would be good to remove the block plus caps in 3.7.2, 3.6.6 as well as in 3.8.

            peterdias Peter Dias
            tsala Helen Foster
            David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Jennifer Bauzon Jennifer Bauzon
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours, 38 minutes
                1d 2h 38m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.