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

Introduce tag collections and tag callbacks (Tag API overhaul)

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Add tags to some users and courses (through edit form), create blog posts
      2. Go to Appearance > Manage tags
      3. Create new tag collections
      4. Move some tag areas into the new tag collections
      5. Go to Site pages > Tags
      6. Make sure the search works with different collections
      7. Add block "Tags" to the course
      8. Tag some questions and wiki pages in this course
      9. Make sure you can specify the context to search in the settings of the block. Note that neither questions nor wiki have callback yet to display on the tagindex page so this test is only for block display
      10. Add blog_tags block, make sure it works
      11. On /tag/index.php page add instances of youtube and flickr blocks, make sure they work
      12. Inside one course tag everything that can be tagged (enrol users with interests, tag the course itself, create wiki pages with tags, questions with tags, blog posts with tags)
      13. Backup this course with user data
      14. Restore it on the same site and on different site, make sure all tags are still there
      15. Tag more than 5 courses with the same tag and at least one user or blog post
      16. Go to Site pages > Tags, find and view this tag
      17. Make sure you can navigate through the list of courses and/or view only courses
      18. Edit tag, set related tags, make sure they are displayed properly
      19. set more than 10 related tags, make sure the "more" link appears and the rest of the tags can be toggled on/off
      20. Do something else, try to break it
      21. Pick this commit, make sure forum posts tags work. Uncomment some lines in mod/forum/db/tags.php, bump mod/forum/version.php and run upgrade, make sure tags are now separated and the actual tags duplicated into a new collection (on "Manage tags" page)

      Note, the wiki pages and questions can be tagged but there are no callbacks yet to display them in tagindex. See MDL-25742 and MDL-28308

      Show
      Add tags to some users and courses (through edit form), create blog posts Go to Appearance > Manage tags Create new tag collections Move some tag areas into the new tag collections Go to Site pages > Tags Make sure the search works with different collections Add block "Tags" to the course Tag some questions and wiki pages in this course Make sure you can specify the context to search in the settings of the block. Note that neither questions nor wiki have callback yet to display on the tagindex page so this test is only for block display Add blog_tags block, make sure it works On /tag/index.php page add instances of youtube and flickr blocks, make sure they work Inside one course tag everything that can be tagged (enrol users with interests, tag the course itself, create wiki pages with tags, questions with tags, blog posts with tags) Backup this course with user data Restore it on the same site and on different site, make sure all tags are still there Tag more than 5 courses with the same tag and at least one user or blog post Go to Site pages > Tags, find and view this tag Make sure you can navigate through the list of courses and/or view only courses Edit tag, set related tags, make sure they are displayed properly set more than 10 related tags, make sure the "more" link appears and the rest of the tags can be toggled on/off Do something else, try to break it Pick this commit , make sure forum posts tags work. Uncomment some lines in mod/forum/db/tags.php, bump mod/forum/version.php and run upgrade, make sure tags are now separated and the actual tags duplicated into a new collection (on "Manage tags" page) Note, the wiki pages and questions can be tagged but there are no callbacks yet to display them in tagindex. See MDL-25742 and MDL-28308
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      wip-MDL-50851-master

      Description

      Sometimes plugin developers (or even core, such as competencies) want to have their own set of tags that is not mixed with users, posts, courses, wikis, etc.

      This issue introduces tag collections. This will allow to separate the sets of tags used in different areas. Tag collections can be created programmatically and locked or created by admin/manager

      https://docs.moodle.org/dev/Tag_API_3_Specification

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                18 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  23/May/16