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

H5P activities not searchable by global search

    XMLWordPrintable

Details

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • MDL-74258-311
    • MDL-74258-master
    • Hide

      Setup

      1. Add two new courses, Course1 and Course2
      2. In Course1 add three activities:
      3. Forum: With the name "Test forum search"
      4. Assing: With the name "Test assign search"
      5. H5P activity: With the name "Test h5p search"
      6. In Course 2 add two activities:
      7. Forum: With the name "Test forum search"
      8. H5P activity: With the name "Test h5p global search"
      9. Navigate to Site admin -> Advanced features
      10. Enable global search
      11. Navigate to Site admin -> Plugins -> Search
      12. Under 'Manage global search' in the Site administration and make sure the search engine is set to 'Simple search'.
      13. Under 'Search areas' in the Site administration and click the button 'Update indexed contents'.

      Test

      1. Log in as admin.
      2. In the search box (at the top of any page), type "search" and press enter.
        1. Confirm you could see the new 5 activities are listed in the search results.
      3. Go back to the search areas (in the filter section) and confirm you could see "H5P - activity information" in the dropdown.
      4. Now, choose "H5P - activity information" in the search areas.
        1. Confirm you only see the 2 h5p activities are listed in the search results.
      5. Click on each of these results and confirm you go to the activity.
      6. Go back to search areas and delete the value of the search area.
      7. Go to the Search and change the valuer for "Test h5p global search".
        1. Confirm you only see one result listed and you could go to the activity.
      Show
      Setup Add two new courses, Course1 and Course2 In Course1 add three activities: Forum: With the name "Test forum search" Assing: With the name "Test assign search" H5P activity: With the name "Test h5p search" In Course 2 add two activities: Forum: With the name "Test forum search" H5P activity: With the name "Test h5p global search" Navigate to Site admin -> Advanced features Enable global search Navigate to Site admin -> Plugins -> Search Under 'Manage global search' in the Site administration and make sure the search engine is set to 'Simple search'. Under 'Search areas' in the Site administration and click the button 'Update indexed contents'. Test Log in as admin. In the search box (at the top of any page), type "search" and press enter. Confirm you could see the new 5 activities are listed in the search results. Go back to the search areas (in the filter section) and confirm you could see "H5P - activity information" in the dropdown. Now, choose "H5P - activity information" in the search areas. Confirm you only see the 2 h5p activities are listed in the search results. Click on each of these results and confirm you go to the activity. Go back to search areas and delete the value of the search area. Go to the Search and change the valuer for "Test h5p global search". Confirm you only see one result listed and you could go to the activity.
    • Moppies Kanban

    Description

      If you enable global search and navigate to admin/searchareas.php you will see bunch of activity types listed. But you won't see H5P there. It seems that h5p misses some classes like mod/assign/classes/search/activity.php

      Attachments

        Issue Links

          Activity

            People

              cescobedo Carlos Escobedo
              ilyatregubov Ilya Tregubov
              Amaia Anabitarte Amaia Anabitarte
              Andrew Lyons Andrew Lyons
              Gladys Basiana Gladys Basiana
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/May/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 45 minutes
                  2h 45m