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.

      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: "Some files (image.jpg) cannot be uploaded. Only file types .h5p are allowed.".
      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.
      Show
      Note: Test both in 'boost' and 'classic' themes. 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: "Some files (image.jpg) cannot be uploaded. Only file types .h5p are allowed." . 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.
    • Affected Branches:
      MOODLE_39_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-67786-master
    • Sprint:
      Moodle 3.9 - Moppies Kanban

      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

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 3 days, 5 hours
                  1w 3d 5h