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

Process for deprecating a capability

    XMLWordPrintable

Details

    • MOODLE_32_STABLE, MOODLE_400_STABLE
    • MOODLE_401_STABLE
    • MDL-55580_master
    • Hide

      Covered by phpunit tests

      This amends has a small impact on performance that can be we can tested by using:

      ./vendor/phpunit/phpunit/phpunit --filter accesslib_test::test_permission_evaluation --repeat 3

      Show
      Covered by phpunit tests This amends has a small impact on performance that can be we can tested by using: ./vendor/phpunit/phpunit/phpunit --filter accesslib_test::test_permission_evaluation --repeat 3
    • 3
    • Moppies Moodle 3.8 Sprint 1, Moppies Moodle 3.8 Sprint 2, Moppies Moodle 3.8 Sprint 3, 4.0 holding pattern 9, 4.0 holding pattern 10, 4.0 holding pattern 11, 4.0 holding pattern 12, Moppies Kanban, Old Moppies Kanban Board

    Description

      Sometimes we need to

      • remove capability that is no longer used (MDL-37479)
      • rename capability, for example mod/wiki:viewpage -> mod/wiki:view (MDL-55554), mod/forum:viewdiscussion -> mod/forum:view (MDL-55555)
      • combine two capabilities in one (MDL-51630)
      • and so on

      We need to make sure that 3rd party plugins checking this capability receive correct result together with debugging message. If we just remove capability has_capability() will return false.

      Attachments

        Issue Links

          Activity

            People

              marxjohnson Mark Johnson
              marina Marina Glancy
              Simon Adams Simon Adams
              Shamim Rezaie Shamim Rezaie
              CiBoT CiBoT
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                28/Nov/22

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 days, 3 hours, 1 minute
                  4d 3h 1m