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

MOODLE 3.0: Drop user-course-tagging and replace with normal course-tagging

    XMLWordPrintable

Details

    • MOODLE_30_STABLE
    • MOODLE_30_STABLE
    • wip-MDL-51132-master
    • Hide

      before upgrade:

      1. Enable $CFG->block_tags_showcoursetags
      2. Add block 'Tags' to the course, login as several users and tag the course with different/intersecting tags
      3. search for these tags (Site pages>Tags), make sure the related courses are displayed
      4. upgrade
      5. make sure the block 'Tags' is now disabled sitewide and does not appear in any courses
      6. search tags and make sure the same courses are displayed as before upgrade
      7. as teacher/manager make sure you can edit tags using course Edit settings form
      8. create new role that has capability 'moodle/course/tag' only; assign this role to a user
      9. login as this user, go to the course (you may not be able to access the course, only the info.php page), click on "Course administration > Edit tags"
      10. make sure you can edit tags
      11. make sure the tags are still searchable and the relavant courses are displayed
      Show
      before upgrade: Enable $CFG->block_tags_showcoursetags Add block 'Tags' to the course, login as several users and tag the course with different/intersecting tags search for these tags (Site pages>Tags), make sure the related courses are displayed upgrade make sure the block 'Tags' is now disabled sitewide and does not appear in any courses search tags and make sure the same courses are displayed as before upgrade as teacher/manager make sure you can edit tags using course Edit settings form create new role that has capability 'moodle/course/tag' only; assign this role to a user login as this user, go to the course (you may not be able to access the course, only the info.php page), click on "Course administration > Edit tags" make sure you can edit tags make sure the tags are still searchable and the relavant courses are displayed

    Description

      There is a non obvious possibility in Moodle allowing users to tag courses. There are so many bugs there (and no bug reports) that I doubt anybody uses it. However it prevents us from using normal course tagging.

      This issue suggests:

      • remove all "coursetags" functionality such as block setting ($CFG->block_tags_showcoursetags), pages to add/edit "my" course tags
      • during upgrade automatically convert all existing course tags into proper user-less tags
      • add a field in course edit form that will allow teacher/manager to set or change course tags similar as one can set user interests, blog tags, question tags, wiki pages tags, etc.
      • everybody will still be able to search for tagged courses using /tag/search.php

      API changes:
      Going to delete/deprecate quite a few of things including

      • drop capability 'moodle/tag:create'

      forum post: https://moodle.org/mod/forum/discuss.php?d=318395

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              marina Marina Glancy
              Damyon Wiese Damyon Wiese
              Dan Poltawski Dan Poltawski
              John Okely John Okely
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona), David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                16/Nov/15