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

Create a new 'contentbank' plugin type and a new H5P plugin in the content bank

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Note: Test both in 'boost' and 'classic' themes.

      Prerequisites

      1. Create a course and enrol a teacher.

      Test

      1. As an admin go to "Content bank" in the navigation block (for classic theme) or drawer (for boost theme).
      2. Confirm there is an Upload button on the right side of the page.
      3. Click on the Upload button.
      4. Upload "filltheblanks.h5p" file and 'Save changes'.
      5. Confirm the "filltheblanks.h5p" element is shown with text truncated and H5P icon.
      6. Confirm the whole "filltheblanks.h5p" name is shown when you hover the element.
      7. Click on "filltheblanks.h5p" element.
      8. Confirm the H5P content is rendered with no errors.
      9. Click on 'Content bank' link in the breadcrumbs.
      10. Click on Upload button.
      11. Try to upload 'image.jpg' file and Save changes.
      12. Confirm there is an error: "Image (JPEG) filetype cannot be accepted".
      13. Click on Cancel.
      14. Confirm no element has been created for 'image.jpg'.
      15. Go to Site administration > Plugins > Content bank > Manage content bank content types.
      16. Click on "Enable" icon for H5P content bank.
      17. Go to "Content bank" in the navigation block (for classic theme) or drawer (for boost theme).
      18. Confirm there is no element shown in the content bank.
      19. Go to Site administration > Plugins > Content bank > Manage content bank content types.
      20. Click on "Enable" icon for H5P content bank.
      21. Go to a course where a teacher is enrolled.
      22. Go to "Content bank" in the navigation block (for classic theme) or drawer (for boost theme).
      23. Confirm the content bank is empty.
      24. Click on the Upload button.
      25. Upload "accordion.h5p" file and 'Save changes'.
      26. Confirm the "accordion.h5p" element is shown.
      27. Log out as admin.
      28. Log in as a teacher
      29. Go to the course where the user is enrolled as Teacher.
      30. Confirm the "accordion.h5p" element is shown.
      31. Click on the Upload button.
      32. Upload "filltheblanks.h5p" file and 'Save changes'.
      33. Confirm the "filltheblanks.h5p" element is shown with text truncated and H5P icon.
      34. Confirm the "accordion.h5p" is still there.
      Show
      Note: Test both in 'boost' and 'classic' themes. Prerequisites Create a course and enrol a teacher. Test As an admin go to "Content bank" in the navigation block (for classic theme) or drawer (for boost theme). Confirm there is an Upload button on the right side of the page. Click on the Upload button. Upload "filltheblanks.h5p" file and 'Save changes'. Confirm the "filltheblanks.h5p" element is shown with text truncated and H5P icon. Confirm the whole "filltheblanks.h5p" name is shown when you hover the element. Click on "filltheblanks.h5p" element. Confirm the H5P content is rendered with no errors. Click on 'Content bank' link in the breadcrumbs. Click on Upload button. Try to upload 'image.jpg' file and Save changes. Confirm there is an error: "Image (JPEG) filetype cannot be accepted" . Click on Cancel. Confirm no element has been created for 'image.jpg'. Go to Site administration > Plugins > Content bank > Manage content bank content types. Click on "Enable" icon for H5P content bank. Go to "Content bank" in the navigation block (for classic theme) or drawer (for boost theme). Confirm there is no element shown in the content bank. Go to Site administration > Plugins > Content bank > Manage content bank content types. Click on "Enable" icon for H5P content bank. Go to a course where a teacher is enrolled. Go to "Content bank" in the navigation block (for classic theme) or drawer (for boost theme). Confirm the content bank is empty. Click on the Upload button. Upload "accordion.h5p" file and 'Save changes'. Confirm the "accordion.h5p" element is shown. Log out as admin. Log in as a teacher Go to the course where the user is enrolled as Teacher. Confirm the "accordion.h5p" element is shown. Click on the Upload button. Upload "filltheblanks.h5p" file and 'Save changes'. Confirm the "filltheblanks.h5p" element is shown with text truncated and H5P icon. Confirm the "accordion.h5p" is still there.
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-67786-master

      Description

      As an instructional designer
      I want to have a shared content bank
      So that I can share content with other users in the site

      As an instructional designer
      I want to be able to upload H5P fils to the content bank
      So that I can share content with other users in the site

       Acceptance criteria:

      • Be able to upload some H5P content that everybody with proper permission can see.
      • Be able to implement plugins that would manage some other content type and share with other users.

      List of tasks:

      • Create new 'contentbank' plugin type
      • Create DB tables as needed for the content bank
      • Create generic capabilities for the Content Bank
      • Implement a null privacy provider for now
      • Create a new view page
      • Create a new H5P 'contentbank' plugin
      • Adapt or create DB tables as needed for the plugin
      • Create capabilities for the H5P plugin.
      • Implement a null privacy provider for the plugin
      • Implement the option to upload H5P content to content bank
      • Add new PHP Unit tests
      • Add behat tests or create a new issue to add them

        Attachments

        1. image.jpg
          image.jpg
          15 kB
        2. filltheblanks.h5p
          699 kB
        3. image-2020-02-14-15-38-36-739.png
          image-2020-02-14-15-38-36-739.png
          41 kB
        4. Screenshot 2020-02-18 at 09.43.38.png
          Screenshot 2020-02-18 at 09.43.38.png
          50 kB
        5. Screenshot 2020-02-18 at 09.52.29.png
          Screenshot 2020-02-18 at 09.52.29.png
          53 kB
        6. Screenshot 2020-02-18 at 10.00.01.png
          Screenshot 2020-02-18 at 10.00.01.png
          53 kB
        7. course image setting.png
          course image setting.png
          30 kB
        8. image-2020-02-18-18-51-52-646.png
          image-2020-02-18-18-51-52-646.png
          56 kB
        9. accordion.h5p
          530 kB
        10. boost1.png
          boost1.png
          67 kB
        11. boost2.png
          boost2.png
          41 kB
        12. classic1.png
          classic1.png
          73 kB
        13. classic2.png
          classic2.png
          27 kB

          Issue Links

            Activity

              People

              Assignee:
              amaia Amaia Anabitarte
              Reporter:
              amaia Amaia Anabitarte
              Peer reviewer:
              Ferran Recio
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jun/20

                  Time Tracking

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